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 = 3,
37  IF = 4,
38  NO_OP = 5,
40  PUSH_PRM = 7,
41  CONST_CMD = 8,
42  OR = 9,
43  AND = 10,
44  IEQ = 11,
45  INE = 12,
46  ULT = 13,
47  ULE = 14,
48  UGT = 15,
49  UGE = 16,
50  SLT = 17,
51  SLE = 18,
52  SGT = 19,
53  SGE = 20,
54  FEQ = 21,
55  FNE = 22,
56  FLT = 23,
57  FLE = 24,
58  FGT = 25,
59  FGE = 26,
60  NOT = 27,
61  FPTOSI = 28,
62  FPTOUI = 29,
63  SITOFP = 30,
64  UITOFP = 31,
65  ADD = 32,
66  SUB = 33,
67  MUL = 34,
68  UDIV = 35,
69  SDIV = 36,
70  UMOD = 37,
71  SMOD = 38,
72  FADD = 39,
73  FSUB = 40,
74  FMUL = 41,
75  FDIV = 42,
76  FPOW = 43,
77  FLOG = 44,
78  FMOD = 45,
79  FPEXT = 46,
80  FPTRUNC = 47,
81  SIEXT_8_64 = 48,
84  ZIEXT_8_64 = 51,
90  EXIT = 57,
91  ALLOCATE = 58,
93  LOAD = 60,
94  PUSH_VAL = 61,
95  DISCARD = 62,
96  MEMCMP = 63,
97  STACK_CMD = 64,
99  PUSH_TIME = 66,
100  SET_FLAG = 67,
101  GET_FLAG = 68,
102  GET_FIELD = 69,
103  PEEK = 70,
104  STORE = 71,
105  };
106 
108  typedef T t;
109 
110  public:
111 
112  // ----------------------------------------------------------------------
113  // Constants
114  // ----------------------------------------------------------------------
115 
116  enum {
121  };
122 
123  public:
124 
125  // ----------------------------------------------------------------------
126  // Constructors
127  // ----------------------------------------------------------------------
128 
131  {
132  this->e = INVALID;
133  }
134 
137  const T e1
138  )
139  {
140  this->e = e1;
141  }
142 
145  const DirectiveId& obj
146  )
147  {
148  this->e = obj.e;
149  }
150 
151  public:
152 
153  // ----------------------------------------------------------------------
154  // Operators
155  // ----------------------------------------------------------------------
156 
159  const DirectiveId& obj
160  );
161 
164  T e1
165  );
166 
168  operator T() const
169  {
170  return this->e;
171  }
172 
174  bool operator==(T e1) const
175  {
176  return this->e == e1;
177  }
178 
180  bool operator!=(T e1) const
181  {
182  return !(*this == e1);
183  }
184 
185 #ifdef BUILD_UT
186 
188  friend std::ostream& operator<<(
189  std::ostream& os,
190  const DirectiveId& obj
191  );
192 
193 #endif
194 
195  public:
196 
197  // ----------------------------------------------------------------------
198  // Member functions
199  // ----------------------------------------------------------------------
200 
202  bool isValid() const;
203 
206  Fw::SerialBufferBase& buffer,
208  ) const;
209 
212  Fw::SerialBufferBase& buffer,
214  );
215 
216 #if FW_SERIALIZABLE_TO_STRING
217 
219  void toString(
220  Fw::StringBase& sb
221  ) const;
222 
223 #endif
224 
225  public:
226 
227  // ----------------------------------------------------------------------
228  // Member variables
229  // ----------------------------------------------------------------------
230 
232  T e;
233 
234  };
235 
236  }
237 
238 }
239 
240 #endif
DirectiveId(const DirectiveId &obj)
Copy constructor.
DirectiveId()
Constructor (default value of INVALID)
U8 SerialType
The serial representation type.
Fw::SerializeStatus deserializeFrom(Fw::SerialBufferBase &buffer, Fw::Endianness mode=Fw::Endianness::BIG)
Deserialize raw enum value from SerialType.
bool operator==(T e1) const
Equality operator.
SerializeStatus
forward declaration for string
DirectiveId & operator=(const DirectiveId &obj)
Copy assignment operator (object)
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.
The number of enumerated constants.
T
The raw enum type.
The size of the serial representation.
Fw::SerializeStatus serializeTo(Fw::SerialBufferBase &buffer, Fw::Endianness mode=Fw::Endianness::BIG) const
Serialize raw enum value to SerialType.
RateGroupDivider component implementation.
Endianness
T t
For backwards compatibility.
bool operator!=(T e1) const
Inequality operator.
Big endian serialization.