24 m_state(
Fw::DpState::UNTRANSMITTED)
55 m_priority(obj.m_priority),
82 (this->m_tSec == obj.
m_tSec) &&
83 (this->m_tSub == obj.
m_tSub) &&
85 (this->m_size == obj.
m_size) &&
93 return !(*
this == obj);
98 std::ostream& operator<<(std::ostream& os,
const DpRecord& obj) {
177 #if FW_SERIALIZABLE_TO_STRING
182 static const char* formatString =
185 "tSec = %" PRIu32
", "
186 "tSub = %" PRIu32
", "
187 "priority = %" PRIu32
", "
188 "size = %" PRIu64
", "
196 this->
m_state.toString(stateStr);
SerializeStatus deserialize(U8 &val)
deserialize 8-bit unsigned int
SerializeStatus serialize(U8 val)
serialize 8-bit unsigned int
void format(const CHAR *formatString,...)
write formatted string to buffer
const char * toChar() const
Data structure representing a data product.
DpRecord()
Constructor (default value)
void set(U32 id, U32 tSec, U32 tSub, U32 priority, U64 size, Fw::DpState::T state)
Set all members.
void setstate(Fw::DpState::T state)
Set member state.
Fw::SerializeStatus serialize(Fw::SerializeBufferBase &buffer) const
Serialization.
void setpriority(U32 priority)
Set member priority.
Fw::SerializeStatus deserialize(Fw::SerializeBufferBase &buffer)
Deserialization.
void setid(U32 id)
Set member id.
void setsize(U64 size)
Set member size.
DpRecord & operator=(const DpRecord &obj)
Copy assignment operator.
void settSec(U32 tSec)
Set member tSec.
bool operator==(const DpRecord &obj) const
Equality operator.
bool operator!=(const DpRecord &obj) const
Inequality operator.
void settSub(U32 tSub)
Set member tSub.
SerializeStatus
forward declaration for string
@ FW_SERIALIZE_OK
Serialization/Deserialization operation was successful.