F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
FrameTrailerSerializableAc.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title FrameTrailerSerializableAc.hpp
3 // \author Generated by fpp-to-cpp
4 // \brief hpp file for FrameTrailer struct
5 // ======================================================================
6 
7 #ifndef Svc_FprimeProtocol_FrameTrailerSerializableAc_HPP
8 #define Svc_FprimeProtocol_FrameTrailerSerializableAc_HPP
9 
10 #include "Fw/FPrimeBasicTypes.hpp"
13 #include "Fw/Types/String.hpp"
14 
15 namespace Svc {
16 
17  namespace FprimeProtocol {
18 
20  class FrameTrailer :
21  public Fw::Serializable
22  {
23 
24  public:
25 
26  // ----------------------------------------------------------------------
27  // Constants
28  // ----------------------------------------------------------------------
29 
30  enum {
33  sizeof(U32)
34  };
35 
36  public:
37 
38  // ----------------------------------------------------------------------
39  // Constructors
40  // ----------------------------------------------------------------------
41 
43  FrameTrailer();
44 
46  FrameTrailer(U32 crcField);
47 
50  const FrameTrailer& obj
51  );
52 
53  public:
54 
55  // ----------------------------------------------------------------------
56  // Operators
57  // ----------------------------------------------------------------------
58 
61  const FrameTrailer& obj
62  );
63 
65  bool operator==(
66  const FrameTrailer& obj
67  ) const;
68 
70  bool operator!=(
71  const FrameTrailer& obj
72  ) const;
73 
74 #ifdef BUILD_UT
75 
77  friend std::ostream& operator<<(
78  std::ostream& os,
79  const FrameTrailer& obj
80  );
81 
82 #endif
83 
84  public:
85 
86  // ----------------------------------------------------------------------
87  // Member functions
88  // ----------------------------------------------------------------------
89 
93  ) const;
94 
98  );
99 
100 #if FW_SERIALIZABLE_TO_STRING
101 
103  void toString(
104  Fw::StringBase& sb
105  ) const;
106 
107 #endif
108 
109  // ----------------------------------------------------------------------
110  // Getter functions
111  // ----------------------------------------------------------------------
112 
114  U32 getcrcField() const
115  {
116  return this->m_crcField;
117  }
118 
119  // ----------------------------------------------------------------------
120  // Setter functions
121  // ----------------------------------------------------------------------
122 
124  void set(U32 crcField);
125 
127  void setcrcField(U32 crcField);
128 
129  protected:
130 
131  // ----------------------------------------------------------------------
132  // Member variables
133  // ----------------------------------------------------------------------
134 
136 
137  };
138 
139  }
140 
141 }
142 
143 #endif
Fw::SerializeStatus serialize(Fw::SerializeBufferBase &buffer) const
Serialization.
void setcrcField(U32 crcField)
Set member crcField.
FrameTrailer()
Constructor (default value)
U32 getcrcField() const
Get member crcField.
SerializeStatus
forward declaration for string
bool operator!=(const FrameTrailer &obj) const
Inequality operator.
Fw::SerializeStatus deserialize(Fw::SerializeBufferBase &buffer)
Deserialization.
Describes the frame trailer format for the F Prime communications protocol.
bool operator==(const FrameTrailer &obj) const
Equality operator.
FrameTrailer & operator=(const FrameTrailer &obj)
Copy assignment operator.
forward declaration
RateGroupDivider component implementation.