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"
18 
19 namespace Svc {
20 
21  namespace Fpy {
22 
23  class Sequence :
24  public Fw::Serializable
25  {
26 
27  public:
28 
29  // ----------------------------------------------------------------------
30  // Types
31  // ----------------------------------------------------------------------
32 
35 
38 
39  public:
40 
41  // ----------------------------------------------------------------------
42  // Constants
43  // ----------------------------------------------------------------------
44 
45  enum {
52  };
53 
54  public:
55 
56  // ----------------------------------------------------------------------
57  // Constructors
58  // ----------------------------------------------------------------------
59 
61  Sequence();
62 
64  Sequence(
65  const Svc::Fpy::Header& header,
66  const Type_of_args& args,
67  const Type_of_statements& statements,
68  const Svc::Fpy::Footer& footer
69  );
70 
72  Sequence(
73  const Sequence& obj
74  );
75 
77  Sequence(
78  const Svc::Fpy::Header& header,
79  const Svc::Fpy::ArgSpec& args,
80  const Svc::Fpy::Statement& statements,
81  const Svc::Fpy::Footer& footer
82  );
83 
84  public:
85 
86  // ----------------------------------------------------------------------
87  // Operators
88  // ----------------------------------------------------------------------
89 
92  const Sequence& obj
93  );
94 
96  bool operator==(
97  const Sequence& obj
98  ) const;
99 
101  bool operator!=(
102  const Sequence& obj
103  ) const;
104 
105 #ifdef BUILD_UT
106 
108  friend std::ostream& operator<<(
109  std::ostream& os,
110  const Sequence& obj
111  );
112 
113 #endif
114 
115  public:
116 
117  // ----------------------------------------------------------------------
118  // Member functions
119  // ----------------------------------------------------------------------
120 
123  Fw::SerialBufferBase& buffer,
125  ) const;
126 
129  Fw::SerialBufferBase& buffer,
131  );
132 
134  FwSizeType serializedSize() const;
135 
136 #if FW_SERIALIZABLE_TO_STRING
137 
139  void toString(
140  Fw::StringBase& sb
141  ) const;
142 
143 #endif
144 
145  // ----------------------------------------------------------------------
146  // Getter functions
147  // ----------------------------------------------------------------------
148 
151  {
152  return this->m_header;
153  }
154 
157  {
158  return this->m_header;
159  }
160 
163  {
164  return this->m_args;
165  }
166 
168  const Type_of_args& get_args() const
169  {
170  return this->m_args;
171  }
172 
175  {
176  return this->m_statements;
177  }
178 
181  {
182  return this->m_statements;
183  }
184 
187  {
188  return this->m_footer;
189  }
190 
193  {
194  return this->m_footer;
195  }
196 
197  // ----------------------------------------------------------------------
198  // Setter functions
199  // ----------------------------------------------------------------------
200 
202  void set(
203  const Svc::Fpy::Header& header,
204  const Type_of_args& args,
205  const Type_of_statements& statements,
206  const Svc::Fpy::Footer& footer
207  );
208 
210  void set_header(const Svc::Fpy::Header& header);
211 
213  void set_args(const Type_of_args& args);
214 
216  void set_statements(const Type_of_statements& statements);
217 
219  void set_footer(const Svc::Fpy::Footer& footer);
220 
221  protected:
222 
223  // ----------------------------------------------------------------------
224  // Member variables
225  // ----------------------------------------------------------------------
226 
231 
232  };
233 
234  }
235 
236 }
237 
238 #endif
Svc::Fpy::Statement m_statements[2048]
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.
void set_statements(const Type_of_statements &statements)
Set member statements.
Svc::Fpy::ArgSpec m_args[16]
Svc::Fpy::ArgSpec[16] Type_of_args
The type of args.
bool operator!=(const Sequence &obj) const
Inequality operator.
const Svc::Fpy::Header & get_header() const
Get member header (const)
SerializeStatus
forward declaration for string
Svc::Fpy::Header & get_header()
Get member header.
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.
Fw::SerializeStatus deserializeFrom(Fw::SerialBufferBase &buffer, Fw::Endianness mode=Fw::Endianness::BIG)
Deserialization.
Sequence()
Constructor (default value)
Svc::Fpy::Statement[2048] Type_of_statements
The type of statements.
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.
The size of the serial representation.
void set_args(const Type_of_args &args)
Set member args.
Svc::Fpy::Footer & get_footer()
Get member footer.
The size of the serial representation.
The size of the serial representation.
RateGroupDivider component implementation.
Endianness
The size of the serial representation.
const Svc::Fpy::Footer & get_footer() const
Get member footer (const)
Big endian serialization.
Fw::SerializeStatus serializeTo(Fw::SerialBufferBase &buffer, Fw::Endianness mode=Fw::Endianness::BIG) const
Serialization.