F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 = 15,
43  AND = 16,
44  IEQ = 17,
45  INE = 18,
46  ULT = 19,
47  ULE = 20,
48  UGT = 21,
49  UGE = 22,
50  SLT = 23,
51  SLE = 24,
52  SGT = 25,
53  SGE = 26,
54  FEQ = 27,
55  FNE = 28,
56  FLT = 29,
57  FLE = 30,
58  FGT = 31,
59  FGE = 32,
60  NOT = 33,
61  FPEXT = 34,
62  FPTRUNC = 35,
63  FPTOSI = 36,
64  FPTOUI = 37,
65  SITOFP = 38,
66  UITOFP = 39,
67  EXIT = 40,
68  ALLOCATE = 41,
69  STORE = 42,
70  LOAD = 43,
71  PUSH_VAL = 44,
72  };
73 
75  typedef T t;
76 
77  public:
78 
79  // ----------------------------------------------------------------------
80  // Constants
81  // ----------------------------------------------------------------------
82 
83  enum {
88  };
89 
90  public:
91 
92  // ----------------------------------------------------------------------
93  // Constructors
94  // ----------------------------------------------------------------------
95 
98  {
99  this->e = INVALID;
100  }
101 
104  const T e1
105  )
106  {
107  this->e = e1;
108  }
109 
112  const DirectiveId& obj
113  )
114  {
115  this->e = obj.e;
116  }
117 
118  public:
119 
120  // ----------------------------------------------------------------------
121  // Operators
122  // ----------------------------------------------------------------------
123 
126  const DirectiveId& obj
127  );
128 
131  T e1
132  );
133 
135  operator T() const
136  {
137  return this->e;
138  }
139 
141  bool operator==(T e1) const
142  {
143  return this->e == e1;
144  }
145 
147  bool operator!=(T e1) const
148  {
149  return !(*this == e1);
150  }
151 
152 #ifdef BUILD_UT
153 
155  friend std::ostream& operator<<(
156  std::ostream& os,
157  const DirectiveId& obj
158  );
159 
160 #endif
161 
162  public:
163 
164  // ----------------------------------------------------------------------
165  // Member functions
166  // ----------------------------------------------------------------------
167 
169  bool isValid() const;
170 
173  Fw::SerializeBufferBase& buffer
174  ) const;
175 
178  Fw::SerializeBufferBase& buffer
179  );
180 
181 #if FW_SERIALIZABLE_TO_STRING
182 
184  void toString(
185  Fw::StringBase& sb
186  ) const;
187 
188 #endif
189 
190  public:
191 
192  // ----------------------------------------------------------------------
193  // Member variables
194  // ----------------------------------------------------------------------
195 
197  T e;
198 
199  };
200 
201  }
202 
203 }
204 
205 #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.