F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
TaskStatusEnumAc.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title TaskStatusEnumAc.hpp
3 // \author Generated by fpp-to-cpp
4 // \brief hpp file for TaskStatus enum
5 // ======================================================================
6 
7 #ifndef Os_TaskStatusEnumAc_HPP
8 #define Os_TaskStatusEnumAc_HPP
9 
10 #include "Fw/FPrimeBasicTypes.hpp"
12 #include "Fw/Types/String.hpp"
13 
14 namespace Os {
15 
17  class TaskStatus :
18  public Fw::Serializable
19  {
20 
21  public:
22 
23  // ----------------------------------------------------------------------
24  // Types
25  // ----------------------------------------------------------------------
26 
28  typedef U8 SerialType;
29 
31  enum T {
33  OP_OK = 0,
58  };
59 
61  typedef T t;
62 
63  public:
64 
65  // ----------------------------------------------------------------------
66  // Constants
67  // ----------------------------------------------------------------------
68 
69  enum {
74  };
75 
76  public:
77 
78  // ----------------------------------------------------------------------
79  // Constructors
80  // ----------------------------------------------------------------------
81 
84  {
85  this->e = OP_OK;
86  }
87 
90  const T e1
91  )
92  {
93  this->e = e1;
94  }
95 
98  const TaskStatus& obj
99  )
100  {
101  this->e = obj.e;
102  }
103 
104  public:
105 
106  // ----------------------------------------------------------------------
107  // Operators
108  // ----------------------------------------------------------------------
109 
112  const TaskStatus& obj
113  );
114 
117  T e1
118  );
119 
121  operator T() const
122  {
123  return this->e;
124  }
125 
127  bool operator==(T e1) const
128  {
129  return this->e == e1;
130  }
131 
133  bool operator!=(T e1) const
134  {
135  return !(*this == e1);
136  }
137 
138 #ifdef BUILD_UT
139 
141  friend std::ostream& operator<<(
142  std::ostream& os,
143  const TaskStatus& obj
144  );
145 
146 #endif
147 
148  public:
149 
150  // ----------------------------------------------------------------------
151  // Member functions
152  // ----------------------------------------------------------------------
153 
155  bool isValid() const;
156 
159  Fw::SerialBufferBase& buffer,
161  ) const;
162 
165  Fw::SerialBufferBase& buffer,
167  );
168 
169 #if FW_SERIALIZABLE_TO_STRING
170 
172  void toString(
173  Fw::StringBase& sb
174  ) const;
175 
176 #endif
177 
178  public:
179 
180  // ----------------------------------------------------------------------
181  // Member variables
182  // ----------------------------------------------------------------------
183 
185  T e;
186 
187  };
188 
189 }
190 
191 #endif
bool isValid() const
Check raw enum value for validity.
Task feature is not supported.
U8 SerialType
The serial representation type.
error trying to join the task
The number of enumerated constants.
started with invalid stack size
SerializeStatus
forward declaration for string
T
The raw enum type.
TaskStatus(const T e1)
Constructor (user-provided value)
FPP shadow-enum representing Os::Task::Status.
started task with invalid parameters
Fw::SerializeStatus serializeTo(Fw::SerialBufferBase &buffer, Fw::Endianness mode=Fw::Endianness::BIG) const
Serialize raw enum value to SerialType.
error trying to delay the task
T t
For backwards compatibility.
started task with invalid priority
unable to set the task affinity
T e
The raw enum value.
permissions error setting-up tasks
bool operator!=(T e1) const
Inequality operator.
uint8_t U8
8-bit unsigned integer
Definition: BasicTypes.h:53
The size of the serial representation.
message sent/received okay
Task is in an invalid state for the operation.
TaskStatus & operator=(const TaskStatus &obj)
Copy assignment operator (object)
Endianness
TaskStatus(const TaskStatus &obj)
Copy constructor.
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.
TaskStatus()
Constructor (default value of OP_OK)
unexpected error return value
unable to allocate more tasks
Big endian serialization.