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 
130 #if FW_SERIALIZABLE_TO_STRING
131 
133  void toString(
134  Fw::StringBase& sb
135  ) const;
136 
137 #endif
138 
139  // ----------------------------------------------------------------------
140  // Getter functions
141  // ----------------------------------------------------------------------
142 
145  {
146  return this->m_header;
147  }
148 
151  {
152  return this->m_header;
153  }
154 
157  {
158  return this->m_args;
159  }
160 
162  const Type_of_args& getargs() const
163  {
164  return this->m_args;
165  }
166 
169  {
170  return this->m_statements;
171  }
172 
175  {
176  return this->m_statements;
177  }
178 
181  {
182  return this->m_footer;
183  }
184 
187  {
188  return this->m_footer;
189  }
190 
191  // ----------------------------------------------------------------------
192  // Setter functions
193  // ----------------------------------------------------------------------
194 
196  void set(
197  const Svc::Fpy::Header& header,
198  const Type_of_args& args,
199  const Type_of_statements& statements,
200  const Svc::Fpy::Footer& footer
201  );
202 
204  void setheader(const Svc::Fpy::Header& header);
205 
207  void setargs(const Type_of_args& args);
208 
210  void setstatements(const Type_of_statements& statements);
211 
213  void setfooter(const Svc::Fpy::Footer& footer);
214 
215  protected:
216 
217  // ----------------------------------------------------------------------
218  // Member variables
219  // ----------------------------------------------------------------------
220 
222  U8 m_args[16];
225 
226  };
227 
228  }
229 
230 }
231 
232 #endif
const Type_of_args & getargs() const
Get member args (const)
Svc::Fpy::Header & getheader()
Get member header.
void setargs(const Type_of_args &args)
Set member args.
Svc::Fpy::Footer & getfooter()
Get member footer.
bool operator==(const Sequence &obj) const
Equality operator.
void setstatements(const Type_of_statements &statements)
Set member statements.
void setfooter(const Svc::Fpy::Footer &footer)
Set member footer.
Svc::Fpy::Statement[1024] Type_of_statements
The type of statements.
const Type_of_statements & getstatements() const
Get member statements (const)
The size of the serial representation.
bool operator!=(const Sequence &obj) const
Inequality operator.
const Svc::Fpy::Footer & getfooter() const
Get member footer (const)
SerializeStatus
forward declaration for string
U8[16] Type_of_args
The type of args.
Sequence & operator=(const Sequence &obj)
Copy assignment operator.
Sequence()
Constructor (default value)
Fw::SerializeStatus deserialize(Fw::SerializeBufferBase &buffer)
Deserialization.
uint8_t U8
8-bit unsigned integer
Definition: BasicTypes.h:56
Type_of_statements & getstatements()
Get member statements.
void setheader(const Svc::Fpy::Header &header)
Set member header.
const Svc::Fpy::Header & getheader() const
Get member header (const)
forward declaration
RateGroupDivider component implementation.
Type_of_args & getargs()
Get member args.
Svc::Fpy::Statement m_statements[1024]
The size of the serial representation.
The size of the serial representation.
Fw::SerializeStatus serialize(Fw::SerializeBufferBase &buffer) const
Serialization.