F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
CompressionMetadataSerializableAc.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title CompressionMetadataSerializableAc.hpp
3 // \author Generated by fpp-to-cpp
4 // \brief hpp file for CompressionMetadata struct
5 // ======================================================================
6 
7 #ifndef Svc_CompressionMetadataSerializableAc_HPP
8 #define Svc_CompressionMetadataSerializableAc_HPP
9 
10 #include "Fw/FPrimeBasicTypes.hpp"
13 #include "Fw/Types/String.hpp"
15 
16 namespace Svc {
17 
19  public Fw::Serializable
20  {
21 
22  public:
23 
24  // ----------------------------------------------------------------------
25  // Constants
26  // ----------------------------------------------------------------------
27 
28  enum {
32  };
33 
34  public:
35 
36  // ----------------------------------------------------------------------
37  // Constructors
38  // ----------------------------------------------------------------------
39 
42 
45 
48  const CompressionMetadata& obj
49  );
50 
51  public:
52 
53  // ----------------------------------------------------------------------
54  // Operators
55  // ----------------------------------------------------------------------
56 
59  const CompressionMetadata& obj
60  );
61 
63  bool operator==(
64  const CompressionMetadata& obj
65  ) const;
66 
68  bool operator!=(
69  const CompressionMetadata& obj
70  ) const;
71 
72 #ifdef BUILD_UT
73 
75  friend std::ostream& operator<<(
76  std::ostream& os,
77  const CompressionMetadata& obj
78  );
79 
80 #endif
81 
82  public:
83 
84  // ----------------------------------------------------------------------
85  // Member functions
86  // ----------------------------------------------------------------------
87 
90  Fw::SerialBufferBase& buffer,
92  ) const;
93 
96  Fw::SerialBufferBase& buffer,
98  );
99 
101  FwSizeType serializedSize() const;
102 
103 #if FW_SERIALIZABLE_TO_STRING
104 
106  void toString(
107  Fw::StringBase& sb
108  ) const;
109 
110 #endif
111 
112  // ----------------------------------------------------------------------
113  // Getter functions
114  // ----------------------------------------------------------------------
115 
118  {
119  return this->m_algorithm.e;
120  }
121 
122  // ----------------------------------------------------------------------
123  // Setter functions
124  // ----------------------------------------------------------------------
125 
127  void set(Svc::CompressionAlgorithm::T algorithm);
128 
131 
132  protected:
133 
134  // ----------------------------------------------------------------------
135  // Member variables
136  // ----------------------------------------------------------------------
137 
139 
140  };
141 
142 }
143 
144 #endif
PlatformSizeType FwSizeType
SerializeStatus
forward declaration for string
The size of the serial representation.
Fw::SerializeStatus deserializeFrom(Fw::SerialBufferBase &buffer, Fw::Endianness mode=Fw::Endianness::BIG)
Deserialization.
Fw::SerializeStatus serializeTo(Fw::SerialBufferBase &buffer, Fw::Endianness mode=Fw::Endianness::BIG) const
Serialization.
void set_algorithm(Svc::CompressionAlgorithm::T algorithm)
Set member algorithm.
CompressionMetadata()
Constructor (default value)
FwSizeType serializedSize() const
Get the dynamic serialized size of the struct.
Svc::CompressionAlgorithm::T get_algorithm() const
Get member algorithm.
RateGroupDivider component implementation.
bool operator!=(const CompressionMetadata &obj) const
Inequality operator.
CompressionMetadata & operator=(const CompressionMetadata &obj)
Copy assignment operator.
bool operator==(const CompressionMetadata &obj) const
Equality operator.
Endianness
Big endian serialization.