7 #ifndef Fw_CmdResponseEnumAc_HPP 8 #define Fw_CmdResponseEnumAc_HPP 94 this->
e =
static_cast<enum
T>(e1);
104 this->m_serializeValueIsSet = obj.m_serializeValueIsSet;
105 this->m_serializeValue = obj.m_serializeValue;
131 operator enum T()
const 139 return this->
e == e1;
145 return !(*
this == e1);
151 friend std::ostream& operator<<(
179 #if FW_SERIALIZABLE_TO_STRING 191 void setSerializeValue(
230 bool m_serializeValueIsSet =
false;
CmdResponse(const CmdResponse &obj)
Copy constructor.
Invalid opcode dispatched.
The number of enumerated constants.
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.
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)
The size of the serial representation.
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.
Command was dispatched but the response tracking failed, indicating unknown state.
Implementation of malloc based allocator.
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.