class
#include <eckit/io/FileDescHandle.h>
FileDescHandle
Base classes
- class DataHandle
Public static functions
Constructors, destructors, conversion operators
- FileDescHandle(int, bool close = false)
- ~FileDescHandle()
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 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
- auto size() -> Length virtual
- auto estimate() -> 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 - 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:: FileDescHandle:: classSpec()
#include <eckit/io/DataHandle.h>
void eckit:: FileDescHandle:: flush() virtual
#include <eckit/io/DataHandle.h>
Length eckit:: FileDescHandle:: size() virtual
#include <eckit/io/DataHandle.h>
Length eckit:: FileDescHandle:: estimate() virtual
#include <eckit/io/DataHandle.h>
void eckit:: FileDescHandle:: rewind() virtual
#include <eckit/io/DataHandle.h>
void eckit:: FileDescHandle:: restartReadFrom(const Offset&) virtual
#include <eckit/io/DataHandle.h>
void eckit:: FileDescHandle:: restartWriteFrom(const Offset&) virtual
#include <eckit/io/DataHandle.h>
DataHandle* eckit:: FileDescHandle:: clone() const virtual
#include <eckit/io/DataHandle.h>
Length eckit:: FileDescHandle:: saveInto(DataHandle&,
TransferWatcher& = TransferWatcher::dummy()) virtual
#include <eckit/io/DataHandle.h>
Save into an other datahandle.
Length eckit:: FileDescHandle:: saveInto(const PathName&,
TransferWatcher& = TransferWatcher::dummy()) virtual
#include <eckit/io/DataHandle.h>
Save into a file.
Length eckit:: FileDescHandle:: 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:: FileDescHandle:: name() const virtual
#include <eckit/io/DataHandle.h>
FILE* eckit:: FileDescHandle:: openf(const char* mode,
bool delete_on_close = false)
#include <eckit/io/DataHandle.h>
Create a FILE* from this handle.
FILE* eckit:: FileDescHandle:: openf(bool delete_on_close = false)
#include <eckit/io/DataHandle.h>
bool eckit:: FileDescHandle:: compare(DataHandle&)
#include <eckit/io/DataHandle.h>
Compare bytes.
bool eckit:: FileDescHandle:: compress(bool = false) virtual
#include <eckit/io/DataHandle.h>
bool eckit:: FileDescHandle:: merge(DataHandle*) virtual
#include <eckit/io/DataHandle.h>
bool eckit:: FileDescHandle:: isEmpty() const virtual
#include <eckit/io/DataHandle.h>
bool eckit:: FileDescHandle:: moveable() const virtual
#include <eckit/io/DataHandle.h>
void eckit:: FileDescHandle:: toLocal(Stream& s) const virtual
#include <eckit/io/DataHandle.h>
DataHandle* eckit:: FileDescHandle:: toLocal() virtual
#include <eckit/io/DataHandle.h>
void eckit:: FileDescHandle:: toRemote(Stream& s) const virtual
#include <eckit/io/DataHandle.h>
void eckit:: FileDescHandle:: selectMover(MoverTransferSelection&,
bool read) const virtual
#include <eckit/io/DataHandle.h>
std:: string eckit:: FileDescHandle:: title() const virtual
#include <eckit/io/DataHandle.h>
std:: string eckit:: FileDescHandle:: metricsTag() const virtual
#include <eckit/io/DataHandle.h>
void eckit:: FileDescHandle:: collectMetrics(const std:: string& what) const virtual
#include <eckit/io/DataHandle.h>
void eckit:: FileDescHandle:: hash(MD5& md5) const virtual
#include <eckit/io/DataHandle.h>
bool eckit:: FileDescHandle:: doubleBufferOK() const virtual
#include <eckit/io/DataHandle.h>
const ReanimatorBase& eckit:: FileDescHandle:: reanimator() const override
#include <eckit/io/DataHandle.h>
std:: string eckit:: FileDescHandle:: className() const virtual
#include <eckit/serialisation/Streamable.h>