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_REL = 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_REL = 71,
105  CALL = 72,
106  RETURN = 73,
107  LOAD_ABS = 74,
108  STORE_ABS = 75,
110  };
111 
113  typedef T t;
114 
115  public:
116 
117  // ----------------------------------------------------------------------
118  // Constants
119  // ----------------------------------------------------------------------
120 
121  enum {
126  };
127 
128  public:
129 
130  // ----------------------------------------------------------------------
131  // Constructors
132  // ----------------------------------------------------------------------
133 
136  {
137  this->e = INVALID;
138  }
139 
142  const T e1
143  )
144  {
145  this->e = e1;
146  }
147 
150  const DirectiveId& obj
151  )
152  {
153  this->e = obj.e;
154  }
155 
156  public:
157 
158  // ----------------------------------------------------------------------
159  // Operators
160  // ----------------------------------------------------------------------
161 
164  const DirectiveId& obj
165  );
166 
169  T e1
170  );
171 
173  operator T() const
174  {
175  return this->e;
176  }
177 
179  bool operator==(T e1) const
180  {
181  return this->e == e1;
182  }
183 
185  bool operator!=(T e1) const
186  {
187  return !(*this == e1);
188  }
189 
190 #ifdef BUILD_UT
191 
193  friend std::ostream& operator<<(
194  std::ostream& os,
195  const DirectiveId& obj
196  );
197 
198 #endif
199 
200  public:
201 
202  // ----------------------------------------------------------------------
203  // Member functions
204  // ----------------------------------------------------------------------
205 
207  bool isValid() const;
208 
211  Fw::SerialBufferBase& buffer,
213  ) const;
214 
217  Fw::SerialBufferBase& buffer,
219  );
220 
221 #if FW_SERIALIZABLE_TO_STRING
222 
224  void toString(
225  Fw::StringBase& sb
226  ) const;
227 
228 #endif
229 
230  public:
231 
232  // ----------------------------------------------------------------------
233  // Member variables
234  // ----------------------------------------------------------------------
235 
237  T e;
238 
239  };
240 
241  }
242 
243 }
244 
245 #endif
The size of the serial representation.
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.
The number of enumerated constants.
bool isValid() const
Check raw enum value for validity.
T
The raw enum type.
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.