1#ifndef Cpl_Persistent_File_Adapter_h_
2#define Cpl_Persistent_File_Adapter_h_
33 FileAdapter(
const char* fileName,
size_t regionStartAddress,
size_t regionLen )
noexcept;
43 bool write(
size_t offset, const
void* srcData,
size_t srcLen ) noexcept;
46 size_t read(
size_t offset,
void* dstBuffer,
size_t bytesToRead ) noexcept;
This class extends the Cpl::Dm::EventLoop and Cpl::Itc:Mailbox classes to support the asynchronous ch...
Definition MailboxServer.h:43
This concrete class implements the RegionMedia interface using the Cpl::Io::File interfaces.
Definition FileAdapter.h:29
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.
void stop() noexcept
See Cpl::Persistent::RegionMedia.
const char * m_fileName
Remember my file name.
Definition FileAdapter.h:51
FileAdapter(const char *fileName, size_t regionStartAddress, size_t regionLen) noexcept
Constructor.
void start(Cpl::Dm::MailboxServer &myMbox) noexcept
See Cpl::Persistent::RegionMedia.
The 'Cpl' namespace is the root name space for the Colony.
Definition Api16.h:20