eckit::SharedHandle class

Base classes

class DataHandle

Public static functions

static auto classSpec() -> const ClassSpec&

Constructors, destructors, conversion operators

SharedHandle(DataHandle& handle)
~SharedHandle()

Public functions

void print(std::ostream& s) const override
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
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 rewind() override
void restartReadFrom(const Offset&) override
void restartWriteFrom(const Offset&) override
auto clone() const -> DataHandle* override
auto saveInto(DataHandle&, TransferWatcher&) -> Length override
Save into an other datahandle.
auto name() const -> std::string override
auto compress(bool) -> bool override
auto merge(DataHandle*) -> bool override
auto isEmpty() const -> bool override
auto moveable() const -> bool override
void toLocal(Stream& s) const override
auto toLocal() -> DataHandle* override
void toRemote(Stream& s) const override
void selectMover(MoverTransferSelection&, bool read) const override
auto title() const -> std::string override
void collectMetrics(const std::string& what) const override
auto saveInto(DataHandle&, TransferWatcher& = TransferWatcher::dummy()) -> Length
Save into an other datahandle.
auto saveInto(const PathName&, TransferWatcher& = TransferWatcher::dummy()) -> Length
Save into a file.
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 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 metricsTag() const -> std::string virtual
void hash(MD5& md5) const virtual
auto doubleBufferOK() const -> bool virtual
void encode(Stream&) const override
auto reanimator() const -> const ReanimatorBase& override
auto className() const -> std::string virtual

Function documentation

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

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

Save into a file.

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

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

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

Create a FILE* from this handle.

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

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

Compare bytes.

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

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

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

void eckit::SharedHandle::encode(Stream&) const override

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

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