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,
36  GOTO = 4,
37  IF = 5,
38  NO_OP = 6,
40  STORE_PRM = 8,
41  CONST_CMD = 9,
42  OR = 10,
43  AND = 11,
44  IEQ = 12,
45  INE = 13,
46  ULT = 14,
47  ULE = 15,
48  UGT = 16,
49  UGE = 17,
50  SLT = 18,
51  SLE = 19,
52  SGT = 20,
53  SGE = 21,
54  FEQ = 22,
55  FNE = 23,
56  FLT = 24,
57  FLE = 25,
58  FGT = 26,
59  FGE = 27,
60  NOT = 28,
61  FPTOSI = 29,
62  FPTOUI = 30,
63  SITOFP = 31,
64  UITOFP = 32,
65  IADD = 33,
66  ISUB = 34,
67  IMUL = 35,
68  UDIV = 36,
69  SDIV = 37,
70  UMOD = 38,
71  SMOD = 39,
72  FADD = 40,
73  FSUB = 41,
74  FMUL = 42,
75  FDIV = 43,
77  FPOW = 45,
78  FLOG = 46,
79  FMOD = 47,
80  FPEXT = 48,
81  FPTRUNC = 49,
82  SIEXT_8_64 = 50,
85  ZIEXT_8_64 = 53,
91  EXIT = 59,
92  ALLOCATE = 60,
93  STORE = 61,
94  LOAD = 62,
95  PUSH_VAL = 63,
96  DISCARD = 64,
97  MEMCMP = 65,
98  STACK_CMD = 66,
100  PUSH_TIME = 68,
101  SET_FLAG = 69,
102  GET_FLAG = 70,
103  };
104 
106  typedef T t;
107 
108  public:
109 
110  // ----------------------------------------------------------------------
111  // Constants
112  // ----------------------------------------------------------------------
113 
114  enum {
119  };
120 
121  public:
122 
123  // ----------------------------------------------------------------------
124  // Constructors
125  // ----------------------------------------------------------------------
126 
129  {
130  this->e = INVALID;
131  }
132 
135  const T e1
136  )
137  {
138  this->e = e1;
139  }
140 
143  const DirectiveId& obj
144  )
145  {
146  this->e = obj.e;
147  }
148 
149  public:
150 
151  // ----------------------------------------------------------------------
152  // Operators
153  // ----------------------------------------------------------------------
154 
157  const DirectiveId& obj
158  );
159 
162  T e1
163  );
164 
166  operator T() const
167  {
168  return this->e;
169  }
170 
172  bool operator==(T e1) const
173  {
174  return this->e == e1;
175  }
176 
178  bool operator!=(T e1) const
179  {
180  return !(*this == e1);
181  }
182 
183 #ifdef BUILD_UT
184 
186  friend std::ostream& operator<<(
187  std::ostream& os,
188  const DirectiveId& obj
189  );
190 
191 #endif
192 
193  public:
194 
195  // ----------------------------------------------------------------------
196  // Member functions
197  // ----------------------------------------------------------------------
198 
200  bool isValid() const;
201 
204  Fw::SerializeBufferBase& buffer,
206  ) const;
207 
210  Fw::SerializeBufferBase& buffer,
212  );
213 
214 #if FW_SERIALIZABLE_TO_STRING
215 
217  void toString(
218  Fw::StringBase& sb
219  ) const;
220 
221 #endif
222 
223  public:
224 
225  // ----------------------------------------------------------------------
226  // Member variables
227  // ----------------------------------------------------------------------
228 
230  T e;
231 
232  };
233 
234  }
235 
236 }
237 
238 #endif
DirectiveId(const DirectiveId &obj)
Copy constructor.
DirectiveId()
Constructor (default value of INVALID)
Fw::SerializeStatus serializeTo(Fw::SerializeBufferBase &buffer, Fw::Endianness mode=Fw::Endianness::BIG) const
Serialize raw enum value to SerialType.
U8 SerialType
The serial representation type.
The size of the serial representation.
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, Fw::Endianness mode=Fw::Endianness::BIG)
Deserialize raw enum value from SerialType.
DirectiveId(const T e1)
Constructor (user-provided value)
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.
RateGroupDivider component implementation.
Endianness
T t
For backwards compatibility.
bool operator!=(T e1) const
Inequality operator.
Big endian serialization.
The number of enumerated constants.