class
#include <eckit/io/PeekHandle.h>
PeekHandle
Base classes
- class DataHandle
- class HandleHolder
Public static functions
Constructors, destructors, conversion operators
- PeekHandle(DataHandle*)
- Contructor, taking ownership.
- PeekHandle(DataHandle&)
- Contructor, not taking ownership.
- ~PeekHandle() override
- Destructor.
Public functions
- auto peek(size_t) -> unsigned char
- auto peek(void* buffer, size_t size, size_t offset = 0) -> long
- auto peeked() const -> size_t
- auto openForRead() -> Length override
- auto read(void*, long) -> long override
- void close() override
- void rewind() override
-
void print(std::
ostream&) const override - void skip(const Length&) override
- auto seek(const Offset&) -> Offset override
- auto canSeek() const -> bool override
- auto estimate() -> Length override
- auto position() -> Offset override
- auto size() -> Length override
-
auto title() const -> std::
string override -
void collectMetrics(const std::
string& what) const override - void openForWrite(const Length&) virtual
- void openForAppend(const Length&) virtual
- auto write(const void*, long) -> long virtual
- void flush() 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 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:: PeekHandle:: classSpec()
#include <eckit/io/DataHandle.h>
void eckit:: PeekHandle:: openForWrite(const Length&) virtual
#include <eckit/io/DataHandle.h>
void eckit:: PeekHandle:: openForAppend(const Length&) virtual
#include <eckit/io/DataHandle.h>
long eckit:: PeekHandle:: write(const void*,
long) virtual
#include <eckit/io/DataHandle.h>
void eckit:: PeekHandle:: flush() virtual
#include <eckit/io/DataHandle.h>
void eckit:: PeekHandle:: restartReadFrom(const Offset&) virtual
#include <eckit/io/DataHandle.h>
void eckit:: PeekHandle:: restartWriteFrom(const Offset&) virtual
#include <eckit/io/DataHandle.h>
DataHandle* eckit:: PeekHandle:: clone() const virtual
#include <eckit/io/DataHandle.h>
Length eckit:: PeekHandle:: saveInto(DataHandle&,
TransferWatcher& = TransferWatcher::dummy()) virtual
#include <eckit/io/DataHandle.h>
Save into an other datahandle.
Length eckit:: PeekHandle:: saveInto(const PathName&,
TransferWatcher& = TransferWatcher::dummy()) virtual
#include <eckit/io/DataHandle.h>
Save into a file.
Length eckit:: PeekHandle:: 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:: PeekHandle:: name() const virtual
#include <eckit/io/DataHandle.h>
FILE* eckit:: PeekHandle:: openf(const char* mode,
bool delete_on_close = false)
#include <eckit/io/DataHandle.h>
Create a FILE* from this handle.
FILE* eckit:: PeekHandle:: openf(bool delete_on_close = false)
#include <eckit/io/DataHandle.h>
bool eckit:: PeekHandle:: compare(DataHandle&)
#include <eckit/io/DataHandle.h>
Compare bytes.
bool eckit:: PeekHandle:: compress(bool = false) virtual
#include <eckit/io/DataHandle.h>
bool eckit:: PeekHandle:: merge(DataHandle*) virtual
#include <eckit/io/DataHandle.h>
bool eckit:: PeekHandle:: isEmpty() const virtual
#include <eckit/io/DataHandle.h>
bool eckit:: PeekHandle:: moveable() const virtual
#include <eckit/io/DataHandle.h>
void eckit:: PeekHandle:: toLocal(Stream& s) const virtual
#include <eckit/io/DataHandle.h>
DataHandle* eckit:: PeekHandle:: toLocal() virtual
#include <eckit/io/DataHandle.h>
void eckit:: PeekHandle:: toRemote(Stream& s) const virtual
#include <eckit/io/DataHandle.h>
void eckit:: PeekHandle:: selectMover(MoverTransferSelection&,
bool read) const virtual
#include <eckit/io/DataHandle.h>
std:: string eckit:: PeekHandle:: metricsTag() const virtual
#include <eckit/io/DataHandle.h>
void eckit:: PeekHandle:: hash(MD5& md5) const virtual
#include <eckit/io/DataHandle.h>
bool eckit:: PeekHandle:: doubleBufferOK() const virtual
#include <eckit/io/DataHandle.h>
void eckit:: PeekHandle:: encode(Stream&) const override
#include <eckit/io/DataHandle.h>
const ReanimatorBase& eckit:: PeekHandle:: reanimator() const override
#include <eckit/io/DataHandle.h>
std:: string eckit:: PeekHandle:: className() const virtual
#include <eckit/serialisation/Streamable.h>