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 
106 #if FW_SERIALIZABLE_TO_STRING
107 
109  void toString(
110  Fw::StringBase& sb
111  ) const;
112 
113 #endif
114 
115  // ----------------------------------------------------------------------
116  // Getter functions
117  // ----------------------------------------------------------------------
118 
121  {
122  return this->m_opCode.e;
123  }
124 
127  {
128  return this->m_argBuf;
129  }
130 
133  {
134  return this->m_argBuf;
135  }
136 
137  // ----------------------------------------------------------------------
138  // Setter functions
139  // ----------------------------------------------------------------------
140 
142  void set(
144  const Fw::StatementArgBuffer& argBuf
145  );
146 
148  void setopCode(Svc::Fpy::DirectiveId::T opCode);
149 
151  void setargBuf(const Fw::StatementArgBuffer& argBuf);
152 
153  protected:
154 
155  // ----------------------------------------------------------------------
156  // Member variables
157  // ----------------------------------------------------------------------
158 
161 
162  };
163 
164  }
165 
166 }
167 
168 #endif
Fw::SerializeStatus serialize(Fw::SerializeBufferBase &buffer) const
Serialization.
Fw::SerializeStatus deserialize(Fw::SerializeBufferBase &buffer)
Deserialization.
bool operator!=(const Statement &obj) const
Inequality operator.
Fw::StatementArgBuffer m_argBuf
The size of the serial representation.
void setargBuf(const Fw::StatementArgBuffer &argBuf)
Set member argBuf.
SerializeStatus
forward declaration for string
void setopCode(Svc::Fpy::DirectiveId::T opCode)
Set member opCode.
Statement()
Constructor (default value)
Svc::Fpy::DirectiveId::T getopCode() const
Get member opCode.
a statement is a directive opcode paired with an argument buffer
const Fw::StatementArgBuffer & getargBuf() const
Get member argBuf (const)
Statement & operator=(const Statement &obj)
Copy assignment operator.
T e
The raw enum value.
The size of the serial representation.
T
The raw enum type.
forward declaration
RateGroupDivider component implementation.
bool operator==(const Statement &obj) const
Equality operator.
Fw::StatementArgBuffer & getargBuf()
Get member argBuf.
Svc::Fpy::DirectiveId m_opCode