F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 
93  ) const;
94 
98  );
99 
101  FwSizeType serializedSize() const;
102 
103 #if FW_SERIALIZABLE_TO_STRING
104 
106  void toString(
107  Fw::StringBase& sb
108  ) const;
109 
110 #endif
111 
112  // ----------------------------------------------------------------------
113  // Getter functions
114  // ----------------------------------------------------------------------
115 
117  U16 get_fecf() const
118  {
119  return this->m_fecf;
120  }
121 
122  // ----------------------------------------------------------------------
123  // Setter functions
124  // ----------------------------------------------------------------------
125 
127  void set(U16 fecf);
128 
130  void set_fecf(U16 fecf);
131 
132  protected:
133 
134  // ----------------------------------------------------------------------
135  // Member variables
136  // ----------------------------------------------------------------------
137 
138  U16 m_fecf;
139 
140  };
141 
142  }
143 
144 }
145 
146 #endif
FwSizeType serializedSize() const
Get the dynamic serialized size of the struct.
PlatformSizeType FwSizeType
void set_fecf(U16 fecf)
Set member fecf.
The size of the serial representation.
bool operator==(const TCTrailer &obj) const
Equality operator.
SerializeStatus
forward declaration for string
Describes the frame trailer format for a Telecommand (TC) Transfer Frame.
U16 get_fecf() const
Get member fecf.
Fw::SerializeStatus serializeTo(Fw::SerializeBufferBase &buffer) const
Serialization.
TCTrailer & operator=(const TCTrailer &obj)
Copy assignment operator.
TCTrailer()
Constructor (default value)
forward declaration
RateGroupDivider component implementation.
Fw::SerializeStatus deserializeFrom(Fw::SerializeBufferBase &buffer)
Deserialization.
bool operator!=(const TCTrailer &obj) const
Inequality operator.