eckit::PooledHandle class

Base classes

class DataHandle

Public static functions

static auto classSpec() -> const ClassSpec&

Constructors, destructors, conversion operators

PooledHandle(const PathName& name)
~PooledHandle()

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
auto seek(const Offset&) -> Offset override
auto canSeek() const -> bool override
void hash(MD5& md5) const override
auto position() -> Offset override
auto nbOpens() const -> size_t
auto nbReads() const -> size_t
auto nbSeeks() const -> size_t
void flush() virtual
auto size() -> Length virtual
auto estimate() -> Length virtual
void skip(const Length&) 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
auto doubleBufferOK() const -> bool virtual
void encode(Stream&) const override
auto reanimator() const -> const ReanimatorBase& override
auto className() const -> std::string virtual

Private functions

void print(std::ostream& s) const override

Function documentation

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

eckit::PooledHandle::~PooledHandle()

void eckit::PooledHandle::flush() virtual

Length eckit::PooledHandle::size() virtual

Length eckit::PooledHandle::estimate() virtual

void eckit::PooledHandle::skip(const Length&) virtual

void eckit::PooledHandle::rewind() virtual

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

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

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

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

Save into an other datahandle.

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

Save into a file.

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

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

Create a FILE* from this handle.

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

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

Compare bytes.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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