F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
Loading...
Searching...
No Matches
RawTime.hpp
Go to the documentation of this file.
1// ======================================================================
2// \title Os/Stub/RawTime.hpp
3// \brief stub definitions for Os::RawTime
4// ======================================================================
5#ifndef OS_STUB_RAWTIME_HPP
6#define OS_STUB_RAWTIME_HPP
7
8#include "Os/RawTime.hpp"
9
10namespace Os {
11namespace Stub {
12namespace RawTime {
13
15
21 public:
24 StubRawTime() = default;
25
28 ~StubRawTime() override = default;
29
32 RawTimeHandle* getHandle() override;
33
34 // ------------------------------------------------------------
35 // Implementation-specific RawTime overrides
36 // ------------------------------------------------------------
43 Status now() override;
44
53 Status getTimeInterval(const Os::RawTime& other, Fw::TimeInterval& interval) const override;
54
68
82
83 private:
85 StubRawTimeHandle m_handle;
86};
87
88} // namespace RawTime
89} // namespace Stub
90} // namespace Os
91#endif // OS_STUB_RAWTIME_HPP
stub implementation of Os::RawTime
Definition RawTime.hpp:20
Fw::SerializeStatus deserialize(Fw::SerializeBufferBase &buffer) override
Deserialize the contents of the RawTimeInterface object from a buffer.
Definition RawTime.cpp:28
~StubRawTime() override=default
destructor
Fw::SerializeStatus serialize(Fw::SerializeBufferBase &buffer) const override
Serialize the contents of the RawTimeInterface object into a buffer.
Definition RawTime.cpp:24
StubRawTime()=default
constructor
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