F´ Flight Software - C/C++ Documentation  devel
A framework for building embedded system applications to NASA flight quality standards.
RawTime.cpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title Os/Stub/RawTime.cpp
3 // \brief stub implementation for Os::RawTime
4 // ======================================================================
5 #include "Os/Stub/RawTime.hpp"
6 
7 namespace Os {
8 namespace Stub {
9 namespace RawTime {
10 
12  return &this->m_handle;
13 }
14 
16  return Status::OP_OK;
17 }
18 
20  interval.set(0, 0);
21  return Status::OP_OK;
22 }
23 
25  return Fw::FW_SERIALIZE_OK;
26 }
27 
29  return Fw::FW_SERIALIZE_OK;
30 }
31 } // namespace RawTime
32 } // namespace Stub
33 } // namespace Os
void set(U32 seconds, U32 useconds)
Fw::SerializeStatus deserialize(Fw::SerializeBufferBase &buffer) override
Deserialize the contents of the RawTimeInterface object from a buffer.
Definition: RawTime.cpp:28
Fw::SerializeStatus serialize(Fw::SerializeBufferBase &buffer) const override
Serialize the contents of the RawTimeInterface object into a buffer.
Definition: RawTime.cpp:24
Status now() override
Get the current time.
Definition: RawTime.cpp:15
RawTimeHandle * getHandle() override
return the underlying RawTime handle (implementation specific)
Definition: RawTime.cpp:11
Status getTimeInterval(const Os::RawTime &other, Fw::TimeInterval &interval) const override
Calculate the time interval between this and another raw time.
Definition: RawTime.cpp:19
SerializeStatus
forward declaration for string
@ FW_SERIALIZE_OK
Serialization/Deserialization operation was successful.
@ OP_OK
Operation succeeded.
Definition: Os.hpp:26