36 m_timeContext(timeContext),
46 m_timeBase(obj.m_timeBase),
47 m_timeContext(obj.m_timeContext),
48 m_seconds(obj.m_seconds),
49 m_useconds(obj.m_useconds)
72 if (
this == &obj) {
return true; }
84 return !(*
this == obj);
89 std::ostream& operator<<(std::ostream& os,
const TimeValue& obj) {
163 #if FW_SERIALIZABLE_TO_STRING 178 sb +=
"timeContext = ";
FwSizeType serializedSize() const
Get the dynamic serialized size of the struct.
Serialization/Deserialization operation was successful.
PlatformSizeType FwSizeType
bool operator==(const TimeValue &obj) const
Equality operator.
const char * toChar() const
U8 FwTimeContextStoreType
The type used to serialize a time context value.
SerializeStatus
forward declaration for string
void set_seconds(U32 seconds)
Set member seconds.
Fw::SerializeStatus deserializeFrom(Fw::SerializeBufferBase &buffer)
Deserialization.
Fw::SerializeStatus serializeTo(Fw::SerializeBufferBase &buffer) const
Serialization.
TimeValue & operator=(const TimeValue &obj)
Copy assignment operator.
void set(TimeBase::T timeBase, FwTimeContextStoreType timeContext, U32 seconds, U32 useconds)
Set all members.
TimeValue()
Constructor (default value)
FwTimeContextStoreType m_timeContext
bool operator!=(const TimeValue &obj) const
Inequality operator.
FormatStatus format(const CHAR *formatString,...)
write formatted string to buffer
void set_timeBase(TimeBase::T timeBase)
Set member timeBase.
void set_timeContext(FwTimeContextStoreType timeContext)
Set member timeContext.
SerializeStatus serializeFrom(U8 val)
serialize 8-bit unsigned int
Define enumeration for Time base types.
The size of the serial representation.
void set_useconds(U32 useconds)
Set member useconds.
SerializeStatus deserializeTo(U8 &val)
deserialize 8-bit unsigned int