F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
StatementSerializableAc.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title StatementSerializableAc.hpp
3 // \author Generated by fpp-to-cpp
4 // \brief hpp file for Statement struct
5 // ======================================================================
6 
7 #ifndef Svc_Fpy_StatementSerializableAc_HPP
8 #define Svc_Fpy_StatementSerializableAc_HPP
9 
10 #include "Fw/FPrimeBasicTypes.hpp"
14 #include "Fw/Types/String.hpp"
16 
17 namespace Svc {
18 
19  namespace Fpy {
20 
22  class Statement :
23  public Fw::Serializable
24  {
25 
26  public:
27 
28  // ----------------------------------------------------------------------
29  // Constants
30  // ----------------------------------------------------------------------
31 
32  enum {
37  };
38 
39  public:
40 
41  // ----------------------------------------------------------------------
42  // Constructors
43  // ----------------------------------------------------------------------
44 
46  Statement();
47 
49  Statement(
51  const Fw::StatementArgBuffer& argBuf
52  );
53 
55  Statement(
56  const Statement& obj
57  );
58 
59  public:
60 
61  // ----------------------------------------------------------------------
62  // Operators
63  // ----------------------------------------------------------------------
64 
67  const Statement& obj
68  );
69 
71  bool operator==(
72  const Statement& obj
73  ) const;
74 
76  bool operator!=(
77  const Statement& obj
78  ) const;
79 
80 #ifdef BUILD_UT
81 
83  friend std::ostream& operator<<(
84  std::ostream& os,
85  const Statement& obj
86  );
87 
88 #endif
89 
90  public:
91 
92  // ----------------------------------------------------------------------
93  // Member functions
94  // ----------------------------------------------------------------------
95 
99  ) const;
100 
103  Fw::SerializeBufferBase& buffer
104  );
105 
107  FwSizeType serializedSize() const;
108 
109 #if FW_SERIALIZABLE_TO_STRING
110 
112  void toString(
113  Fw::StringBase& sb
114  ) const;
115 
116 #endif
117 
118  // ----------------------------------------------------------------------
119  // Getter functions
120  // ----------------------------------------------------------------------
121 
124  {
125  return this->m_opCode.e;
126  }
127 
130  {
131  return this->m_argBuf;
132  }
133 
136  {
137  return this->m_argBuf;
138  }
139 
140  // ----------------------------------------------------------------------
141  // Setter functions
142  // ----------------------------------------------------------------------
143 
145  void set(
147  const Fw::StatementArgBuffer& argBuf
148  );
149 
152 
154  void set_argBuf(const Fw::StatementArgBuffer& argBuf);
155 
156  protected:
157 
158  // ----------------------------------------------------------------------
159  // Member variables
160  // ----------------------------------------------------------------------
161 
164 
165  };
166 
167  }
168 
169 }
170 
171 #endif
FwSizeType serializedSize() const
Get the dynamic serialized size of the struct.
The size of the serial representation.
Fw::SerializeStatus deserializeFrom(Fw::SerializeBufferBase &buffer)
Deserialization.
PlatformSizeType FwSizeType
bool operator!=(const Statement &obj) const
Inequality operator.
Fw::StatementArgBuffer m_argBuf
Fw::StatementArgBuffer & get_argBuf()
Get member argBuf.
SerializeStatus
forward declaration for string
void set_opCode(Svc::Fpy::DirectiveId::T opCode)
Set member opCode.
Statement()
Constructor (default value)
The size of the serial representation.
a statement is a directive opcode paired with an argument buffer
Statement & operator=(const Statement &obj)
Copy assignment operator.
T e
The raw enum value.
void set_argBuf(const Fw::StatementArgBuffer &argBuf)
Set member argBuf.
T
The raw enum type.
forward declaration
RateGroupDivider component implementation.
Svc::Fpy::DirectiveId::T get_opCode() const
Get member opCode.
bool operator==(const Statement &obj) const
Equality operator.
const Fw::StatementArgBuffer & get_argBuf() const
Get member argBuf (const)
Fw::SerializeStatus serializeTo(Fw::SerializeBufferBase &buffer) const
Serialization.
Svc::Fpy::DirectiveId m_opCode