![]() |
GM6000 Digital Heater Controller Branch: main
SDX-1330
|
This concrete class implements the RegionMedia interface using the Cpl::Io::File interfaces. More...
This concrete class implements the RegionMedia interface using the Cpl::Io::File interfaces.
Each instance of this class uses a single file as the storage media. It is the responsibility of the application to ensure that each instance has a unique file name
#include <FileAdapter.h>
Public Member Functions | |
FileAdapter (const char *fileName, size_t regionStartAddress, size_t regionLen) noexcept | |
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. | |
Protected Attributes | |
const char * | m_fileName |
Remember my file name. | |
![]() | |
size_t | m_startAddress |
The Regions' starting address. | |
size_t | m_regionLength |
The length, in bytes, of the region. | |
Additional Inherited Members | |
![]() | |
RegionMedia (size_t startAddress, size_t regionLength) | |
Constructor. Note: A child class is required. | |
|
noexcept |
Constructor.
|
virtualnoexcept |
See Cpl::Persistent::RegionMedia.
Implements Cpl::Persistent::RegionMedia.
|
virtualnoexcept |
See Cpl::Persistent::RegionMedia.
Implements Cpl::Persistent::RegionMedia.
|
virtualnoexcept |
See Cpl::Persistent::RegionMedia.
Implements Cpl::Persistent::RegionMedia.
|
virtualnoexcept |
See Cpl::Persistent::RegionMedia.
Implements Cpl::Persistent::RegionMedia.
|
protected |
Remember my file name.