30 #include "../my_config.h"
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,
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 archive class is defined in this module
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
database & operator=(const database &ref)=delete
disabling assignement operator
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
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...
base classes used to store entree information in dar_manager databases
this file holds the database class definition
set of datastructures used to interact with a database object
definition of the user defined callback function used for database listing
this file holds the options for database operations
this file contains the definition of class datetime that stores unix times in a portable way
class generic_file is defined here as well as class fichier
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
bool ea() noexcept
returns whether EA support has been activated at compilation time
here is the definition of the path class
contains a class that permits arbitrary large data storage
API v5 backward compatible class user_interaction.
defines the interaction between libdar and a non communcant "blind" user