F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
SaMapEntrySerializableAc.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title SaMapEntrySerializableAc.hpp
3 // \author Generated by fpp-to-cpp
4 // \brief hpp file for SaMapEntry struct
5 // ======================================================================
6 
7 #ifndef Svc_Ccsds_SaMapEntrySerializableAc_HPP
8 #define Svc_Ccsds_SaMapEntrySerializableAc_HPP
9 
10 #include "Fw/FPrimeBasicTypes.hpp"
13 #include "Fw/Types/String.hpp"
15 
16 namespace Svc {
17 
18  namespace Ccsds {
19 
21  class SaMapEntry :
22  public Fw::Serializable
23  {
24 
25  public:
26 
27  // ----------------------------------------------------------------------
28  // Constants
29  // ----------------------------------------------------------------------
30 
31  enum {
34  sizeof(U16) +
35  sizeof(FwIndexType)
36  };
37 
38  public:
39 
40  // ----------------------------------------------------------------------
41  // Constructors
42  // ----------------------------------------------------------------------
43 
45  SaMapEntry();
46 
48  SaMapEntry(
49  U16 securityAssociationIndex,
50  FwIndexType portIndex
51  );
52 
54  SaMapEntry(
55  const SaMapEntry& obj
56  );
57 
58  public:
59 
60  // ----------------------------------------------------------------------
61  // Operators
62  // ----------------------------------------------------------------------
63 
66  const SaMapEntry& obj
67  );
68 
70  bool operator==(
71  const SaMapEntry& obj
72  ) const;
73 
75  bool operator!=(
76  const SaMapEntry& obj
77  ) const;
78 
79 #ifdef BUILD_UT
80 
82  friend std::ostream& operator<<(
83  std::ostream& os,
84  const SaMapEntry& obj
85  );
86 
87 #endif
88 
89  public:
90 
91  // ----------------------------------------------------------------------
92  // Member functions
93  // ----------------------------------------------------------------------
94 
97  Fw::SerialBufferBase& buffer,
99  ) const;
100 
103  Fw::SerialBufferBase& buffer,
105  );
106 
108  FwSizeType serializedSize() const;
109 
110 #if FW_SERIALIZABLE_TO_STRING
111 
113  void toString(
114  Fw::StringBase& sb
115  ) const;
116 
117 #endif
118 
119  // ----------------------------------------------------------------------
120  // Getter functions
121  // ----------------------------------------------------------------------
122 
125  {
126  return this->m_securityAssociationIndex;
127  }
128 
131  {
132  return this->m_portIndex;
133  }
134 
135  // ----------------------------------------------------------------------
136  // Setter functions
137  // ----------------------------------------------------------------------
138 
140  void set(
141  U16 securityAssociationIndex,
142  FwIndexType portIndex
143  );
144 
146  void set_securityAssociationIndex(U16 securityAssociationIndex);
147 
149  void set_portIndex(FwIndexType portIndex);
150 
151  protected:
152 
153  // ----------------------------------------------------------------------
154  // Member variables
155  // ----------------------------------------------------------------------
156 
159 
160  };
161 
162  }
163 
164 }
165 
166 #endif
U16 m_securityAssociationIndex
FwSizeType serializedSize() const
Get the dynamic serialized size of the struct.
PlatformSizeType FwSizeType
bool operator==(const SaMapEntry &obj) const
Equality operator.
void set_securityAssociationIndex(U16 securityAssociationIndex)
Set member securityAssociationIndex.
SaMapEntry & operator=(const SaMapEntry &obj)
Copy assignment operator.
A single security association index to port index mapping entry.
FwIndexType m_portIndex
SerializeStatus
forward declaration for string
void set_portIndex(FwIndexType portIndex)
Set member portIndex.
The size of the serial representation.
SaMapEntry()
Constructor (default value)
PlatformIndexType FwIndexType
RateGroupDivider component implementation.
FwIndexType get_portIndex() const
Get member portIndex.
Endianness
U16 get_securityAssociationIndex() const
Get member securityAssociationIndex.
bool operator!=(const SaMapEntry &obj) const
Inequality operator.
Big endian serialization.
Fw::SerializeStatus serializeTo(Fw::SerialBufferBase &buffer, Fw::Endianness mode=Fw::Endianness::BIG) const
Serialization.
Fw::SerializeStatus deserializeFrom(Fw::SerialBufferBase &buffer, Fw::Endianness mode=Fw::Endianness::BIG)
Deserialization.