30 #include "../my_config.h" 123 void set_options(
const std::vector<std::string> &opt) { options_to_dar = opt; };
141 std::vector<std::string>
get_options()
const {
return options_to_dar; };
180 const std::vector<std::string> & filename,
190 bool initial_warn =
true;
194 if(check_order_asked)
195 return files->
check_order(dialog,
".", initial_warn) && initial_warn;
207 std::string basename;
211 std::vector<struct archive_data> coordinate;
212 std::vector<std::string> options_to_dar;
213 std::string dar_path;
216 bool check_order_asked;
219 archive_num get_real_archive_num(archive_num num,
bool revert)
const;
221 const infinint & get_root_last_mod(
const archive_num & num)
const;
database()
this constructor build an empty database
options for file "used" in archive
options for changing a given archive's path
options to add an archive to base
the archive class is defined in this module
void restore(user_interaction &dialog, const std::vector< std::string > &filename, const database_restore_options &opt)
restore files calling dar on the appropriated archive
the data_dir class inherits from data_tree and holds the directory tree's parent relationship ...
std::vector< std::string > get_options() const
return the options used with dar for restoration
void change_name(archive_num num, const std::string &basename, const database_change_basename_options &opt)
change one's archive basename recorded in the database
void remove_archive(archive_num min, archive_num max, const database_remove_options &opt)
remove an archive from a database
class generic_file is defined here as well as class fichierthe generic_file interface is widely used ...
void add_archive(const archive &arch, const std::string &chemin, const std::string &basename, const database_add_options &opt)
add an archive to the database
two classes used to store tree information in dar_manager databases
This is a pure virtual class that is used by libdar when interaction with the user is required...
contains a class that permits arbitrary large data storage
options for changing a given archive's basename
void show_contents(user_interaction &dialog) const
show the list of archive used to build the database
options to remove an archive from the base
void show_version(user_interaction &dialog, path chemin) const
list the archive where a give file is present
options to write a database to file
bool check_order(user_interaction &dialog, const path ¤t_path, bool &initial_warn) const
check date order between archives withing the database ; throw Erange if problem found with date orde...
the archive class realizes the most general operations on archives
arbitrary large storage structure
void show_files(user_interaction &dialog, archive_num num, const database_used_options &opt) const
list files which are present in a given archive
void dump(user_interaction &dialog, const std::string &filename, const database_dump_options &opt) const
write the database to a file (see database_header first)
~database()
database destructor (no implicit file saving)
bool check_order(user_interaction &dialog) const
check that all files's Data and EA are more recent when archive number grows within the database...
options for restoration from database
void set_dar_path(const std::string &chemin)
change the path to dar command
void show_most_recent_stats(user_interaction &dialog) const
compute some statistics about the location of most recent file versions
this is the interface class from which all other data transfer classes inherit
void set_permutation(archive_num src, archive_num dst)
change order of archive within the database
std::string get_dar_path() const
return the path for dar
this file holds the options for database operations
the arbitrary large positive integer class
void set_options(const std::vector< std::string > &opt)
change the default options given to dar when performing restoration
the database class defines the dar_manager database
void set_path(archive_num num, const std::string &chemin, const database_change_path_options &opt)
change one's archive path recorded in the database
libdar namespace encapsulate all libdar symbols
the class path is here to manipulate paths in the Unix notation: using'/'