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,
99  };
100 
102  typedef T t;
103 
104  public:
105 
106  // ----------------------------------------------------------------------
107  // Constants
108  // ----------------------------------------------------------------------
109 
110  enum {
115  };
116 
117  public:
118 
119  // ----------------------------------------------------------------------
120  // Constructors
121  // ----------------------------------------------------------------------
122 
125  {
126  this->e = INVALID;
127  }
128 
131  const T e1
132  )
133  {
134  this->e = e1;
135  }
136 
139  const DirectiveId& obj
140  )
141  {
142  this->e = obj.e;
143  }
144 
145  public:
146 
147  // ----------------------------------------------------------------------
148  // Operators
149  // ----------------------------------------------------------------------
150 
153  const DirectiveId& obj
154  );
155 
158  T e1
159  );
160 
162  operator T() const
163  {
164  return this->e;
165  }
166 
168  bool operator==(T e1) const
169  {
170  return this->e == e1;
171  }
172 
174  bool operator!=(T e1) const
175  {
176  return !(*this == e1);
177  }
178 
179 #ifdef BUILD_UT
180 
182  friend std::ostream& operator<<(
183  std::ostream& os,
184  const DirectiveId& obj
185  );
186 
187 #endif
188 
189  public:
190 
191  // ----------------------------------------------------------------------
192  // Member functions
193  // ----------------------------------------------------------------------
194 
196  bool isValid() const;
197 
200  Fw::SerializeBufferBase& buffer
201  ) const;
202 
205  Fw::SerializeBufferBase& buffer
206  );
207 
208 #if FW_SERIALIZABLE_TO_STRING
209 
211  void toString(
212  Fw::StringBase& sb
213  ) const;
214 
215 #endif
216 
217  public:
218 
219  // ----------------------------------------------------------------------
220  // Member variables
221  // ----------------------------------------------------------------------
222 
224  T e;
225 
226  };
227 
228  }
229 
230 }
231 
232 #endif
DirectiveId(const DirectiveId &obj)
Copy constructor.
DirectiveId()
Constructor (default value of INVALID)
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)
Deserialize raw enum value from SerialType.
DirectiveId(const T e1)
Constructor (user-provided value)
The number of enumerated constants.
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.
T t
For backwards compatibility.
bool operator!=(T e1) const
Inequality operator.