29 #ifndef FICHIER_GLOBAL_HPP
30 #define FICHIER_GLOBAL_HPP
33 #include "../my_config.h"
class mem_ui definition. This class is to be used as parent class to handle user_interaction object m...
are defined here basic integer types that tend to be portable
virtual infinint get_size() const =0
return the size of the file
application expect to read the data sequentially
class generic_file is defined here as well as class fichierthe generic_file interface is widely used ...
virtual U_I inherited_read(char *a, U_I size) override
implementation of read() operation
fichier_global(const std::shared_ptr< user_interaction > &dialog, gf_mode mode)
constructor
application expect to read the data in random order
gf_mode
generic_file openning modes
application expect to read the data again in near future
defines the interaction interface between libdar and users.
virtual bool fichier_global_inherited_read(char *a, U_I size, U_I &read, std::string &message)=0
replaces generic_file::inherited_read() method, to allow the return of partial reading ...
virtual void change_permission(U_I perm)=0
change the permission of the file
abstraction of filesystem files for entrepot
to be able to cancel libdar operation while running in a given thread.
virtual void change_ownership(const std::string &user, const std::string &group)=0
set the ownership of the file
virtual void inherited_write(const char *a, U_I size) override
implementation of the write() operation
virtual U_I read(char *a, U_I size) override
read data from the generic_file inherited from proto_generic_file
class to be used as parent to provide checkpoints to inherited classes
bool disk_full
whether user refused to continue due to disk being full
this is the interface class from which all other data transfer classes inherit
class mem_ui to keep a copy of a user_interaction object
application does not expect to read the data more than once
virtual U_I fichier_global_inherited_write(const char *a, U_I size)=0
replaces generic_file::inherited_write() method, to allow the return of partial writings ...
virtual void fadvise(advise adv) const =0
set posix_fadvise for the whole file
the arbitrary large positive integer class
application will not read the data in near future
libdar namespace encapsulate all libdar symbols
no advise given by the application