class
#include <eckit/io/PartHandle.h>
PartHandle
Base classes
- class DataHandle
- class HandleHolder
Public static functions
Constructors, destructors, conversion operators
- PartHandle(DataHandle& handle, const OffsetList&, const LengthList&)
- PartHandle(DataHandle& handle, const Offset&, const Length&)
- PartHandle(DataHandle* handle, const OffsetList&, const LengthList&)
- PartHandle(DataHandle* handle, const Offset&, const Length&)
- PartHandle(Stream&)
- ~PartHandle()
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 rewind() override
-
void print(std::
ostream&) const override - auto estimate() -> Length override
- void restartReadFrom(const Offset& from) override
- void encode(Stream&) const override
- auto reanimator() const -> const ReanimatorBase& override
- void flush() virtual
- auto size() -> Length virtual
- auto position() -> Offset virtual
- auto seek(const Offset&) -> Offset virtual
- auto canSeek() const -> bool virtual
- void skip(const Length&) 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 className() const -> std::
string virtual
Function documentation
void eckit:: PartHandle:: flush() virtual
#include <eckit/io/DataHandle.h>
Length eckit:: PartHandle:: size() virtual
#include <eckit/io/DataHandle.h>
Offset eckit:: PartHandle:: position() virtual
#include <eckit/io/DataHandle.h>
Offset eckit:: PartHandle:: seek(const Offset&) virtual
#include <eckit/io/DataHandle.h>
bool eckit:: PartHandle:: canSeek() const virtual
#include <eckit/io/DataHandle.h>
void eckit:: PartHandle:: skip(const Length&) virtual
#include <eckit/io/DataHandle.h>
void eckit:: PartHandle:: restartWriteFrom(const Offset&) virtual
#include <eckit/io/DataHandle.h>
DataHandle* eckit:: PartHandle:: clone() const virtual
#include <eckit/io/DataHandle.h>
Length eckit:: PartHandle:: saveInto(DataHandle&,
TransferWatcher& = TransferWatcher::dummy()) virtual
#include <eckit/io/DataHandle.h>
Save into an other datahandle.
Length eckit:: PartHandle:: saveInto(const PathName&,
TransferWatcher& = TransferWatcher::dummy()) virtual
#include <eckit/io/DataHandle.h>
Save into a file.
Length eckit:: PartHandle:: copyTo(DataHandle&,
long bufsize = -1,
Length maxsize = -1,
TransferWatcher& = TransferWatcher::dummy()) virtual
#include <eckit/io/DataHandle.h>
Quiet version of saveInto Does not support progess, restart and double buffering
std:: string eckit:: PartHandle:: name() const virtual
#include <eckit/io/DataHandle.h>
FILE* eckit:: PartHandle:: openf(const char* mode,
bool delete_on_close = false)
#include <eckit/io/DataHandle.h>
Create a FILE* from this handle.
FILE* eckit:: PartHandle:: openf(bool delete_on_close = false)
#include <eckit/io/DataHandle.h>
bool eckit:: PartHandle:: compare(DataHandle&)
#include <eckit/io/DataHandle.h>
Compare bytes.
bool eckit:: PartHandle:: compress(bool = false) virtual
#include <eckit/io/DataHandle.h>
bool eckit:: PartHandle:: merge(DataHandle*) virtual
#include <eckit/io/DataHandle.h>
bool eckit:: PartHandle:: isEmpty() const virtual
#include <eckit/io/DataHandle.h>
bool eckit:: PartHandle:: moveable() const virtual
#include <eckit/io/DataHandle.h>
void eckit:: PartHandle:: toLocal(Stream& s) const virtual
#include <eckit/io/DataHandle.h>
DataHandle* eckit:: PartHandle:: toLocal() virtual
#include <eckit/io/DataHandle.h>
void eckit:: PartHandle:: toRemote(Stream& s) const virtual
#include <eckit/io/DataHandle.h>
void eckit:: PartHandle:: selectMover(MoverTransferSelection&,
bool read) const virtual
#include <eckit/io/DataHandle.h>
std:: string eckit:: PartHandle:: title() const virtual
#include <eckit/io/DataHandle.h>
std:: string eckit:: PartHandle:: metricsTag() const virtual
#include <eckit/io/DataHandle.h>
void eckit:: PartHandle:: collectMetrics(const std:: string& what) const virtual
#include <eckit/io/DataHandle.h>
void eckit:: PartHandle:: hash(MD5& md5) const virtual
#include <eckit/io/DataHandle.h>
bool eckit:: PartHandle:: doubleBufferOK() const virtual
#include <eckit/io/DataHandle.h>
std:: string eckit:: PartHandle:: className() const virtual
#include <eckit/serialisation/Streamable.h>