F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
FooterSerializableAc.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title FooterSerializableAc.hpp
3 // \author Generated by fpp-to-cpp
4 // \brief hpp file for Footer struct
5 // ======================================================================
6 
7 #ifndef Svc_Fpy_FooterSerializableAc_HPP
8 #define Svc_Fpy_FooterSerializableAc_HPP
9 
10 #include "Fw/FPrimeBasicTypes.hpp"
13 #include "Fw/Types/String.hpp"
14 
15 namespace Svc {
16 
17  namespace Fpy {
18 
19  class Footer :
20  public Fw::Serializable
21  {
22 
23  public:
24 
25  // ----------------------------------------------------------------------
26  // Constants
27  // ----------------------------------------------------------------------
28 
29  enum {
32  sizeof(U32)
33  };
34 
35  public:
36 
37  // ----------------------------------------------------------------------
38  // Constructors
39  // ----------------------------------------------------------------------
40 
42  Footer();
43 
45  Footer(U32 crc);
46 
48  Footer(
49  const Footer& obj
50  );
51 
52  public:
53 
54  // ----------------------------------------------------------------------
55  // Operators
56  // ----------------------------------------------------------------------
57 
60  const Footer& obj
61  );
62 
64  bool operator==(
65  const Footer& obj
66  ) const;
67 
69  bool operator!=(
70  const Footer& obj
71  ) const;
72 
73 #ifdef BUILD_UT
74 
76  friend std::ostream& operator<<(
77  std::ostream& os,
78  const Footer& obj
79  );
80 
81 #endif
82 
83  public:
84 
85  // ----------------------------------------------------------------------
86  // Member functions
87  // ----------------------------------------------------------------------
88 
92  ) const;
93 
97  );
98 
100  FwSizeType serializedSize() const;
101 
102 #if FW_SERIALIZABLE_TO_STRING
103 
105  void toString(
106  Fw::StringBase& sb
107  ) const;
108 
109 #endif
110 
111  // ----------------------------------------------------------------------
112  // Getter functions
113  // ----------------------------------------------------------------------
114 
116  U32 get_crc() const
117  {
118  return this->m_crc;
119  }
120 
121  // ----------------------------------------------------------------------
122  // Setter functions
123  // ----------------------------------------------------------------------
124 
126  void set(U32 crc);
127 
129  void set_crc(U32 crc);
130 
131  protected:
132 
133  // ----------------------------------------------------------------------
134  // Member variables
135  // ----------------------------------------------------------------------
136 
137  U32 m_crc;
138 
139  };
140 
141  }
142 
143 }
144 
145 #endif
PlatformSizeType FwSizeType
SerializeStatus
forward declaration for string
forward declaration
RateGroupDivider component implementation.