 |
Disk ARchive
2.6.8
Full featured and portable backup and archiving tool
|
Go to the documentation of this file.
29 #ifndef FICHIER_GLOBAL_HPP
30 #define FICHIER_GLOBAL_HPP
33 #include "../my_config.h"
97 virtual void change_ownership(
const std::string & user,
const std::string & group) = 0;
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
fichier_global(const std::shared_ptr< user_interaction > &dialog, gf_mode mode)
constructor
fichier_global & operator=(const fichier_global &ref)=default
assignment operator
class to be used as parent to provide checkpoints to inherited classes
virtual void change_permission(U_I perm)=0
change the permission of the file
defines the interaction interface between libdar and users.
are defined here basic integer types that tend to be portable
gf_mode
generic_file openning modes
the arbitrary large positive integer class
virtual void change_ownership(const std::string &user, const std::string &group)=0
set the ownership of the file
application does not expect to read the data more than once
class mem_ui to keep a copy of a user_interaction object
application expect to read the data in random order
to be able to cancel libdar operation while running in a given thread.
class generic_file is defined here as well as class fichier
application will not read the data in near future
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
application expect to read the data again in near future
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
no advise given by the application
application expect to read the data sequentially
virtual void fadvise(advise adv) const =0
set posix_fadvise for the whole file
abstraction of filesystem files for entrepot
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 U_I inherited_read(char *a, U_I size) override
implementation of read() operation
virtual infinint get_size() const =0
return the size of the file
class mem_ui definition. This class is to be used as parent class to handle user_interaction object m...
libdar namespace encapsulate all libdar symbols