F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
FrameHeaderSerializableAc.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title FrameHeaderSerializableAc.hpp
3 // \author Generated by fpp-to-cpp
4 // \brief hpp file for FrameHeader struct
5 // ======================================================================
6 
7 #ifndef Svc_FprimeProtocol_FrameHeaderSerializableAc_HPP
8 #define Svc_FprimeProtocol_FrameHeaderSerializableAc_HPP
9 
10 #include "Fw/FPrimeBasicTypes.hpp"
13 #include "Fw/Types/String.hpp"
15 
16 namespace Svc {
17 
18  namespace FprimeProtocol {
19 
21  class FrameHeader :
22  public Fw::Serializable
23  {
24 
25  public:
26 
27  // ----------------------------------------------------------------------
28  // Constants
29  // ----------------------------------------------------------------------
30 
31  enum {
36  };
37 
38  public:
39 
40  // ----------------------------------------------------------------------
41  // Constructors
42  // ----------------------------------------------------------------------
43 
45  FrameHeader();
46 
51  );
52 
55  const FrameHeader& obj
56  );
57 
58  public:
59 
60  // ----------------------------------------------------------------------
61  // Operators
62  // ----------------------------------------------------------------------
63 
66  const FrameHeader& obj
67  );
68 
70  bool operator==(
71  const FrameHeader& obj
72  ) const;
73 
75  bool operator!=(
76  const FrameHeader& obj
77  ) const;
78 
79 #ifdef BUILD_UT
80 
82  friend std::ostream& operator<<(
83  std::ostream& os,
84  const FrameHeader& obj
85  );
86 
87 #endif
88 
89  public:
90 
91  // ----------------------------------------------------------------------
92  // Member functions
93  // ----------------------------------------------------------------------
94 
98  ) const;
99 
102  Fw::SerializeBufferBase& buffer
103  );
104 
105 #if FW_SERIALIZABLE_TO_STRING
106 
108  void toString(
109  Fw::StringBase& sb
110  ) const;
111 
112 #endif
113 
114  // ----------------------------------------------------------------------
115  // Getter functions
116  // ----------------------------------------------------------------------
117 
120  {
121  return this->m_startWord;
122  }
123 
126  {
127  return this->m_lengthField;
128  }
129 
130  // ----------------------------------------------------------------------
131  // Setter functions
132  // ----------------------------------------------------------------------
133 
135  void set(
138  );
139 
142 
145 
146  protected:
147 
148  // ----------------------------------------------------------------------
149  // Member variables
150  // ----------------------------------------------------------------------
151 
154 
155  };
156 
157  }
158 
159 }
160 
161 #endif
Fw::SerializeStatus serialize(Fw::SerializeBufferBase &buffer) const
Serialization.
Svc::FprimeProtocol::TokenType getstartWord() const
Get member startWord.
Svc::FprimeProtocol::TokenType m_startWord
Svc::FprimeProtocol::TokenType m_lengthField
Describes the frame header format for the F Prime communications protocol.
SerializeStatus
forward declaration for string
bool operator!=(const FrameHeader &obj) const
Inequality operator.
void setlengthField(Svc::FprimeProtocol::TokenType lengthField)
Set member lengthField.
Svc::FprimeProtocol::TokenType getlengthField() const
Get member lengthField.
void setstartWord(Svc::FprimeProtocol::TokenType startWord)
Set member startWord.
bool operator==(const FrameHeader &obj) const
Equality operator.
FrameHeader & operator=(const FrameHeader &obj)
Copy assignment operator.
Fw::SerializeStatus deserialize(Fw::SerializeBufferBase &buffer)
Deserialization.
forward declaration
RateGroupDivider component implementation.
FrameHeader()
Constructor (default value)