30 #include "../my_config.h"
76 archive(
const std::shared_ptr<user_interaction> & dialog,
78 const std::string & basename,
79 const std::string & extension,
103 archive(
const std::shared_ptr<user_interaction> & dialog,
104 const path & fs_root,
105 const path & sauv_path,
106 const std::string & filename,
107 const std::string & extension,
128 archive(
const std::shared_ptr<user_interaction> & dialog,
129 const path & sauv_path,
130 std::shared_ptr<archive> ref_arch1,
131 const std::string & filename,
132 const std::string & extension,
148 archive(
const std::shared_ptr<user_interaction> & dialog,
149 const path & chem_src,
150 const std::string & basename_src,
151 const std::string & extension_src,
153 const path & chem_dst,
154 const std::string & basename_dst,
155 const std::string & extension_dst,
235 const archive_options_diff & options,
274 const std::string & filename,
275 const std::string & extension,
288 const std::string & dir,
289 bool fetch_ea =
false);
344 std::shared_ptr<i_archive> pimpl;
definition of the user defined callback function used for archive listing
this file contains a set of classes used to transmit options to archive operation
datastructure returned by archive::summary_data
the archive::i_archive class implements the most general operations on archives
class holding optional parameters used to create an archive
class holding optional parameters used to isolate an existing archive
class holding optional parameters used to list the contents of an existing archive
class holding optional parameters used to proceed to the merge operation
class holding optional parameters used to read an existing archive
class holding optional parameters used to create an archive
class holding optional parameters used to test the structure coherence of an existing archive
the archive_summary class provides information about a given archive
the archive class realizes the most general operations on archives
the database class defines the dar_manager database
the class path is here to manipulate paths in the Unix notation: using'/'
class used by libdar::archive class to give a summary of treated file during and after an operation
the crypto algoritm definition
contains all the excetion class thrown by libdar
archive(const archive &ref)=delete
copy constructor (not implemented, throw an exception if called explicitely or implicitely)
statistics op_test(const archive_options_test &options, statistics *progressive_report)
test the archive integrity
void(*)(const std::string &the_path, const list_entry &entry, void *context) archive_listing_callback
callback function type expected for archive::op_listing and archive::get_children_of()
statistics op_diff(const path &fs_root, const archive_options_diff &options, statistics *progressive_report)
archive comparison with filesystem
const std::list< signator > & get_signatories() const
retrieving signature information about the archive
const std::vector< list_entry > get_children_in_table(const std::string &dir, bool fetch_ea=false) const
getting information about the given directory (alternative to get_children_of)
archive_summary summary_data()
same information as summary() but as broken out data
const entree_stats get_stats() const
retrieving statistics about archive contents
void init_catalogue() const
void summary()
display a summary of the archive
bool get_children_of(archive_listing_callback callback, void *context, const std::string &dir, bool fetch_ea=false)
getting information about a given directory
archive(const std::shared_ptr< user_interaction > &dialog, const path &sauv_path, std::shared_ptr< archive > ref_arch1, const std::string &filename, const std::string &extension, const archive_options_merge &options, statistics *progressive_report)
this constructor builds an archive from two given archive [this is the "merge" constructor]
bool has_subdirectory(const std::string &dir) const
returns true if the pointed directory has one or more subdirectories
U_64 get_non_first_slice_header_size() const
get the non first slice header
U_64 get_first_slice_header_size() const
get the first slice header
void op_isolate(const path &sauv_path, const std::string &filename, const std::string &extension, const archive_options_isolate &options)
this methodes isolates the catalogue of a the current archive into a separated archive
archive(const std::shared_ptr< user_interaction > &dialog, const path &chem_src, const std::string &basename_src, const std::string &extension_src, const archive_options_read &options_read, const path &chem_dst, const std::string &basename_dst, const std::string &extension_dst, const archive_options_repair &options_repair)
this constructor create a new archive from a damaged one [this is the "repair" constructor]
archive(const std::shared_ptr< user_interaction > &dialog, const path &chem, const std::string &basename, const std::string &extension, const archive_options_read &options)
this constructor opens an already existing archive (for reading) [this is the "read" constructor]
void op_listing(archive_listing_callback callback, void *context, const archive_options_listing &options) const
listing of the archive contents
void drop_all_filedescriptors()
closes all filedescriptors and associated even when in sequential read mode
archive(const std::shared_ptr< user_interaction > &dialog, const path &fs_root, const path &sauv_path, const std::string &filename, const std::string &extension, const archive_options_create &options, statistics *progressive_report)
this constuctor create an archive (full or differential) [this is the "create" constructor]
statistics op_extract(const path &fs_root, const archive_options_extract &options, statistics *progressive_report)
extraction of data from an archive
void set_to_unsaved_data_and_FSA()
change all inode as unsaved (equal to differential backup with no change met)
class of objects describing an entry in the archive, used by archive::get_children_in_table
libdar namespace encapsulate all libdar symbols
here is the definition of the path class
class handling access to the data summary of treated files after and during each operation
holds the statistics contents of a catalogue
defines the interaction interface between libdar and users.