 |
Disk ARchive
2.6.8
Full featured and portable backup and archiving tool
|
Go to the documentation of this file.
31 #ifndef GENERIC_TO_GLOBAL_FILE_HPP
32 #define GENERIC_TO_GLOBAL_FILE_HPP
75 virtual void change_ownership(
const std::string & user,
const std::string & group)
override {};
91 virtual bool fichier_global_inherited_read(
char *a, U_I size, U_I &
read, std::string & message)
override {
read = data->
read(a, size); message =
"THIS IS A BUG IN GENERIC_TO_GLOBAL_FILE, PLEASE REPORT TO THE MAINTAINER!";
return true; };
virtual void write(const char *a, U_I size) override
write data to the generic_file inherited from proto_generic_file
virtual void change_permission(U_I perm) override
change the permission of the file
virtual void fadvise(advise adv) const override
set posix_fadvise for the whole file
virtual bool skip_to_eof()=0
skip to the end of file
virtual bool skip(const infinint &pos) override
skip at the absolute position
gf_mode
generic_file openning modes
the arbitrary large positive integer class
virtual bool skippable(skippability direction, const infinint &amount) override
whether the implementation is able to skip
virtual void inherited_sync_write() override
write down any pending data
virtual bool skip(const infinint &pos)=0
skip at the absolute position
virtual infinint get_size() const override
return the size of the file
virtual bool skip_to_eof() override
skip to the end of file
virtual bool skip_relative(S_I x)=0
skip relatively to the current position
gf_mode get_mode() const
retreive the openning mode for this object
virtual U_I fichier_global_inherited_write(const char *a, U_I size) override
replaces generic_file::inherited_write() method, to allow the return of partial writings
virtual void inherited_flush_read() override
reset internal engine, flush caches in order to read the data at current position
class fichier_global definition. This class is a pure virtual class class fichier_global is an abstra...
virtual bool skippable(skippability direction, const infinint &amount)=0
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...
generic_to_global_file(const std::shared_ptr< user_interaction > &dialog, generic_file *d, gf_mode mode)
Constructors & Destructor.
virtual infinint get_position() const override
get the current read/write position
this is the interface class from which all other data transfer classes inherit
virtual U_I read(char *a, U_I size) override
read data from the generic_file inherited from proto_generic_file
virtual infinint get_position() const =0
get the current read/write position
virtual bool skip_relative(S_I x) override
skip relatively to the current position
abstraction of filesystem files for entrepot
virtual bool fichier_global_inherited_read(char *a, U_I size, U_I &read, std::string &message) override
replaces generic_file::inherited_read() method, to allow the return of partial reading
provides a fichier_global interface for any type of generic_file
virtual void change_ownership(const std::string &user, const std::string &group) override
set the ownership of the file
virtual void inherited_terminate() override
destructor-like call, except that it is allowed to throw exceptions
libdar namespace encapsulate all libdar symbols