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"
12 #include "Fw/Types/String.hpp"
13 
14 namespace Svc {
15 
17  class ComQueueDepth :
18  public Fw::Serializable
19  {
20 
21  public:
22 
23  // ----------------------------------------------------------------------
24  // Types
25  // ----------------------------------------------------------------------
26 
28  typedef U32 ElementType;
29 
30  public:
31 
32  // ----------------------------------------------------------------------
33  // Constants
34  // ----------------------------------------------------------------------
35 
36  enum {
38  SIZE = 2,
40  SERIALIZED_SIZE = SIZE * sizeof(U32),
41  };
42 
43  public:
44 
45  // ----------------------------------------------------------------------
46  // Constructors
47  // ----------------------------------------------------------------------
48 
50  ComQueueDepth();
51 
54  const ElementType (&a)[SIZE]
55  );
56 
59  const ElementType& e
60  );
61 
64  const ElementType& e1,
65  const ElementType& e2
66  );
67 
70  const ComQueueDepth& obj
71  );
72 
73  public:
74 
75  // ----------------------------------------------------------------------
76  // Operators
77  // ----------------------------------------------------------------------
78 
81  const U32 i
82  );
83 
85  const ElementType& operator[](
86  const U32 i
87  ) const;
88 
91  const ComQueueDepth& obj
92  );
93 
96  const ElementType (&a)[SIZE]
97  );
98 
101  const ElementType& e
102  );
103 
105  bool operator==(
106  const ComQueueDepth& obj
107  ) const;
108 
110  bool operator!=(
111  const ComQueueDepth& obj
112  ) const;
113 
114 #ifdef BUILD_UT
115 
117  friend std::ostream& operator<<(
118  std::ostream& os,
119  const ComQueueDepth& obj
120  );
121 
122 #endif
123 
124  public:
125 
126  // ----------------------------------------------------------------------
127  // Member functions
128  // ----------------------------------------------------------------------
129 
132  Fw::SerializeBufferBase& buffer
133  ) const;
134 
137  Fw::SerializeBufferBase& buffer
138  );
139 
140 #if FW_ARRAY_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
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.
@ SIZE
The size of the array.
U32 ElementType
The element type.
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.
SerializeStatus
forward declaration for string