eckit::MMappedFileHandle class

Base classes

class DataHandle

Public static functions

static auto classSpec() -> const ClassSpec&

Constructors, destructors, conversion operators

MMappedFileHandle(const std::string&)
MMappedFileHandle(Stream&)
~MMappedFileHandle() override

Public functions

auto path() const -> const std::string&
auto openForRead() -> Length override
void openForWrite(const Length&) override
void openForAppend(const Length&) override
auto read(void*, long) -> long override
auto write(const void*, long) -> long override
void close() override
void flush() override
void rewind() override
void print(std::ostream&) const override
auto size() -> Length override
auto estimate() -> Length override
auto position() -> Offset override
auto isEmpty() const -> bool override
void restartReadFrom(const Offset& from) override
void restartWriteFrom(const Offset& from) override
auto title() const -> std::string override
auto metricsTag() const -> std::string override
auto seek(const Offset&) -> Offset override
auto canSeek() const -> bool override
void skip(const Length&) override
auto clone() const -> DataHandle* override
void hash(MD5& md5) const override
void encode(Stream&) const override
auto reanimator() const -> const ReanimatorBase& override
auto saveInto(DataHandle&, TransferWatcher& = TransferWatcher::dummy()) -> Length virtual
Save into an other datahandle.
auto saveInto(const PathName&, TransferWatcher& = TransferWatcher::dummy()) -> Length virtual
Save into a file.
auto copyTo(DataHandle&, long bufsize = -1, Length maxsize = -1, TransferWatcher& = TransferWatcher::dummy()) -> Length virtual
auto name() const -> std::string virtual
auto openf(const char* mode, bool delete_on_close = false) -> FILE*
Create a FILE* from this handle.
auto openf(bool delete_on_close = false) -> FILE*
auto compare(DataHandle&) -> bool
Compare bytes.
auto compress(bool = false) -> bool virtual
auto merge(DataHandle*) -> bool virtual
auto moveable() const -> bool virtual
void toLocal(Stream& s) const virtual
auto toLocal() -> DataHandle* virtual
void toRemote(Stream& s) const virtual
void selectMover(MoverTransferSelection&, bool read) const virtual
void collectMetrics(const std::string& what) const virtual
auto doubleBufferOK() const -> bool virtual
auto className() const -> std::string virtual

Function documentation

Length eckit::MMappedFileHandle::saveInto(DataHandle&, TransferWatcher& = TransferWatcher::dummy()) virtual

Save into an other datahandle.

Length eckit::MMappedFileHandle::saveInto(const PathName&, TransferWatcher& = TransferWatcher::dummy()) virtual

Save into a file.

Length eckit::MMappedFileHandle::copyTo(DataHandle&, long bufsize = -1, Length maxsize = -1, TransferWatcher& = TransferWatcher::dummy()) virtual

Quiet version of saveInto Does not support progess, restart and double buffering

std::string eckit::MMappedFileHandle::name() const virtual

FILE* eckit::MMappedFileHandle::openf(const char* mode, bool delete_on_close = false)

Create a FILE* from this handle.

FILE* eckit::MMappedFileHandle::openf(bool delete_on_close = false)

bool eckit::MMappedFileHandle::compare(DataHandle&)

Compare bytes.

bool eckit::MMappedFileHandle::compress(bool = false) virtual

bool eckit::MMappedFileHandle::merge(DataHandle*) virtual

bool eckit::MMappedFileHandle::moveable() const virtual

void eckit::MMappedFileHandle::toLocal(Stream& s) const virtual

DataHandle* eckit::MMappedFileHandle::toLocal() virtual

void eckit::MMappedFileHandle::toRemote(Stream& s) const virtual

void eckit::MMappedFileHandle::selectMover(MoverTransferSelection&, bool read) const virtual

void eckit::MMappedFileHandle::collectMetrics(const std::string& what) const virtual

bool eckit::MMappedFileHandle::doubleBufferOK() const virtual

std::string eckit::MMappedFileHandle::className() const virtual