mirror of
https://github.com/nasa/fprime.git
synced 2025-12-10 17:47:10 -06:00
* Created new SerialBufferBase as a parent of SerializeBufferBase. Renaming interface functions to be less confusing. * Deprecating copyRawOffset. No direct use-cases in F' core. * Make SerialBufferBase a true pure virtual interface. * Changing Serializable to work with SerialBufferBase parent interface. * Changing copyRaw and copyRawOffset to work with SerialBufferBase * Updating documentation for SerialBufferBase usage * Adding some documentation. Adding missing ASSERT in copyRaw. Fixing some bugs that new ASSERT uncovered. * Renaming SerializeBufferBase to LinearBufferBase. Add a using declaration to maintain backwards compatability. Properly mark LinearBufferBase functions as override. * Filling in the rest of the docstrings for the classes in Serializable * Removing redundant virtual keyword on override function * Applying clang formatting * Incorporating PR comments * Fix compile issues * Bump version to alpha * Format * v --------- Co-authored-by: M Starch <LeStarch@googlemail.com>
35 lines
956 B
C++
35 lines
956 B
C++
// ======================================================================
|
|
// \title Os/Stub/RawTime.cpp
|
|
// \brief stub implementation for Os::RawTime
|
|
// ======================================================================
|
|
#include "Os/Stub/RawTime.hpp"
|
|
|
|
namespace Os {
|
|
namespace Stub {
|
|
namespace RawTime {
|
|
|
|
RawTimeHandle* StubRawTime::getHandle() {
|
|
return &this->m_handle;
|
|
}
|
|
|
|
StubRawTime::Status StubRawTime::now() {
|
|
return Status::OP_OK;
|
|
}
|
|
|
|
StubRawTime::Status StubRawTime::getTimeInterval(const Os::RawTime& other, Fw::TimeInterval& interval) const {
|
|
interval.set(0, 0);
|
|
return Status::OP_OK;
|
|
}
|
|
|
|
Fw::SerializeStatus StubRawTime::serializeTo(Fw::SerialBufferBase& buffer, Fw::Endianness mode) const {
|
|
return Fw::FW_SERIALIZE_OK;
|
|
}
|
|
|
|
Fw::SerializeStatus StubRawTime::deserializeFrom(Fw::SerialBufferBase& buffer, Fw::Endianness mode) {
|
|
return Fw::FW_SERIALIZE_OK;
|
|
}
|
|
|
|
} // namespace RawTime
|
|
} // namespace Stub
|
|
} // namespace Os
|