F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
PacketOverrideConfigSerializableAc.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title PacketOverrideConfigSerializableAc.hpp
3 // \author Generated by fpp-to-cpp
4 // \brief hpp file for PacketOverrideConfig struct
5 // ======================================================================
6 
7 #ifndef Svc_PacketOverrideConfigSerializableAc_HPP
8 #define Svc_PacketOverrideConfigSerializableAc_HPP
9 
10 #include "Fw/FPrimeBasicTypes.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 {
35  };
36 
37  public:
38 
39  // ----------------------------------------------------------------------
40  // Constructors
41  // ----------------------------------------------------------------------
42 
45 
48  Svc::PacketOverrideType::T overrideType,
49  const Svc::TlmSendConfig& sendConfig
50  );
51 
54  const PacketOverrideConfig& obj
55  );
56 
57  public:
58 
59  // ----------------------------------------------------------------------
60  // Operators
61  // ----------------------------------------------------------------------
62 
65  const PacketOverrideConfig& obj
66  );
67 
69  bool operator==(
70  const PacketOverrideConfig& obj
71  ) const;
72 
74  bool operator!=(
75  const PacketOverrideConfig& obj
76  ) const;
77 
78 #ifdef BUILD_UT
79 
81  friend std::ostream& operator<<(
82  std::ostream& os,
83  const PacketOverrideConfig& obj
84  );
85 
86 #endif
87 
88  public:
89 
90  // ----------------------------------------------------------------------
91  // Member functions
92  // ----------------------------------------------------------------------
93 
96  Fw::SerialBufferBase& buffer,
98  ) const;
99 
102  Fw::SerialBufferBase& 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_overrideType.e;
126  }
127 
130  {
131  return this->m_sendConfig;
132  }
133 
136  {
137  return this->m_sendConfig;
138  }
139 
140  // ----------------------------------------------------------------------
141  // Setter functions
142  // ----------------------------------------------------------------------
143 
145  void set(
146  Svc::PacketOverrideType::T overrideType,
147  const Svc::TlmSendConfig& sendConfig
148  );
149 
151  void set_overrideType(Svc::PacketOverrideType::T overrideType);
152 
154  void set_sendConfig(const Svc::TlmSendConfig& sendConfig);
155 
156  protected:
157 
158  // ----------------------------------------------------------------------
159  // Member variables
160  // ----------------------------------------------------------------------
161 
164 
165  };
166 
167 }
168 
169 #endif
PlatformSizeType FwSizeType
enum T e
The raw enum value.
Telemetry send policy (send state + rates), shared by the per-group config and per-packet override...
Per-packet override: which fields apply and their values.
FwSizeType serializedSize() const
Get the dynamic serialized size of the struct.
PacketOverrideConfig & operator=(const PacketOverrideConfig &obj)
Copy assignment operator.
SerializeStatus
forward declaration for string
Svc::PacketOverrideType::T get_overrideType() const
Get member overrideType.
Which fields of a packet&#39;s config override its group.
Svc::TlmSendConfig & get_sendConfig()
Get member sendConfig.
void set_sendConfig(const Svc::TlmSendConfig &sendConfig)
Set member sendConfig.
The size of the serial representation.
bool operator!=(const PacketOverrideConfig &obj) const
Inequality operator.
Fw::SerializeStatus deserializeFrom(Fw::SerialBufferBase &buffer, Fw::Endianness mode=Fw::Endianness::BIG)
Deserialization.
bool operator==(const PacketOverrideConfig &obj) const
Equality operator.
Fw::SerializeStatus serializeTo(Fw::SerialBufferBase &buffer, Fw::Endianness mode=Fw::Endianness::BIG) const
Serialization.
PacketOverrideConfig()
Constructor (default value)
const Svc::TlmSendConfig & get_sendConfig() const
Get member sendConfig (const)
void set_overrideType(Svc::PacketOverrideType::T overrideType)
Set member overrideType.
RateGroupDivider component implementation.
Endianness
The size of the serial representation.
Big endian serialization.