F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
ArgSpecSerializableAc.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title ArgSpecSerializableAc.hpp
3 // \author Generated by fpp-to-cpp
4 // \brief hpp file for ArgSpec struct
5 // ======================================================================
6 
7 #ifndef Svc_Fpy_ArgSpecSerializableAc_HPP
8 #define Svc_Fpy_ArgSpecSerializableAc_HPP
9 
10 #include "Fw/FPrimeBasicTypes.hpp"
13 #include "Fw/Types/String.hpp"
16 
17 namespace Svc {
18 
19  namespace Fpy {
20 
23  class ArgSpec :
24  public Fw::Serializable
25  {
26 
27  public:
28 
29  // ----------------------------------------------------------------------
30  // Constants
31  // ----------------------------------------------------------------------
32 
33  enum {
39  };
40 
41  public:
42 
43  // ----------------------------------------------------------------------
44  // Constructors
45  // ----------------------------------------------------------------------
46 
48  ArgSpec();
49 
51  ArgSpec(
52  const Fw::StringBase& argName,
53  const Fw::StringBase& typeName,
55  );
56 
58  ArgSpec(
59  const ArgSpec& obj
60  );
61 
62  public:
63 
64  // ----------------------------------------------------------------------
65  // Operators
66  // ----------------------------------------------------------------------
67 
70  const ArgSpec& obj
71  );
72 
74  bool operator==(
75  const ArgSpec& obj
76  ) const;
77 
79  bool operator!=(
80  const ArgSpec& obj
81  ) const;
82 
83 #ifdef BUILD_UT
84 
86  friend std::ostream& operator<<(
87  std::ostream& os,
88  const ArgSpec& obj
89  );
90 
91 #endif
92 
93  public:
94 
95  // ----------------------------------------------------------------------
96  // Member functions
97  // ----------------------------------------------------------------------
98 
101  Fw::SerialBufferBase& buffer,
103  ) const;
104 
107  Fw::SerialBufferBase& buffer,
109  );
110 
112  FwSizeType serializedSize() const;
113 
114 #if FW_SERIALIZABLE_TO_STRING
115 
117  void toString(
118  Fw::StringBase& sb
119  ) const;
120 
121 #endif
122 
123  // ----------------------------------------------------------------------
124  // Getter functions
125  // ----------------------------------------------------------------------
126 
129  {
130  return this->m_argName;
131  }
132 
135  {
136  return this->m_argName;
137  }
138 
141  {
142  return this->m_typeName;
143  }
144 
147  {
148  return this->m_typeName;
149  }
150 
153  {
154  return this->m_argSize;
155  }
156 
157  // ----------------------------------------------------------------------
158  // Setter functions
159  // ----------------------------------------------------------------------
160 
162  void set(
163  const Fw::StringBase& argName,
164  const Fw::StringBase& typeName,
166  );
167 
169  void set_argName(const Fw::StringBase& argName);
170 
172  void set_typeName(const Fw::StringBase& typeName);
173 
175  void set_argSize(Svc::Fpy::StackSizeType argSize);
176 
177  protected:
178 
179  // ----------------------------------------------------------------------
180  // Member variables
181  // ----------------------------------------------------------------------
182 
188 
189  };
190 
191  }
192 
193 }
194 
195 #endif
Fw::ExternalString & get_argName()
Get member argName.
void set_argSize(Svc::Fpy::StackSizeType argSize)
Set member argSize.
bool operator!=(const ArgSpec &obj) const
Inequality operator.
PlatformSizeType FwSizeType
ArgSpec()
Constructor (default value)
Fw::ExternalString m_typeName
FwSizeType serializedSize() const
Get the dynamic serialized size of the struct.
Svc::Fpy::StackSizeType m_argSize
SerializeStatus
forward declaration for string
void set_argName(const Fw::StringBase &argName)
Set member argName.
char m___fprime_ac_typeName_buffer[Fw::StringBase::BUFFER_SIZE(255)]
Fw::SerializeStatus serializeTo(Fw::SerialBufferBase &buffer, Fw::Endianness mode=Fw::Endianness::BIG) const
Serialization.
char m___fprime_ac_argName_buffer[Fw::StringBase::BUFFER_SIZE(255)]
A string backed by an external buffer.
Fw::ExternalString & get_typeName()
Get member typeName.
Fw::ExternalString m_argName
void set_typeName(const Fw::StringBase &typeName)
Set member typeName.
const Fw::ExternalString & get_argName() const
Get member argName (const)
bool operator==(const ArgSpec &obj) const
Equality operator.
The size of the serial representation.
RateGroupDivider component implementation.
Fw::SerializeStatus deserializeFrom(Fw::SerialBufferBase &buffer, Fw::Endianness mode=Fw::Endianness::BIG)
Deserialization.
static constexpr SizeType STATIC_SERIALIZED_SIZE(SizeType maxLength)
Endianness
Svc::Fpy::StackSizeType get_argSize() const
Get member argSize.
static constexpr SizeType BUFFER_SIZE(SizeType maxLength)
Get the size of a null-terminated string buffer.
ArgSpec & operator=(const ArgSpec &obj)
Copy assignment operator.
const Fw::ExternalString & get_typeName() const
Get member typeName (const)
Big endian serialization.
U32 StackSizeType
the type which everything referencing a size or offset on the stack is represented in ...