F´ Flight Software - C/C++ Documentation  devel
A framework for building embedded system applications to NASA flight quality standards.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
CustomVersionDbSerializableAc.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title CustomVersionDbSerializableAc.hpp
3 // \author Generated by fpp-to-cpp
4 // \brief hpp file for CustomVersionDb struct
5 // ======================================================================
6 
7 #ifndef Svc_CustomVersionDbSerializableAc_HPP
8 #define Svc_CustomVersionDbSerializableAc_HPP
9 
10 #include "FpConfig.hpp"
13 #include "Fw/Types/String.hpp"
16 
17 namespace Svc {
18 
21  public Fw::Serializable
22  {
23 
24  public:
25 
26  // ----------------------------------------------------------------------
27  // Constants
28  // ----------------------------------------------------------------------
29 
30  enum {
36  };
37 
38  public:
39 
40  // ----------------------------------------------------------------------
41  // Constructors
42  // ----------------------------------------------------------------------
43 
46 
50  const Fw::StringBase& version_value,
51  Svc::VersionStatus::T version_status
52  );
53 
56  const CustomVersionDb& obj
57  );
58 
59  public:
60 
61  // ----------------------------------------------------------------------
62  // Operators
63  // ----------------------------------------------------------------------
64 
67  const CustomVersionDb& obj
68  );
69 
71  bool operator==(
72  const CustomVersionDb& obj
73  ) const;
74 
76  bool operator!=(
77  const CustomVersionDb& obj
78  ) const;
79 
80 #ifdef BUILD_UT
81 
83  friend std::ostream& operator<<(
84  std::ostream& os,
85  const CustomVersionDb& 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_version_enum.e;
123  }
124 
127  {
128  return this->m_version_value;
129  }
130 
133  {
134  return this->m_version_value;
135  }
136 
139  {
140  return this->m_version_status.e;
141  }
142 
143  // ----------------------------------------------------------------------
144  // Setter functions
145  // ----------------------------------------------------------------------
146 
148  void set(
149  Svc::VersionCfg::VersionEnum::T version_enum,
150  const Fw::StringBase& version_value,
151  Svc::VersionStatus::T version_status
152  );
153 
156 
158  void setversion_value(const Fw::StringBase& version_value);
159 
161  void setversion_status(Svc::VersionStatus::T version_status);
162 
163  protected:
164 
165  // ----------------------------------------------------------------------
166  // Member variables
167  // ----------------------------------------------------------------------
168 
173 
174  };
175 
176 }
177 
178 #endif
C++-compatible configuration header for fprime configuration.
A string backed by an external buffer.
forward declaration
static constexpr SizeType STATIC_SERIALIZED_SIZE(SizeType maxLength)
Definition: StringBase.hpp:35
static constexpr SizeType BUFFER_SIZE(SizeType maxLength)
Get the size of a null-terminated string buffer.
Definition: StringBase.hpp:41
Data Structure for custom version Tlm.
CustomVersionDb & operator=(const CustomVersionDb &obj)
Copy assignment operator.
void setversion_status(Svc::VersionStatus::T version_status)
Set member version_status.
CustomVersionDb()
Constructor (default value)
Fw::ExternalString & getversion_value()
Get member version_value.
void set(Svc::VersionCfg::VersionEnum::T version_enum, const Fw::StringBase &version_value, Svc::VersionStatus::T version_status)
Set all members.
void setversion_value(const Fw::StringBase &version_value)
Set member version_value.
const Fw::ExternalString & getversion_value() const
Get member version_value (const)
Svc::VersionStatus::T getversion_status() const
Get member version_status.
Svc::VersionCfg::VersionEnum m_version_enum
void setversion_enum(Svc::VersionCfg::VersionEnum::T version_enum)
Set member version_enum.
Fw::SerializeStatus serialize(Fw::SerializeBufferBase &buffer) const
Serialization.
bool operator==(const CustomVersionDb &obj) const
Equality operator.
char m___fprime_ac_version_value_buffer[Fw::StringBase::BUFFER_SIZE(80)]
Svc::VersionCfg::VersionEnum::T getversion_enum() const
Get member version_enum.
bool operator!=(const CustomVersionDb &obj) const
Inequality operator.
@ SERIALIZED_SIZE
The size of the serial representation.
Fw::SerializeStatus deserialize(Fw::SerializeBufferBase &buffer)
Deserialization.
@ SERIALIZED_SIZE
The size of the serial representation.
An enumeration for version status.
@ SERIALIZED_SIZE
The size of the serial representation.
T e
The raw enum value.
SerializeStatus
forward declaration for string