F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
ChannelTelemetryArrayArrayAc.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title ChannelTelemetryArrayArrayAc.hpp
3 // \author Generated by fpp-to-cpp
4 // \brief hpp file for ChannelTelemetryArray array
5 // ======================================================================
6 
7 #ifndef Svc_Ccsds_Cfdp_ChannelTelemetryArrayArrayAc_HPP
8 #define Svc_Ccsds_Cfdp_ChannelTelemetryArrayArrayAc_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 
25  public Fw::Serializable
26  {
27 
28  public:
29 
30  // ----------------------------------------------------------------------
31  // Types
32  // ----------------------------------------------------------------------
33 
36 
37  public:
38 
39  // ----------------------------------------------------------------------
40  // Constants
41  // ----------------------------------------------------------------------
42 
43  enum {
45  SIZE = 2,
50  };
51 
52  public:
53 
54  // ----------------------------------------------------------------------
55  // Constructors
56  // ----------------------------------------------------------------------
57 
60 
63  const ElementType (&a)[SIZE]
64  );
65 
67  explicit ChannelTelemetryArray(
68  const ElementType& e
69  );
70 
73  const std::initializer_list<ElementType>& il
74  );
75 
78  const ChannelTelemetryArray& obj
79  );
80 
81  public:
82 
83  // ----------------------------------------------------------------------
84  // Operators
85  // ----------------------------------------------------------------------
86 
89  const FwSizeType i
90  );
91 
93  const ElementType& operator[](
94  const FwSizeType i
95  ) const;
96 
99  const ChannelTelemetryArray& obj
100  );
101 
104  const ElementType (&a)[SIZE]
105  );
106 
109  const std::initializer_list<ElementType>& il
110  );
111 
114  const ElementType& e
115  );
116 
118  bool operator==(
119  const ChannelTelemetryArray& obj
120  ) const;
121 
123  bool operator!=(
124  const ChannelTelemetryArray& obj
125  ) const;
126 
127 #ifdef BUILD_UT
128 
130  friend std::ostream& operator<<(
131  std::ostream& os,
132  const ChannelTelemetryArray& obj
133  );
134 
135 #endif
136 
137  public:
138 
139  // ----------------------------------------------------------------------
140  // Public member functions
141  // ----------------------------------------------------------------------
142 
145  Fw::SerialBufferBase& buffer,
147  ) const;
148 
151  Fw::SerialBufferBase& buffer,
153  );
154 
156  FwSizeType serializedSize() const;
157 
158 #if FW_SERIALIZABLE_TO_STRING
159 
161  void toString(
162  Fw::StringBase& sb
163  ) const;
164 
165 #endif
166 
167  private:
168 
169  // ----------------------------------------------------------------------
170  // Member variables
171  // ----------------------------------------------------------------------
172 
174  ElementType elements[SIZE];
175 
176  };
177 
178  }
179 
180  }
181 
182 }
183 
184 #endif
ChannelTelemetryArray & operator=(const ChannelTelemetryArray &obj)
Copy assignment operator (object)
PlatformSizeType FwSizeType
Svc::Ccsds::Cfdp::ChannelTelemetry ElementType
The element type.
SerializeStatus
forward declaration for string
bool operator!=(const ChannelTelemetryArray &obj) const
Inequality operator.
ElementType & operator[](const FwSizeType i)
Subscript operator.
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.
Structure for the telemetry array of CFDP channels.
RateGroupDivider component implementation.
FwSizeType serializedSize() const
Get the dynamic serialized size of the array.
bool operator==(const ChannelTelemetryArray &obj) const
Equality operator.
Endianness
Big endian serialization.