 |
Disk ARchive
2.6.8
Full featured and portable backup and archiving tool
|
Go to the documentation of this file.
31 #include "../my_config.h"
59 virtual bool skippable(skippability direction,
const infinint & amount)
override {
return true; };
60 virtual bool skip(
const infinint &pos)
override { set_offset(pos);
return true; };
61 virtual bool skip_to_eof()
override { offset = max_offset;
return true; };
62 virtual bool skip_relative(
signed int x)
override {
return set_rel_offset(x); };
81 set_offset(offset + siz);
99 bool set_rel_offset(
signed int x)
103 set_offset(offset + x);
generic_file(gf_mode m)
main constructor
void check_self_cancellation() const
Checkpoint test : whether the current libdar call must abort or not.
class to be used as parent to provide checkpoints to inherited classes
gf_mode
generic_file openning modes
the arbitrary large positive integer class
virtual void inherited_flush_read() override
reset internal engine, flush caches in order to read the data at current position
virtual void inherited_terminate() override
destructor-like call, except that it is allowed to throw exceptions
virtual bool skippable(skippability direction, const infinint &amount) override
whether the implementation is able to skip
virtual void inherited_read_ahead(const infinint &amount) override
tells the object that several calls to read() will follow to probably obtain at least the given amoun...
virtual bool skip_to_eof() override
skip to the end of file
to be able to cancel libdar operation while running in a given thread.
class generic_file is defined here as well as class fichier
virtual void inherited_write(const char *a, U_I siz) override
implementation of the write() operation
virtual bool skip(const infinint &pos) override
skip at the absolute position
this is the interface class from which all other data transfer classes inherit
virtual U_I inherited_read(char *a, U_I size) override
implementation of read() operation
the null_file class implements the /dev/null behavior
virtual void inherited_sync_write() override
write down any pending data
virtual infinint get_position() const override
get the current read/write position
libdar namespace encapsulate all libdar symbols