39 m_comQueueIndex(comQueueIndex),
41 m_sequenceCount(sequenceCount),
52 m_comQueueIndex(obj.m_comQueueIndex),
54 m_sequenceCount(obj.m_sequenceCount),
57 m_sendNow(obj.m_sendNow)
80 if (
this == &obj) {
return true; }
83 (this->m_apid == obj.
m_apid) &&
85 (this->m_vcId == obj.
m_vcId) &&
86 (this->m_pvn == obj.
m_pvn) &&
94 return !(*
this == obj);
99 std::ostream& operator<<(std::ostream& os,
const FrameContext& obj) {
197 #if FW_SERIALIZABLE_TO_STRING 206 sb +=
"comQueueIndex = ";
213 this->
m_apid.toString(tmp);
218 sb +=
"sequenceCount = ";
231 this->
m_pvn.toString(tmp);
Serialization/Deserialization operation was successful.
FrameContext()
Constructor (default value)
PlatformSizeType FwSizeType
Fw::SerializeStatus serializeTo(Fw::SerialBufferBase &buffer, Fw::Endianness mode=Fw::Endianness::BIG) const
Serialization.
void set_apid(ComCfg::Apid::T apid)
Set member apid.
FwSizeType serializedSize() const
Get the dynamic serialized size of the struct.
void set_sendNow(bool sendNow)
Set member sendNow.
bool operator!=(const FrameContext &obj) const
Inequality operator.
virtual SerializeStatus serializeFrom(U8 val, Endianness mode=Endianness::BIG)=0
Serialize an 8-bit unsigned integer value.
SerializeStatus
forward declaration for string
The size of the serial representation.
virtual SerializeStatus deserializeTo(U8 &val, Endianness mode=Endianness::BIG)=0
Deserialize an 8-bit unsigned integer value.
void set(FwIndexType comQueueIndex, ComCfg::Apid::T apid, U16 sequenceCount, U8 vcId, ComCfg::Pvn::T pvn, bool sendNow)
Set all members.
void set_sequenceCount(U16 sequenceCount)
Set member sequenceCount.
The size of the serial representation.
void set_pvn(ComCfg::Pvn::T pvn)
Set member pvn.
const char * toChar() const
Convert to a C-style char*.
Fw::SerializeStatus deserializeFrom(Fw::SerialBufferBase &buffer, Fw::Endianness mode=Fw::Endianness::BIG)
Deserialization.
FormatStatus format(const CHAR *formatString,...)
write formatted string to buffer
void set_vcId(U8 vcId)
Set member vcId.
uint8_t U8
8-bit unsigned integer
bool operator==(const FrameContext &obj) const
Equality operator.
void set_comQueueIndex(FwIndexType comQueueIndex)
Set member comQueueIndex.
PlatformIndexType FwIndexType
Type used to pass context info between components during framing/deframing.
FwIndexType m_comQueueIndex
APIDs are 11 bits in the Space Packet protocol, so we use U16. Max value 7FF.
FrameContext & operator=(const FrameContext &obj)
Copy assignment operator.