30#include "//include/dar/libdar_my_config.h"
34#include "//include/dar/archive.hpp"
35#include "//include/dar/generic_file.hpp"
36#include "//include/dar/data_tree.hpp"
37#include "//include/dar/storage.hpp"
38#include "//include/dar/database_options.hpp"
39#include "//include/dar/database.hpp"
40#include "//include/dar/user_interaction5.hpp"
41#include "//include/dar/data_tree.hpp"
42#include "//include/dar/path.hpp"
43#include "//include/dar/database_listing_callback.hpp"
44#include "//include/dar/database_aux.hpp"
45#include "//include/dar/datetime.hpp"
46#include "//include/dar/user_interaction_blind.hpp"
87 const std::string & base,
148 const std::vector<std::string> & filename,
162 static void show_files_callback(
void *tag,
163 const std::string & filename,
168 static void get_version_callback(
void *tag,
170 db_etat data_presence,
177 static void statistics_callback(
void *tag,
179 const infinint & data_count,
180 const infinint & total_data,
181 const infinint & ea_count,
182 const infinint & total_ea);
the database class defines the dar_manager database
~database()=default
database destructor (no implicit file saving)
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 show_contents(user_interaction &dialog) const
show the list of archive used to build the database
database(const database &ref)=delete
disabling copy constructor
database(database &&ref) noexcept=delete
disabling move constructor
database & operator=(const database &ref)=delete
disabling assignement operator
void show_most_recent_stats(user_interaction &dialog) const
compute some statistics about the location of most recent file versions
void show_version(user_interaction &dialog, path chemin) const
list the archive where a give file is present
This is a pure virtual class that is used by libdar when interaction with the user is required.
class archive_num stores the position of an archive inside a dar_manager database
options to add an archive to base
options for changing a given archive's basename
options for changing a given archive's path
options to write a database to file
options to open a database
options to remove an archive from the base
options for restoration from database
options for file "used" in archive
the database class defines the dar_manager database
bool check_order() const
check that all files's Data and EA are more recent when archive number grows within the database,...
void dump(const std::string &filename, const database_dump_options &opt) const
write the database to a file (see database_header first)
void restore(const std::vector< std::string > &filename, const database_restore_options &opt)
restore files calling dar on the appropriated archive
the class path is here to manipulate paths in the Unix notation: using'/'
full implementation class for user_interaction, which shows nothing and assumes answer "no" to any qu...
std::shared_ptr< user_interaction > user_interaction5_clone_to_shared_ptr(user_interaction &dialog)
convert a user_interaction to a shared_pointer on a clone of that user_interaction
db_lookup
the available status of a lookup
db_etat
the status for a founded entry
libdar5 namespace encapsulate all libdar symbols