F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
TCTrailerSerializableAc.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title TCTrailerSerializableAc.hpp
3 // \author Generated by fpp-to-cpp
4 // \brief hpp file for TCTrailer struct
5 // ======================================================================
6 
7 #ifndef Svc_Ccsds_TCTrailerSerializableAc_HPP
8 #define Svc_Ccsds_TCTrailerSerializableAc_HPP
9 
10 #include "Fw/FPrimeBasicTypes.hpp"
13 #include "Fw/Types/String.hpp"
14 
15 namespace Svc {
16 
17  namespace Ccsds {
18 
20  class TCTrailer :
21  public Fw::Serializable
22  {
23 
24  public:
25 
26  // ----------------------------------------------------------------------
27  // Constants
28  // ----------------------------------------------------------------------
29 
30  enum {
33  sizeof(U16)
34  };
35 
36  public:
37 
38  // ----------------------------------------------------------------------
39  // Constructors
40  // ----------------------------------------------------------------------
41 
43  TCTrailer();
44 
46  TCTrailer(U16 fecf);
47 
49  TCTrailer(
50  const TCTrailer& obj
51  );
52 
53  public:
54 
55  // ----------------------------------------------------------------------
56  // Operators
57  // ----------------------------------------------------------------------
58 
61  const TCTrailer& obj
62  );
63 
65  bool operator==(
66  const TCTrailer& obj
67  ) const;
68 
70  bool operator!=(
71  const TCTrailer& obj
72  ) const;
73 
74 #ifdef BUILD_UT
75 
77  friend std::ostream& operator<<(
78  std::ostream& os,
79  const TCTrailer& obj
80  );
81 
82 #endif
83 
84  public:
85 
86  // ----------------------------------------------------------------------
87  // Member functions
88  // ----------------------------------------------------------------------
89 
92  Fw::SerialBufferBase& buffer,
94  ) const;
95 
98  Fw::SerialBufferBase& buffer,
100  );
101 
103  FwSizeType serializedSize() const;
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 
119  U16 get_fecf() const
120  {
121  return this->m_fecf;
122  }
123 
124  // ----------------------------------------------------------------------
125  // Setter functions
126  // ----------------------------------------------------------------------
127 
129  void set(U16 fecf);
130 
132  void set_fecf(U16 fecf);
133 
134  protected:
135 
136  // ----------------------------------------------------------------------
137  // Member variables
138  // ----------------------------------------------------------------------
139 
140  U16 m_fecf;
141 
142  };
143 
144  }
145 
146 }
147 
148 #endif
FwSizeType serializedSize() const
Get the dynamic serialized size of the struct.
PlatformSizeType FwSizeType
void set_fecf(U16 fecf)
Set member fecf.
bool operator==(const TCTrailer &obj) const
Equality operator.
SerializeStatus
forward declaration for string
Describes the frame trailer format for a Telecommand (TC) Transfer Frame.
Fw::SerializeStatus deserializeFrom(Fw::SerialBufferBase &buffer, Fw::Endianness mode=Fw::Endianness::BIG)
Deserialization.
U16 get_fecf() const
Get member fecf.
Fw::SerializeStatus serializeTo(Fw::SerialBufferBase &buffer, Fw::Endianness mode=Fw::Endianness::BIG) const
Serialization.
The size of the serial representation.
TCTrailer & operator=(const TCTrailer &obj)
Copy assignment operator.
TCTrailer()
Constructor (default value)
RateGroupDivider component implementation.
Endianness
bool operator!=(const TCTrailer &obj) const
Inequality operator.
Big endian serialization.