eckit::RawFileHandle class

Base classes

class DataHandle

Public static functions

static auto classSpec() -> const ClassSpec&

Constructors, destructors, conversion operators

RawFileHandle(const std::string& path, bool overwrite = false)
~RawFileHandle()

Public functions

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 print(std::ostream&) const override
auto size() -> Length override
auto estimate() -> Length override
auto position() -> Offset override
auto seek(const Offset&) -> Offset override
auto canSeek() const -> bool override
void skip(const Length&) override
void encode(Stream&) const override
void flush() virtual
void rewind() virtual
void restartReadFrom(const Offset&) virtual
void restartWriteFrom(const Offset&) virtual
auto clone() const -> DataHandle* virtual
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 isEmpty() const -> 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
auto title() const -> std::string virtual
auto metricsTag() const -> std::string virtual
void collectMetrics(const std::string& what) const virtual
void hash(MD5& md5) const virtual
auto doubleBufferOK() const -> bool virtual
auto reanimator() const -> const ReanimatorBase& override
auto className() const -> std::string virtual

Function documentation

static const ClassSpec& eckit::RawFileHandle::classSpec()

void eckit::RawFileHandle::flush() virtual

void eckit::RawFileHandle::rewind() virtual

void eckit::RawFileHandle::restartReadFrom(const Offset&) virtual

void eckit::RawFileHandle::restartWriteFrom(const Offset&) virtual

DataHandle* eckit::RawFileHandle::clone() const virtual

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

Save into an other datahandle.

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

Save into a file.

Length eckit::RawFileHandle::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::RawFileHandle::name() const virtual

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

Create a FILE* from this handle.

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

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

Compare bytes.

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

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

bool eckit::RawFileHandle::isEmpty() const virtual

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

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

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

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

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

std::string eckit::RawFileHandle::title() const virtual

std::string eckit::RawFileHandle::metricsTag() const virtual

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

void eckit::RawFileHandle::hash(MD5& md5) const virtual

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

const ReanimatorBase& eckit::RawFileHandle::reanimator() const override

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