 |
Disk ARchive
2.6.8
Full featured and portable backup and archiving tool
|
Go to the documentation of this file.
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; } };
entrepot & operator=(const entrepot &ref)=default
assignment operator
defines the interaction interface between libdar and users.
gf_mode
generic_file openning modes
virtual void read_dir_reset() const override
routines to read existing files in the current directory (see set_location() / set_root() methods)
virtual path get_full_path() const
returns the full path of location
class fichier_global definition. This class is a pure virtual class class fichier_global is an abstra...
defines the entrepot interface. Entrepot interface defines a generic way to interact with files (slic...
std::string display() const
convert back a path to a string
virtual entrepot * clone() const override
generate a clone of "this"
definition of the etage structure is done here
abstraction of filesystem files for entrepot
virtual std::string get_url() const override
full path of current directory + anything necessary to provide URL formated information
libdar namespace encapsulate all libdar symbols