F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
DirectiveIdEnumAc.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title DirectiveIdEnumAc.hpp
3 // \author Generated by fpp-to-cpp
4 // \brief hpp file for DirectiveId enum
5 // ======================================================================
6 
7 #ifndef Svc_Fpy_DirectiveIdEnumAc_HPP
8 #define Svc_Fpy_DirectiveIdEnumAc_HPP
9 
10 #include "Fw/FPrimeBasicTypes.hpp"
12 #include "Fw/Types/String.hpp"
13 
14 namespace Svc {
15 
16  namespace Fpy {
17 
18  class DirectiveId :
19  public Fw::Serializable
20  {
21 
22  public:
23 
24  // ----------------------------------------------------------------------
25  // Types
26  // ----------------------------------------------------------------------
27 
29  typedef U8 SerialType;
30 
32  enum T {
33  INVALID = 0,
34  WAIT_REL = 1,
35  WAIT_ABS = 2,
37  GOTO = 4,
38  IF = 5,
39  NO_OP = 6,
40  GET_TLM = 7,
41  GET_PRM = 8,
42  CMD = 9,
43  SET_REG = 10,
48  OR = 15,
49  AND = 16,
50  IEQ = 17,
51  INE = 18,
52  ULT = 19,
53  ULE = 20,
54  UGT = 21,
55  UGE = 22,
56  SLT = 23,
57  SLE = 24,
58  SGT = 25,
59  SGE = 26,
60  FEQ = 27,
61  FNE = 28,
62  FLT = 29,
63  FLE = 30,
64  FGT = 31,
65  FGE = 32,
66  NOT = 33,
67  FPEXT = 34,
68  FPTRUNC = 35,
69  FPTOSI = 36,
70  FPTOUI = 37,
71  SITOFP = 38,
72  UITOFP = 39,
73  EXIT = 40,
74  };
75 
77  typedef T t;
78 
79  public:
80 
81  // ----------------------------------------------------------------------
82  // Constants
83  // ----------------------------------------------------------------------
84 
85  enum {
90  };
91 
92  public:
93 
94  // ----------------------------------------------------------------------
95  // Constructors
96  // ----------------------------------------------------------------------
97 
100  {
101  this->e = INVALID;
102  }
103 
106  const T e1
107  )
108  {
109  this->e = e1;
110  }
111 
114  const DirectiveId& obj
115  )
116  {
117  this->e = obj.e;
118  }
119 
120  public:
121 
122  // ----------------------------------------------------------------------
123  // Operators
124  // ----------------------------------------------------------------------
125 
128  const DirectiveId& obj
129  );
130 
133  T e1
134  );
135 
137  operator T() const
138  {
139  return this->e;
140  }
141 
143  bool operator==(T e1) const
144  {
145  return this->e == e1;
146  }
147 
149  bool operator!=(T e1) const
150  {
151  return !(*this == e1);
152  }
153 
154 #ifdef BUILD_UT
155 
157  friend std::ostream& operator<<(
158  std::ostream& os,
159  const DirectiveId& obj
160  );
161 
162 #endif
163 
164  public:
165 
166  // ----------------------------------------------------------------------
167  // Member functions
168  // ----------------------------------------------------------------------
169 
171  bool isValid() const;
172 
175  Fw::SerializeBufferBase& buffer
176  ) const;
177 
180  Fw::SerializeBufferBase& buffer
181  );
182 
183 #if FW_SERIALIZABLE_TO_STRING
184 
186  void toString(
187  Fw::StringBase& sb
188  ) const;
189 
190 #endif
191 
192  public:
193 
194  // ----------------------------------------------------------------------
195  // Member variables
196  // ----------------------------------------------------------------------
197 
199  T e;
200 
201  };
202 
203  }
204 
205 }
206 
207 #endif
DirectiveId(const DirectiveId &obj)
Copy constructor.
DirectiveId()
Constructor (default value of INVALID)
The size of the serial representation.
U8 SerialType
The serial representation type.
bool operator==(T e1) const
Equality operator.
SerializeStatus
forward declaration for string
DirectiveId & operator=(const DirectiveId &obj)
Copy assignment operator (object)
Fw::SerializeStatus deserializeFrom(Fw::SerializeBufferBase &buffer)
Deserialize raw enum value from SerialType.
DirectiveId(const T e1)
Constructor (user-provided value)
Fw::SerializeStatus serializeTo(Fw::SerializeBufferBase &buffer) const
Serialize raw enum value to SerialType.
uint8_t U8
8-bit unsigned integer
Definition: BasicTypes.h:53
T e
The raw enum value.
bool isValid() const
Check raw enum value for validity.
T
The raw enum type.
forward declaration
RateGroupDivider component implementation.
The number of enumerated constants.
T t
For backwards compatibility.
bool operator!=(T e1) const
Inequality operator.