#include <database.hpp>
Public Member Functions | |
| database () | |
| this constructor build an empty database | |
| database (user_interaction &dialog, const std::string &base, bool partial) | |
| this constructor reads database from a file | |
| ~database () | |
| database destructor (no implicit file saving) | |
| void | dump (user_interaction &dialog, const std::string &filename, bool overwrite) const |
| write the database to a file (see database_header first) | |
| void | add_archive (const archive &arch, const std::string &chemin, const std::string &basename) |
| add an archive to the database | |
| void | remove_archive (archive_num min, archive_num max) |
| remove an archive from a database | |
| void | set_permutation (archive_num src, archive_num dst) |
| change order of archive within the database | |
| void | change_name (archive_num num, const std::string &basename) |
| change one's archive basename recorded in the database | |
| void | set_path (archive_num num, const std::string &chemin) |
| change one's archive path recorded in the database | |
| void | set_options (const std::vector< std::string > &opt) |
| change the default options given to dar when performing restoration | |
| void | set_dar_path (const std::string &chemin) |
| change the path to dar command | |
| void | show_contents (user_interaction &dialog) const |
| show the list of archive used to build the database | |
| std::vector< std::string > | get_options () const |
| return the options used with dar for restoration | |
| std::string | get_dar_path () const |
| return the path for dar | |
| void | show_files (user_interaction &dialog, archive_num num) const |
| list files which are present in a given archive | |
| void | show_version (user_interaction &dialog, path chemin) const |
| list the archive where a give file is present | |
| void | show_most_recent_stats (user_interaction &dialog) const |
| compute some statistics about the location of most recent file versions | |
| void | restore (user_interaction &dialog, const std::vector< std::string > &filename, bool early_release, const std::vector< std::string > &extra_options_for_dar, const infinint &date=0) |
| restore files calling dar on the appropriated archive | |
all operations for a dar_manager database are defines through the use of this class interface. This class also defines internally the data structure of the database.
Definition at line 49 of file database.hpp.
|
||||||||||||||||
|
this constructor reads database from a file
|
|
||||||||||||||||
|
add an archive to the database
|
|
||||||||||||
|
change one's archive basename recorded in the database
|
|
||||||||||||||||
|
write the database to a file (see database_header first)
|
|
|
return the path for dar
Definition at line 141 of file database.hpp. |
|
||||||||||||
|
remove an archive from a database
|
|
||||||||||||||||||||||||
|
restore files calling dar on the appropriated archive
|
|
|
change the path to dar command
Definition at line 123 of file database.hpp. |
|
|
change the default options given to dar when performing restoration
Definition at line 117 of file database.hpp. |
|
||||||||||||
|
change one's archive path recorded in the database
|
|
||||||||||||
|
change order of archive within the database
|
|
|
show the list of archive used to build the database
|
|
||||||||||||
|
list files which are present in a given archive
|
|
|
compute some statistics about the location of most recent file versions
|
|
||||||||||||
|
list the archive where a give file is present
|
1.4.2