F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
ChannelArrayParamsArrayAc.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title ChannelArrayParamsArrayAc.hpp
3 // \author Generated by fpp-to-cpp
4 // \brief hpp file for ChannelArrayParams array
5 // ======================================================================
6 
7 #ifndef Svc_Ccsds_Cfdp_ChannelArrayParamsArrayAc_HPP
8 #define Svc_Ccsds_Cfdp_ChannelArrayParamsArrayAc_HPP
9 
10 #include <initializer_list>
11 
12 #include "Fw/FPrimeBasicTypes.hpp"
15 #include "Fw/Types/String.hpp"
17 
18 namespace Svc {
19 
20  namespace Ccsds {
21 
22  namespace Cfdp {
23 
26  public Fw::Serializable
27  {
28 
29  public:
30 
31  // ----------------------------------------------------------------------
32  // Types
33  // ----------------------------------------------------------------------
34 
37 
38  public:
39 
40  // ----------------------------------------------------------------------
41  // Constants
42  // ----------------------------------------------------------------------
43 
44  enum {
46  SIZE = 2,
51  };
52 
53  public:
54 
55  // ----------------------------------------------------------------------
56  // Constructors
57  // ----------------------------------------------------------------------
58 
61 
64  const ElementType (&a)[SIZE]
65  );
66 
68  explicit ChannelArrayParams(
69  const ElementType& e
70  );
71 
74  const std::initializer_list<ElementType>& il
75  );
76 
79  const ChannelArrayParams& obj
80  );
81 
82  public:
83 
84  // ----------------------------------------------------------------------
85  // Operators
86  // ----------------------------------------------------------------------
87 
90  const FwSizeType i
91  );
92 
94  const ElementType& operator[](
95  const FwSizeType i
96  ) const;
97 
100  const ChannelArrayParams& obj
101  );
102 
105  const ElementType (&a)[SIZE]
106  );
107 
110  const std::initializer_list<ElementType>& il
111  );
112 
115  const ElementType& e
116  );
117 
119  bool operator==(
120  const ChannelArrayParams& obj
121  ) const;
122 
124  bool operator!=(
125  const ChannelArrayParams& obj
126  ) const;
127 
128 #ifdef BUILD_UT
129 
131  friend std::ostream& operator<<(
132  std::ostream& os,
133  const ChannelArrayParams& obj
134  );
135 
136 #endif
137 
138  public:
139 
140  // ----------------------------------------------------------------------
141  // Public member functions
142  // ----------------------------------------------------------------------
143 
146  Fw::SerialBufferBase& buffer,
148  ) const;
149 
152  Fw::SerialBufferBase& buffer,
154  );
155 
157  FwSizeType serializedSize() const;
158 
159 #if FW_SERIALIZABLE_TO_STRING
160 
162  void toString(
163  Fw::StringBase& sb
164  ) const;
165 
166 #endif
167 
168  private:
169 
170  // ----------------------------------------------------------------------
171  // Member variables
172  // ----------------------------------------------------------------------
173 
175  ElementType elements[SIZE];
176 
177  };
178 
179  }
180 
181  }
182 
183 }
184 
185 #endif
PlatformSizeType FwSizeType
Fw::SerializeStatus serializeTo(Fw::SerialBufferBase &buffer, Fw::Endianness mode=Fw::Endianness::BIG) const
Serialization.
ChannelArrayParams()
Constructor (default value)
SerializeStatus
forward declaration for string
Fw::SerializeStatus deserializeFrom(Fw::SerialBufferBase &buffer, Fw::Endianness mode=Fw::Endianness::BIG)
Deserialization.
Svc::Ccsds::Cfdp::ChannelParams ElementType
The element type.
ChannelArrayParams & operator=(const ChannelArrayParams &obj)
Copy assignment operator (object)
ElementType & operator[](const FwSizeType i)
Subscript operator.
FwSizeType serializedSize() const
Get the dynamic serialized size of the array.
Structure for the configured array of CFDP channels.
Structure for telemetry counters for a single CFDP channel.
bool operator!=(const ChannelArrayParams &obj) const
Inequality operator.
RateGroupDivider component implementation.
bool operator==(const ChannelArrayParams &obj) const
Equality operator.
Endianness
Big endian serialization.