F´ Flight Software - C/C++ Documentation  devel
A framework for building embedded system applications to NASA flight quality standards.
ComQueueDepthArrayAc.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title ComQueueDepthArrayAc.hpp
3 // \author Generated by fpp-to-cpp
4 // \brief hpp file for ComQueueDepth array
5 // ======================================================================
6 
7 #ifndef Svc_ComQueueDepthArrayAc_HPP
8 #define Svc_ComQueueDepthArrayAc_HPP
9 
10 #include "FpConfig.hpp"
13 #include "Fw/Types/String.hpp"
14 
15 namespace Svc {
16 
18  class ComQueueDepth :
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 = 2,
41  ELEMENT_SERIALIZED_SIZE = sizeof(U32),
44  };
45 
46  public:
47 
48  // ----------------------------------------------------------------------
49  // Constructors
50  // ----------------------------------------------------------------------
51 
53  ComQueueDepth();
54 
57  const ElementType (&a)[SIZE]
58  );
59 
62  const ElementType& e
63  );
64 
67  const ElementType& e1,
68  const ElementType& e2
69  );
70 
73  const ComQueueDepth& obj
74  );
75 
76  public:
77 
78  // ----------------------------------------------------------------------
79  // Operators
80  // ----------------------------------------------------------------------
81 
84  const U32 i
85  );
86 
88  const ElementType& operator[](
89  const U32 i
90  ) const;
91 
94  const ComQueueDepth& obj
95  );
96 
99  const ElementType (&a)[SIZE]
100  );
101 
104  const ElementType& e
105  );
106 
108  bool operator==(
109  const ComQueueDepth& obj
110  ) const;
111 
113  bool operator!=(
114  const ComQueueDepth& obj
115  ) const;
116 
117 #ifdef BUILD_UT
118 
120  friend std::ostream& operator<<(
121  std::ostream& os,
122  const ComQueueDepth& obj
123  );
124 
125 #endif
126 
127  public:
128 
129  // ----------------------------------------------------------------------
130  // Public member functions
131  // ----------------------------------------------------------------------
132 
135  Fw::SerializeBufferBase& buffer
136  ) const;
137 
140  Fw::SerializeBufferBase& buffer
141  );
142 
143 #if FW_SERIALIZABLE_TO_STRING
144 
146  void toString(
147  Fw::StringBase& sb
148  ) const;
149 
150 #endif
151 
152  private:
153 
154  // ----------------------------------------------------------------------
155  // Member variables
156  // ----------------------------------------------------------------------
157 
159  ElementType elements[SIZE];
160 
161  };
162 
163 }
164 
165 #endif
C++-compatible configuration header for fprime configuration.
forward declaration
Array of queue depths for Fw::Com types.
ElementType & operator[](const U32 i)
Subscript operator.
bool operator==(const ComQueueDepth &obj) const
Equality operator.
@ SERIALIZED_SIZE
The size of the serial representation.
@ ELEMENT_SERIALIZED_SIZE
The serialized size of each element.
@ SIZE
The size of the array.
Fw::SerializeStatus serialize(Fw::SerializeBufferBase &buffer) const
Serialization.
Fw::SerializeStatus deserialize(Fw::SerializeBufferBase &buffer)
Deserialization.
ComQueueDepth & operator=(const ComQueueDepth &obj)
Copy assignment operator (object)
ComQueueDepth()
Constructor (default value)
bool operator!=(const ComQueueDepth &obj) const
Inequality operator.
U32 ElementType
The element type.
SerializeStatus
forward declaration for string