27 #ifndef FICHIER_LOCAL_HPP 28 #define FICHIER_LOCAL_HPP 31 #include "../my_config.h" 66 const std::string & chemin,
72 fichier_local(
const std::string & chemin,
bool furtive_mode =
false);
76 const fichier_local & operator = (
const fichier_local & ref) { detruit(); copy_parent_from(ref); copy_from(ref);
return *
this; };
83 virtual void change_ownership(
const std::string & user,
const std::string & group);
121 void open(
const std::string & chemin,
130 void detruit() {
if(filedesc >= 0) close(filedesc); filedesc = -1; };
131 int advise_to_int(advise arg)
const;
class mem_ui definition. This class is to be used as parent class to handle user_interaction object m...
void inherited_read_ahead(const infinint &amount)
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
infinint get_position() const
get the current read/write position
void inherited_sync_write()
write down any pending data
void terminate() const
destructor-like call, except that it is allowed to throw exceptions
defines the interaction between libdar and the user.Three classes are defined
void inherited_flush_read()
class fichier_global definition. This class is a pure virtual class class fichier_global is an abstra...
abstraction of filesystem files for entrepot
to be able to cancel libdar operation while running in a given thread.the class thread_cancellation i...
bool skippable(skippability direction, const infinint &amount)
virtual void change_ownership(const std::string &user, const std::string &group)
set the ownership of the file
U_I fichier_global_inherited_write(const char *a, U_I size)
bool skip(const infinint &pos)
fichier_global(const user_interaction &dialog, gf_mode mode)
void fadvise(advise adv) const
set posix_fadvise for the whole file
bool skip_relative(S_I x)
skip relatively to the current position
the arbitrary large positive integer class
S_I give_fd_and_terminate()
void inherited_terminate()
destructor-like call, except that it is allowed to throw exceptions
bool fichier_global_inherited_read(char *a, U_I size, U_I &read, std::string &message)
bool skip_to_eof()
skip to the end of file
libdar namespace encapsulate all libdar symbols
virtual void change_permission(U_I perm)
change the permission of the file
infinint get_size() const
return the size of the file