7 #ifndef ComCfg_PvnEnumAc_HPP 8 #define ComCfg_PvnEnumAc_HPP 84 this->
e =
static_cast<enum
T>(e1);
94 this->m_serializeValueIsSet = obj.m_serializeValueIsSet;
95 this->m_serializeValue = obj.m_serializeValue;
121 operator enum T()
const 129 return this->
e == e1;
135 return !(*
this == e1);
141 friend std::ostream& operator<<(
169 #if FW_SERIALIZABLE_TO_STRING 181 void setSerializeValue(
220 bool m_serializeValueIsSet =
false;
Fw::SerializeStatus deserializeFrom(Fw::SerialBufferBase &buffer, Fw::Endianness mode=Fw::Endianness::BIG)
Deserialize raw enum value from SerialType.
Fully Featured CCSDS Space Packet Protocol.
Fw::SerializeStatus serializeTo(Fw::SerialBufferBase &buffer, Fw::Endianness mode=Fw::Endianness::BIG) const
Serialize raw enum value to SerialType.
Anything equal or higher value is invalid and should not be used.
bool isValid() const
Check raw enum value for validity.
Pvn & operator=(const Pvn &obj)
Copy assignment operator (object)
U8 SerialType
The serial representation type.
The size of the serial representation.
SerializeStatus
forward declaration for string
Pvn()
Constructor (default value of INVALID_UNINITIALIZED)
enum T t
For backwards compatibility.
Packet Version Numbers are 3 bits with only 2 currently valid values.
bool operator==(enum T e1) const
Equality operator.
The number of enumerated constants.
uint8_t U8
8-bit unsigned integer
Pvn(const enum T e1)
Constructor (user-provided value)
enum T e
The raw enum value.
Bare-bones CCSDS Encapsulation Packet Protocol.
Pvn(const SerialType e1)
Constructor (serial representation value)
bool operator!=(enum T e1) const
Inequality operator.
Pvn(const Pvn &obj)
Copy constructor.
Big endian serialization.