F´ Flight Software - C/C++ Documentation  devel
A framework for building embedded system applications to NASA flight quality standards.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 "FpConfig.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 
137 #if FW_SERIALIZABLE_TO_STRING
138 
140  void toString(
141  Fw::StringBase& sb
142  ) const;
143 
144 #endif
145 
146  private:
147 
148  // ----------------------------------------------------------------------
149  // Member variables
150  // ----------------------------------------------------------------------
151 
153  ElementType elements[SIZE];
154 
155  };
156 
157 }
158 
159 #endif
C++-compatible configuration header for fprime configuration.
forward declaration
Array of queue depths for Fw::Buffer types.
U32 ElementType
The element type.
bool operator==(const BuffQueueDepth &obj) const
Equality operator.
bool operator!=(const BuffQueueDepth &obj) const
Inequality operator.
@ SERIALIZED_SIZE
The size of the serial representation.
@ SIZE
The size of the array.
@ ELEMENT_SERIALIZED_SIZE
The serialized size of each element.
Fw::SerializeStatus serialize(Fw::SerializeBufferBase &buffer) const
Serialization.
BuffQueueDepth()
Constructor (default value)
BuffQueueDepth & operator=(const BuffQueueDepth &obj)
Copy assignment operator (object)
ElementType & operator[](const U32 i)
Subscript operator.
Fw::SerializeStatus deserialize(Fw::SerializeBufferBase &buffer)
Deserialization.
SerializeStatus
forward declaration for string