![]() |
GM6000 Digital Heater Controller Branch: main
SDX-1330
|
This concrete class provides a 'null' implementation of the RegionMedia interface. More...
This concrete class provides a 'null' implementation of the RegionMedia interface.
This class can be used to 'satisfy' persistent storage clients when there is no physical persistent storage available on the platform.
#include <NullRegionMedia.h>
Public Member Functions | |
NullRegionMedia (size_t startAddress, size_t regionLength) | |
Constructor. | |
void | start (Cpl::Dm::MailboxServer &myMbox) noexcept |
See Cpl::Persistent::RegionMedia. | |
void | stop () noexcept |
See Cpl::Persistent::RegionMedia. | |
bool | write (size_t offset, const void *srcData, size_t srcLen) noexcept |
See Cpl::Persistent::RegionMedia. | |
size_t | read (size_t offset, void *dstBuffer, size_t bytesToRead) noexcept |
See Cpl::Persistent::RegionMedia. | |
![]() | |
virtual size_t | getStartAddress () const |
Returns the Region's starting address. | |
virtual size_t | getRegionLength () const |
Returns the Region's length in bytes. | |
virtual | ~RegionMedia () |
Virtual destructor. | |
Additional Inherited Members | |
![]() | |
RegionMedia (size_t startAddress, size_t regionLength) | |
Constructor. Note: A child class is required. | |
![]() | |
size_t | m_startAddress |
The Regions' starting address. | |
size_t | m_regionLength |
The length, in bytes, of the region. | |
|
inline |
Constructor.
|
inlinevirtualnoexcept |
See Cpl::Persistent::RegionMedia.
Implements Cpl::Persistent::RegionMedia.
|
inlinevirtualnoexcept |
See Cpl::Persistent::RegionMedia.
Implements Cpl::Persistent::RegionMedia.
|
inlinevirtualnoexcept |
See Cpl::Persistent::RegionMedia.
Implements Cpl::Persistent::RegionMedia.
|
inlinevirtualnoexcept |
See Cpl::Persistent::RegionMedia.
Implements Cpl::Persistent::RegionMedia.