7 #ifndef Fw_DpStateEnumAc_HPP 8 #define Fw_DpStateEnumAc_HPP 85 this->
e =
static_cast<enum
T>(e1);
95 this->m_serializeValueIsSet = obj.m_serializeValueIsSet;
96 this->m_serializeValue = obj.m_serializeValue;
122 operator enum T()
const 130 return this->
e == e1;
136 return !(*
this == e1);
142 friend std::ostream& operator<<(
170 #if FW_SERIALIZABLE_TO_STRING 182 void setSerializeValue(
221 bool m_serializeValueIsSet =
false;
bool isValid() const
Check raw enum value for validity.
Fw::SerializeStatus serializeTo(Fw::SerialBufferBase &buffer, Fw::Endianness mode=Fw::Endianness::BIG) const
Serialize raw enum value to SerialType.
DpState & operator=(const DpState &obj)
Copy assignment operator (object)
DpState(const enum T e1)
Constructor (user-provided value)
DpState(const DpState &obj)
Copy constructor.
SerializeStatus
forward declaration for string
Fw::SerializeStatus deserializeFrom(Fw::SerialBufferBase &buffer, Fw::Endianness mode=Fw::Endianness::BIG)
Deserialize raw enum value from SerialType.
The number of enumerated constants.
U8 SerialType
The serial representation type.
The size of the serial representation.
DpState(const SerialType e1)
Constructor (serial representation value)
enum T e
The raw enum value.
uint8_t U8
8-bit unsigned integer
enum T t
For backwards compatibility.
bool operator==(enum T e1) const
Equality operator.
DpState()
Constructor (default value of UNTRANSMITTED)
Implementation of malloc based allocator.
bool operator!=(enum T e1) const
Inequality operator.
Big endian serialization.