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 
106  FwSizeType serializedSize() const;
107 
108 #if FW_SERIALIZABLE_TO_STRING
109 
111  void toString(
112  Fw::StringBase& sb
113  ) const;
114 
115 #endif
116 
117  // ----------------------------------------------------------------------
118  // Getter functions
119  // ----------------------------------------------------------------------
120 
123  {
124  return this->m_startWord;
125  }
126 
129  {
130  return this->m_lengthField;
131  }
132 
133  // ----------------------------------------------------------------------
134  // Setter functions
135  // ----------------------------------------------------------------------
136 
138  void set(
141  );
142 
145 
148 
149  protected:
150 
151  // ----------------------------------------------------------------------
152  // Member variables
153  // ----------------------------------------------------------------------
154 
157 
158  };
159 
160  }
161 
162 }
163 
164 #endif
void set_startWord(Svc::FprimeProtocol::TokenType startWord)
Set member startWord.
PlatformSizeType FwSizeType
Svc::FprimeProtocol::TokenType get_startWord() const
Get member startWord.
Fw::SerializeStatus deserializeFrom(Fw::SerializeBufferBase &buffer)
Deserialization.
Fw::SerializeStatus serializeTo(Fw::SerializeBufferBase &buffer) const
Serialization.
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.
FwSizeType serializedSize() const
Get the dynamic serialized size of the struct.
bool operator==(const FrameHeader &obj) const
Equality operator.
FrameHeader & operator=(const FrameHeader &obj)
Copy assignment operator.
forward declaration
RateGroupDivider component implementation.
FrameHeader()
Constructor (default value)
void set_lengthField(Svc::FprimeProtocol::TokenType lengthField)
Set member lengthField.
Svc::FprimeProtocol::TokenType get_lengthField() const
Get member lengthField.