F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
SequenceSerializableAc.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title SequenceSerializableAc.hpp
3 // \author Generated by fpp-to-cpp
4 // \brief hpp file for Sequence struct
5 // ======================================================================
6 
7 #ifndef Svc_Fpy_SequenceSerializableAc_HPP
8 #define Svc_Fpy_SequenceSerializableAc_HPP
9 
10 #include "Fw/FPrimeBasicTypes.hpp"
13 #include "Fw/Types/String.hpp"
17 
18 namespace Svc {
19 
20  namespace Fpy {
21 
22  class Sequence :
23  public Fw::Serializable
24  {
25 
26  public:
27 
28  // ----------------------------------------------------------------------
29  // Types
30  // ----------------------------------------------------------------------
31 
33  using Type_of_args = U8[16];
34 
37 
38  public:
39 
40  // ----------------------------------------------------------------------
41  // Constants
42  // ----------------------------------------------------------------------
43 
44  enum {
48  sizeof(U8) * 16 +
51  };
52 
53  public:
54 
55  // ----------------------------------------------------------------------
56  // Constructors
57  // ----------------------------------------------------------------------
58 
60  Sequence();
61 
63  Sequence(
64  const Svc::Fpy::Header& header,
65  const Type_of_args& args,
66  const Type_of_statements& statements,
67  const Svc::Fpy::Footer& footer
68  );
69 
71  Sequence(
72  const Sequence& obj
73  );
74 
76  Sequence(
77  const Svc::Fpy::Header& header,
78  U8 args,
79  const Svc::Fpy::Statement& statements,
80  const Svc::Fpy::Footer& footer
81  );
82 
83  public:
84 
85  // ----------------------------------------------------------------------
86  // Operators
87  // ----------------------------------------------------------------------
88 
91  const Sequence& obj
92  );
93 
95  bool operator==(
96  const Sequence& obj
97  ) const;
98 
100  bool operator!=(
101  const Sequence& obj
102  ) const;
103 
104 #ifdef BUILD_UT
105 
107  friend std::ostream& operator<<(
108  std::ostream& os,
109  const Sequence& obj
110  );
111 
112 #endif
113 
114  public:
115 
116  // ----------------------------------------------------------------------
117  // Member functions
118  // ----------------------------------------------------------------------
119 
122  Fw::SerializeBufferBase& buffer
123  ) const;
124 
127  Fw::SerializeBufferBase& buffer
128  );
129 
131  FwSizeType serializedSize() const;
132 
133 #if FW_SERIALIZABLE_TO_STRING
134 
136  void toString(
137  Fw::StringBase& sb
138  ) const;
139 
140 #endif
141 
142  // ----------------------------------------------------------------------
143  // Getter functions
144  // ----------------------------------------------------------------------
145 
148  {
149  return this->m_header;
150  }
151 
154  {
155  return this->m_header;
156  }
157 
160  {
161  return this->m_args;
162  }
163 
165  const Type_of_args& get_args() const
166  {
167  return this->m_args;
168  }
169 
172  {
173  return this->m_statements;
174  }
175 
178  {
179  return this->m_statements;
180  }
181 
184  {
185  return this->m_footer;
186  }
187 
190  {
191  return this->m_footer;
192  }
193 
194  // ----------------------------------------------------------------------
195  // Setter functions
196  // ----------------------------------------------------------------------
197 
199  void set(
200  const Svc::Fpy::Header& header,
201  const Type_of_args& args,
202  const Type_of_statements& statements,
203  const Svc::Fpy::Footer& footer
204  );
205 
207  void set_header(const Svc::Fpy::Header& header);
208 
210  void set_args(const Type_of_args& args);
211 
213  void set_statements(const Type_of_statements& statements);
214 
216  void set_footer(const Svc::Fpy::Footer& footer);
217 
218  protected:
219 
220  // ----------------------------------------------------------------------
221  // Member variables
222  // ----------------------------------------------------------------------
223 
225  U8 m_args[16];
228 
229  };
230 
231  }
232 
233 }
234 
235 #endif
void set_header(const Svc::Fpy::Header &header)
Set member header.
const Type_of_args & get_args() const
Get member args (const)
Type_of_args & get_args()
Get member args.
PlatformSizeType FwSizeType
bool operator==(const Sequence &obj) const
Equality operator.
Fw::SerializeStatus deserializeFrom(Fw::SerializeBufferBase &buffer)
Deserialization.
Svc::Fpy::Statement[1024] Type_of_statements
The type of statements.
void set_statements(const Type_of_statements &statements)
Set member statements.
bool operator!=(const Sequence &obj) const
Inequality operator.
const Svc::Fpy::Header & get_header() const
Get member header (const)
Fw::SerializeStatus serializeTo(Fw::SerializeBufferBase &buffer) const
Serialization.
SerializeStatus
forward declaration for string
U8[16] Type_of_args
The type of args.
The size of the serial representation.
Svc::Fpy::Header & get_header()
Get member header.
The size of the serial representation.
const Type_of_statements & get_statements() const
Get member statements (const)
a statement is a directive opcode paired with an argument buffer
Sequence & operator=(const Sequence &obj)
Copy assignment operator.
Sequence()
Constructor (default value)
FwSizeType serializedSize() const
Get the dynamic serialized size of the struct.
Type_of_statements & get_statements()
Get member statements.
void set_footer(const Svc::Fpy::Footer &footer)
Set member footer.
uint8_t U8
8-bit unsigned integer
Definition: BasicTypes.h:53
void set_args(const Type_of_args &args)
Set member args.
Svc::Fpy::Footer & get_footer()
Get member footer.
forward declaration
RateGroupDivider component implementation.
The size of the serial representation.
Svc::Fpy::Statement m_statements[1024]
const Svc::Fpy::Footer & get_footer() const
Get member footer (const)