30 #ifndef FICHIER_GLOBAL_HPP 31 #define FICHIER_GLOBAL_HPP 34 #include "../my_config.h" 84 virtual void change_ownership(
const std::string & user,
const std::string & group) = 0;
93 virtual void fadvise(advise adv)
const = 0;
124 void inherited_write(
const char *a, U_I size);
125 U_I inherited_read(
char *a, U_I size);
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
class crc definition, used to handle Cyclic Redundancy Checks
define the datastructure "label" used to identify slice membership to an archive
This is a pure virtual class that is used by libdar when interaction with the user is required...
U_I read(char *a, U_I size)
read data from the generic_file
gf_mode
generic_file openning modes
defines the interaction between libdar and the user.Three classes are defined
virtual bool fichier_global_inherited_read(char *a, U_I size, U_I &read, std::string &message)=0
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.the class thread_cancellation i...
virtual void change_ownership(const std::string &user, const std::string &group)=0
set the ownership of the file
mem_ui(const user_interaction &dialog)
constructor
generic_file(gf_mode m)
main constructor
class to be used as parent to provide checkpoints to inherited classes
thread_cancellation()
the constructor
virtual void fadvise(advise adv) const =0
set posix_fadvise for the whole file
fichier_global(const user_interaction &dialog, gf_mode mode)
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
virtual U_I fichier_global_inherited_write(const char *a, U_I size)=0
the arbitrary large positive integer class
libdar namespace encapsulate all libdar symbols
virtual infinint get_size() const =0
return the size of the file