F´ Flight Software - C/C++ Documentation  devel
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 "FpConfig.hpp"
12 #include "Fw/Types/String.hpp"
13 
14 namespace Svc {
15 
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 = 1,
40  SERIALIZED_SIZE = SIZE * sizeof(U32),
41  };
42 
43  public:
44 
45  // ----------------------------------------------------------------------
46  // Constructors
47  // ----------------------------------------------------------------------
48 
51 
54  const ElementType (&a)[SIZE]
55  );
56 
59  const ElementType& e1
60  );
61 
64  const BuffQueueDepth& obj
65  );
66 
67  public:
68 
69  // ----------------------------------------------------------------------
70  // Operators
71  // ----------------------------------------------------------------------
72 
75  const U32 i
76  );
77 
79  const ElementType& operator[](
80  const U32 i
81  ) const;
82 
85  const BuffQueueDepth& obj
86  );
87 
90  const ElementType (&a)[SIZE]
91  );
92 
95  const ElementType& e
96  );
97 
99  bool operator==(
100  const BuffQueueDepth& obj
101  ) const;
102 
104  bool operator!=(
105  const BuffQueueDepth& obj
106  ) const;
107 
108 #ifdef BUILD_UT
109 
111  friend std::ostream& operator<<(
112  std::ostream& os,
113  const BuffQueueDepth& obj
114  );
115 
116 #endif
117 
118  public:
119 
120  // ----------------------------------------------------------------------
121  // Member functions
122  // ----------------------------------------------------------------------
123 
126  Fw::SerializeBufferBase& buffer
127  ) const;
128 
131  Fw::SerializeBufferBase& buffer
132  );
133 
134 #if FW_ARRAY_TO_STRING
135 
137  void toString(
138  Fw::StringBase& sb
139  ) const;
140 
141 #endif
142 
143  private:
144 
145  // ----------------------------------------------------------------------
146  // Member variables
147  // ----------------------------------------------------------------------
148 
150  ElementType elements[SIZE];
151 
152  };
153 
154 }
155 
156 #endif
C++-compatible configuration header for fprime configuration.
forward declaration
Array of queue depths for Fw::Buffer types.
U32 ElementType
The element type.
@ SERIALIZED_SIZE
The size of the serial representation.
@ SIZE
The size of the array.
bool operator==(const BuffQueueDepth &obj) const
Equality operator.
bool operator!=(const BuffQueueDepth &obj) const
Inequality operator.
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