7 #ifndef Fw_ActiveEnumAc_HPP 8 #define Fw_ActiveEnumAc_HPP 107 return this->
e == e1;
113 return !(*
this == e1);
119 friend std::ostream& operator<<(
147 #if FW_SERIALIZABLE_TO_STRING bool operator==(T e1) const
Equality operator.
bool isValid() const
Check raw enum value for validity.
Active(const T e1)
Constructor (user-provided value)
T t
For backwards compatibility.
Fw::SerializeStatus serializeTo(Fw::SerialBufferBase &buffer, Fw::Endianness mode=Fw::Endianness::BIG) const
Serialize raw enum value to SerialType.
The size of the serial representation.
Fw::SerializeStatus deserializeFrom(Fw::SerialBufferBase &buffer, Fw::Endianness mode=Fw::Endianness::BIG)
Deserialize raw enum value from SerialType.
Active & operator=(const Active &obj)
Copy assignment operator (object)
bool operator!=(T e1) const
Inequality operator.
SerializeStatus
forward declaration for string
Active(const Active &obj)
Copy constructor.
uint8_t U8
8-bit unsigned integer
Active()
Constructor (default value of INACTIVE)
U8 SerialType
The serial representation type.
The number of enumerated constants.
Implementation of malloc based allocator.
Active and inactive states.
Big endian serialization.