34 #ifndef ENTREPOT_LOCAL_HPP 35 #define ENTREPOT_LOCAL_HPP 37 #include "../my_config.h" 57 entrepot_local(
const std::string & user,
const std::string & group,
bool x_furtive_mode);
67 virtual bool read_dir_next(std::string & filename)
const override;
72 virtual fichier_global *inherited_open(
const std::shared_ptr<user_interaction> & dialog,
73 const std::string & filename,
75 bool force_permission,
78 bool erase)
const override;
80 virtual void inherited_unlink(
const std::string & filename)
const override;
81 virtual void read_dir_flush()
override { detruit(); };
87 void nullifyptr() noexcept { contents =
nullptr; };
88 void copy_from(
const entrepot_local & ref) { furtive_mode = ref.furtive_mode; contents =
nullptr; };
89 void move_from(
entrepot_local && ref) noexcept { std::swap(contents, ref.contents), std::swap(furtive_mode, ref.furtive_mode); };
90 void detruit() {
if(contents !=
nullptr) {
delete contents; contents =
nullptr; } };
defines the entrepot interface. Entrepot interface defines a generic way to interact with files (slic...
virtual void read_dir_reset() const override
routines to read existing files in the current directory (see set_location() / set_root() methods) ...
gf_mode
generic_file openning modes
defines the interaction interface between libdar and users.
definition of the etage structure is done here
class fichier_global definition. This class is a pure virtual class class fichier_global is an abstra...
abstraction of filesystem files for entrepot
virtual path get_full_path() const
returns the full path of location
virtual std::string get_url() const override
full path of current directory + anything necessary to provide URL formated information ...
entrepot & operator=(const entrepot &ref)=default
assignment operator
the etage structure keep trace of directory contents
libdar namespace encapsulate all libdar symbols
virtual entrepot * clone() const override
generate a clone of "this"
std::string display() const
convert back a path to a string