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,
37  GOTO = 4,
38  IF = 5,
39  NO_OP = 6,
40  GET_TLM = 7,
41  GET_PRM = 8,
42  CMD = 9,
43  SET_REG = 10,
48  OR = 15,
49  AND = 16,
50  IEQ = 17,
51  INE = 18,
52  ULT = 19,
53  ULE = 20,
54  UGT = 21,
55  UGE = 22,
56  SLT = 23,
57  SLE = 24,
58  SGT = 25,
59  SGE = 26,
60  FEQ = 27,
61  FNE = 28,
62  FLT = 29,
63  FLE = 30,
64  FGT = 31,
65  FGE = 32,
66  NOT = 33,
67  FPEXT = 34,
68  FPTRUNC = 35,
69  EXIT = 36,
70  };
71 
73  typedef T t;
74 
75  public:
76 
77  // ----------------------------------------------------------------------
78  // Constants
79  // ----------------------------------------------------------------------
80 
81  enum {
86  };
87 
88  public:
89 
90  // ----------------------------------------------------------------------
91  // Constructors
92  // ----------------------------------------------------------------------
93 
96  {
97  this->e = INVALID;
98  }
99 
102  const T e1
103  )
104  {
105  this->e = e1;
106  }
107 
110  const DirectiveId& obj
111  )
112  {
113  this->e = obj.e;
114  }
115 
116  public:
117 
118  // ----------------------------------------------------------------------
119  // Operators
120  // ----------------------------------------------------------------------
121 
124  const DirectiveId& obj
125  );
126 
129  T e1
130  );
131 
133  operator T() const
134  {
135  return this->e;
136  }
137 
139  bool operator==(T e1) const
140  {
141  return this->e == e1;
142  }
143 
145  bool operator!=(T e1) const
146  {
147  return !(*this == e1);
148  }
149 
150 #ifdef BUILD_UT
151 
153  friend std::ostream& operator<<(
154  std::ostream& os,
155  const DirectiveId& obj
156  );
157 
158 #endif
159 
160  public:
161 
162  // ----------------------------------------------------------------------
163  // Member functions
164  // ----------------------------------------------------------------------
165 
167  bool isValid() const;
168 
171  Fw::SerializeBufferBase& buffer
172  ) const;
173 
176  Fw::SerializeBufferBase& buffer
177  );
178 
179 #if FW_SERIALIZABLE_TO_STRING
180 
182  void toString(
183  Fw::StringBase& sb
184  ) const;
185 
186 #endif
187 
188  public:
189 
190  // ----------------------------------------------------------------------
191  // Member variables
192  // ----------------------------------------------------------------------
193 
195  T e;
196 
197  };
198 
199  }
200 
201 }
202 
203 #endif
DirectiveId(const DirectiveId &obj)
Copy constructor.
DirectiveId()
Constructor (default value of INVALID)
The number of enumerated constants.
U8 SerialType
The serial representation type.
Fw::SerializeStatus serialize(Fw::SerializeBufferBase &buffer) const
Serialize raw enum value to SerialType.
bool operator==(T e1) const
Equality operator.
The size of the serial representation.
SerializeStatus
forward declaration for string
DirectiveId & operator=(const DirectiveId &obj)
Copy assignment operator (object)
Fw::SerializeStatus deserialize(Fw::SerializeBufferBase &buffer)
Deserialize raw enum value from SerialType.
DirectiveId(const T e1)
Constructor (user-provided value)
uint8_t U8
8-bit unsigned integer
Definition: BasicTypes.h:56
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.