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/Posix/RawTime.hpp
3// \brief Posix definitions for Os::RawTime
4// ======================================================================
5#ifndef OS_POSIX_RAWTIME_HPP
6#define OS_POSIX_RAWTIME_HPP
7
8#include <ctime>
9#include <Os/RawTime.hpp>
10
11
12namespace Os {
13namespace Posix {
14namespace RawTime {
15
17 timespec m_timespec = {0, 0};
18};
19
25 public:
26
28 PosixRawTime() = default;
29
31 ~PosixRawTime() override = default;
32
35 RawTimeHandle* getHandle() override;
36
37 // ------------------------------------------------------------
38 // Implementation-specific RawTime overrides
39 // ------------------------------------------------------------
46 Status now() override;
47
56 Status getTimeInterval(const Os::RawTime& other, Fw::TimeInterval& interval) const override;
57
71
85
86
87 private:
89 PosixRawTimeHandle m_handle;
90};
91
92} // namespace RawTime
93} // namespace Posix
94} // namespace Os
95#endif // OS_POSIX_RAWTIME_HPP
Posix implementation of Os::RawTime.
Definition RawTime.hpp:24
Status now() override
Get the current time.
Definition RawTime.cpp:15
Status getTimeInterval(const Os::RawTime &other, Fw::TimeInterval &interval) const override
Calculate the time interval between this and another raw time.
Definition RawTime.cpp:23
~PosixRawTime() override=default
destructor
PosixRawTime()=default
constructor
Fw::SerializeStatus deserialize(Fw::SerializeBufferBase &buffer) override
Deserialize the contents of the RawTimeInterface object from a buffer.
Definition RawTime.cpp:57
Fw::SerializeStatus serialize(Fw::SerializeBufferBase &buffer) const override
Serialize the contents of the RawTimeInterface object into a buffer.
Definition RawTime.cpp:47
RawTimeHandle * getHandle() override
return the underlying RawTime handle (implementation specific)
Definition RawTime.cpp:74
SerializeStatus
forward declaration for string