F´ Flight Software - C/C++ Documentation  devel
A framework for building embedded system applications to NASA flight quality standards.
PrmDb_PrmReadErrorEnumAc.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title PrmDb_PrmReadErrorEnumAc.hpp
3 // \author Generated by fpp-to-cpp
4 // \brief hpp file for PrmDb_PrmReadError enum
5 // ======================================================================
6 
7 #ifndef Svc_PrmDb_PrmDb_PrmReadErrorEnumAc_HPP
8 #define Svc_PrmDb_PrmDb_PrmReadErrorEnumAc_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 I32 SerialType;
29 
31  enum T {
32  OPEN = 0,
33  DELIMITER = 1,
43  };
44 
46  typedef T t;
47 
48  public:
49 
50  // ----------------------------------------------------------------------
51  // Constants
52  // ----------------------------------------------------------------------
53 
54  enum {
59  };
60 
61  public:
62 
63  // ----------------------------------------------------------------------
64  // Constructors
65  // ----------------------------------------------------------------------
66 
69  {
70  this->e = OPEN;
71  }
72 
75  const T e1
76  )
77  {
78  this->e = e1;
79  }
80 
83  const PrmDb_PrmReadError& obj
84  )
85  {
86  this->e = obj.e;
87  }
88 
89  public:
90 
91  // ----------------------------------------------------------------------
92  // Operators
93  // ----------------------------------------------------------------------
94 
97  const PrmDb_PrmReadError& obj
98  );
99 
102  T e1
103  );
104 
106  operator T() const
107  {
108  return this->e;
109  }
110 
112  bool operator==(T e1) const
113  {
114  return this->e == e1;
115  }
116 
118  bool operator!=(T e1) const
119  {
120  return !(*this == e1);
121  }
122 
123 #ifdef BUILD_UT
124 
126  friend std::ostream& operator<<(
127  std::ostream& os,
128  const PrmDb_PrmReadError& obj
129  );
130 
131 #endif
132 
133  public:
134 
135  // ----------------------------------------------------------------------
136  // Member functions
137  // ----------------------------------------------------------------------
138 
140  bool isValid() const;
141 
144  Fw::SerializeBufferBase& buffer
145  ) const;
146 
149  Fw::SerializeBufferBase& buffer
150  );
151 
152 #if FW_SERIALIZABLE_TO_STRING
153 
155  void toString(
156  Fw::StringBase& sb
157  ) const;
158 
159 #endif
160 
161  public:
162 
163  // ----------------------------------------------------------------------
164  // Member variables
165  // ----------------------------------------------------------------------
166 
168  T e;
169 
170  };
171 
172 }
173 
174 #endif
C++-compatible configuration header for fprime configuration.
forward declaration
bool isValid() const
Check raw enum value for validity.
PrmDb_PrmReadError(const PrmDb_PrmReadError &obj)
Copy constructor.
PrmDb_PrmReadError(const T e1)
Constructor (user-provided value)
Fw::SerializeStatus deserialize(Fw::SerializeBufferBase &buffer)
Deserialize raw enum value from SerialType.
bool operator!=(T e1) const
Inequality operator.
I32 SerialType
The serial representation type.
PrmDb_PrmReadError()
Constructor (default value of OPEN)
Fw::SerializeStatus serialize(Fw::SerializeBufferBase &buffer) const
Serialize raw enum value to SerialType.
bool operator==(T e1) const
Equality operator.
PrmDb_PrmReadError & operator=(const PrmDb_PrmReadError &obj)
Copy assignment operator (object)
@ SERIALIZED_SIZE
The size of the serial representation.
@ NUM_CONSTANTS
The number of enumerated constants.
T t
For backwards compatibility.
SerializeStatus
forward declaration for string