7 #ifndef Fw_CmdResponseEnumAc_HPP 8 #define Fw_CmdResponseEnumAc_HPP 92 this->
e =
static_cast<enum
T>(e1);
102 this->m_serializeValueIsSet = obj.m_serializeValueIsSet;
103 this->m_serializeValue = obj.m_serializeValue;
129 operator enum T()
const 137 return this->
e == e1;
143 return !(*
this == e1);
149 friend std::ostream& operator<<(
177 #if FW_SERIALIZABLE_TO_STRING 189 void setSerializeValue(
228 bool m_serializeValueIsSet =
false;
CmdResponse(const CmdResponse &obj)
Copy constructor.
Invalid opcode dispatched.
enum T e
The raw enum value.
Enum representing a command response.
bool isValid() const
Check raw enum value for validity.
Command tracking was cleared before the command completed.
The size of the serial representation.
SerializeStatus
forward declaration for string
CmdResponse & operator=(const CmdResponse &obj)
Copy assignment operator (object)
Fw::SerializeStatus deserializeFrom(Fw::SerialBufferBase &buffer, Fw::Endianness mode=Fw::Endianness::BIG)
Deserialize raw enum value from SerialType.
bool operator!=(enum T e1) const
Inequality operator.
CmdResponse(const enum T e1)
Constructor (user-provided value)
CmdResponse(const SerialType e1)
Constructor (serial representation value)
Command successfully executed.
uint8_t U8
8-bit unsigned integer
bool operator==(enum T e1) const
Equality operator.
Command failed to deserialize.
Command had execution error.
U8 SerialType
The serial representation type.
Command failed validation.
Implementation of malloc based allocator.
The number of enumerated constants.
enum T t
For backwards compatibility.
Fw::SerializeStatus serializeTo(Fw::SerialBufferBase &buffer, Fw::Endianness mode=Fw::Endianness::BIG) const
Serialize raw enum value to SerialType.
CmdResponse()
Constructor (default value of OK)
Big endian serialization.