F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
BuffQueueDepthArrayAc.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title BuffQueueDepthArrayAc.hpp
3 // \author Generated by fpp-to-cpp
4 // \brief hpp file for BuffQueueDepth array
5 // ======================================================================
6 
7 #ifndef Svc_BuffQueueDepthArrayAc_HPP
8 #define Svc_BuffQueueDepthArrayAc_HPP
9 
10 #include "Fw/FPrimeBasicTypes.hpp"
13 #include "Fw/Types/String.hpp"
14 
15 namespace Svc {
16 
19  public Fw::Serializable
20  {
21 
22  public:
23 
24  // ----------------------------------------------------------------------
25  // Types
26  // ----------------------------------------------------------------------
27 
29  using ElementType = U32;
30 
31  public:
32 
33  // ----------------------------------------------------------------------
34  // Constants
35  // ----------------------------------------------------------------------
36 
37  enum {
39  SIZE = 1,
41  ELEMENT_SERIALIZED_SIZE = sizeof(U32),
44  };
45 
46  public:
47 
48  // ----------------------------------------------------------------------
49  // Constructors
50  // ----------------------------------------------------------------------
51 
54 
57  const ElementType (&a)[SIZE]
58  );
59 
62  const ElementType& e1
63  );
64 
67  const BuffQueueDepth& obj
68  );
69 
70  public:
71 
72  // ----------------------------------------------------------------------
73  // Operators
74  // ----------------------------------------------------------------------
75 
78  const U32 i
79  );
80 
82  const ElementType& operator[](
83  const U32 i
84  ) const;
85 
88  const BuffQueueDepth& obj
89  );
90 
93  const ElementType (&a)[SIZE]
94  );
95 
98  const ElementType& e
99  );
100 
102  bool operator==(
103  const BuffQueueDepth& obj
104  ) const;
105 
107  bool operator!=(
108  const BuffQueueDepth& obj
109  ) const;
110 
111 #ifdef BUILD_UT
112 
114  friend std::ostream& operator<<(
115  std::ostream& os,
116  const BuffQueueDepth& obj
117  );
118 
119 #endif
120 
121  public:
122 
123  // ----------------------------------------------------------------------
124  // Public member functions
125  // ----------------------------------------------------------------------
126 
129  Fw::SerializeBufferBase& buffer
130  ) const;
131 
134  Fw::SerializeBufferBase& buffer
135  );
136 
138  FwSizeType serializedSize() const;
139 
140 #if FW_SERIALIZABLE_TO_STRING
141 
143  void toString(
144  Fw::StringBase& sb
145  ) const;
146 
147 #endif
148 
149  private:
150 
151  // ----------------------------------------------------------------------
152  // Member variables
153  // ----------------------------------------------------------------------
154 
156  ElementType elements[SIZE];
157 
158  };
159 
160 }
161 
162 #endif
The serialized size of each element.
Fw::SerializeStatus serializeTo(Fw::SerializeBufferBase &buffer) const
Serialization.
PlatformSizeType FwSizeType
bool operator==(const BuffQueueDepth &obj) const
Equality operator.
FwSizeType serializedSize() const
Get the dynamic serialized size of the array.
U32 ElementType
The element type.
SerializeStatus
forward declaration for string
Array of queue depths for Fw::Buffer types.
Fw::SerializeStatus deserializeFrom(Fw::SerializeBufferBase &buffer)
Deserialization.
BuffQueueDepth & operator=(const BuffQueueDepth &obj)
Copy assignment operator (object)
BuffQueueDepth()
Constructor (default value)
The size of the serial representation.
forward declaration
RateGroupDivider component implementation.
ElementType & operator[](const U32 i)
Subscript operator.
bool operator!=(const BuffQueueDepth &obj) const
Inequality operator.