Disk ARchive 2.4.2
|
libdar_4_4 namespace encapsulate all symbols of the backward compatible API More...
Classes | |
class | user_interaction |
wrapper class for user_interaction More... | |
class | blowfish |
wrapper class for blowfish More... | |
class | archive |
wrapper class for archive More... | |
Typedefs | |
typedef libdar::Egeneric | Egeneric |
typedef libdar::Ememory | Ememory |
typedef libdar::Ebug | Ebug |
typedef libdar::Einfinint | Einfinint |
typedef libdar::Elimitint | Elimitint |
typedef libdar::Erange | Erange |
typedef libdar::Edeci | Edeci |
typedef libdar::Efeature | Efeature |
typedef libdar::Ehardware | Ehardware |
typedef libdar::Euser_abort | Euser_abort |
typedef libdar::Edata | Edata |
typedef libdar::Escript | Escript |
typedef libdar::Elibcall | Elibcall |
typedef libdar::Ecompilation | Ecompilation |
typedef libdar::Ethread_cancel | Ethread_cancel |
typedef libdar::compression | compression |
typedef libdar::compressor | compressor |
typedef libdar::path | path |
typedef libdar::mask | mask |
typedef libdar::bool_mask | bool_mask |
typedef libdar::simple_mask | simple_mask |
typedef libdar::regular_mask | regular_mask |
typedef libdar::not_mask | not_mask |
typedef libdar::et_mask | et_mask |
typedef libdar::ou_mask | ou_mask |
typedef libdar::simple_path_mask | simple_path_mask |
typedef libdar::same_path_mask | same_path_mask |
typedef libdar::exclude_dir_mask | exclude_dir_mask |
typedef libdar::U_8 | U_8 |
typedef libdar::U_16 | U_16 |
typedef libdar::U_32 | U_32 |
typedef libdar::U_64 | U_64 |
typedef libdar::U_I | U_I |
typedef libdar::S_8 | S_8 |
typedef libdar::S_16 | S_16 |
typedef libdar::S_32 | S_32 |
typedef libdar::S_64 | S_64 |
typedef libdar::S_I | S_I |
typedef libdar::infinint | infinint |
typedef libdar::statistics | statistics |
typedef libdar::user_interaction_callback | user_interaction_callback |
typedef libdar::deci | deci |
typedef libdar::archive_version | dar_version |
typedef libdar::crypto_algo | crypto_algo |
typedef libdar::inode | inode |
typedef libdar::thread_cancellation | thread_cancellation |
Functions | |
compression | char2compression (char a) |
char | compression2char (compression c) |
std::string | compression2string (compression c) |
compression | string2compression (const std::string &a) |
libdar::secu_string | string2secu_string (const std::string &st) |
void | crypto_split_algo_pass (const std::string &all, crypto_algo &algo, std::string &pass) |
void | get_version (U_I &major, U_I &minor, bool init_libgcrypt=true) |
depreacted old get_version function | |
void | get_version_noexcept (U_I &major, U_I &minor, U_16 &exception, std::string &except_msg, bool init_libgcrypt=true) |
depreacted old get_version function | |
void | get_version (U_I &major, U_I &medium, U_I &minor, bool init_libgcrypt=true) |
return the libdar version, and make libdar initialization (may throw Exceptions) | |
void | get_version_noexcept (U_I &major, U_I &medium, U_I &minor, U_16 &exception, std::string &except_msg, bool init_libgcrypt=true) |
return the libdar version, and make libdar initialization (does not throw exceptions) | |
void | get_compile_time_features (bool &ea, bool &largefile, bool &nodump, bool &special_alloc, U_I &bits, bool &thread_safe, bool &libz, bool &libbz2, bool &libcrypto, bool &new_blowfish) |
return the options activated that have been activated at compilation time | |
archive * | open_archive_noexcept (user_interaction &dialog, const path &chem, const std::string &basename, const std::string &extension, crypto_algo crypto, const std::string &pass, U_32 crypto_size, const std::string &input_pipe, const std::string &output_pipe, const std::string &execute, bool info_details, U_16 &exception, std::string &except_msg) |
this is a wrapper around the archive constructor known as the "read" constructor | |
archive * | create_archive_noexcept (user_interaction &dialog, const path &fs_root, const path &sauv_path, archive *ref_arch, const mask &selection, const mask &subtree, const std::string &filename, const std::string &extension, bool allow_over, bool warn_over, bool info_details, const infinint &pause, bool empty_dir, compression algo, U_I compression_level, const infinint &file_size, const infinint &first_file_size, const mask &ea_mask, const std::string &execute, crypto_algo crypto, const std::string &pass, U_32 crypto_size, const mask &compr_mask, const infinint &min_compr_size, bool nodump, inode::comparison_fields what_to_check, const infinint &hourshift, bool empty, bool alter_atime, bool same_fs, bool snapshot, bool cache_directory_tagging, bool display_skipped, const infinint &fixed_date, statistics *progressive_report, U_16 &exception, std::string &except_msg) |
this is a wrapper around the archive constructor known as the "create" constructor | |
archive * | isolate_archive_noexcept (user_interaction &dialog, const path &sauv_path, archive *ref_arch, const std::string &filename, const std::string &extension, bool allow_over, bool warn_over, bool info_details, const infinint &pause, compression algo, U_I compression_level, const infinint &file_size, const infinint &first_file_size, const std::string &execute, crypto_algo crypto, const std::string &pass, U_32 crypto_size, bool empty, U_16 &exception, std::string &except_msg) |
this is a wrapper around the archive constructor known as the "isolate" constructor | |
archive * | merge_archive_noexcept (user_interaction &dialog, const path &sauv_path, archive *ref_arch1, archive *ref_arch2, const mask &selection, const mask &subtree, const std::string &filename, const std::string &extension, bool allow_over, bool warn_over, bool info_details, const infinint &pause, bool empty_dir, compression algo, U_I compression_level, const infinint &file_size, const infinint &first_file_size, const mask &ea_mask, const std::string &execute, crypto_algo crypto, const std::string &pass, U_32 crypto_size, const mask &compr_mask, const infinint &min_compr_size, bool empty, bool display_skipped, bool keep_compressed, statistics *progressive_report, U_16 &exception, std::string &except_msg) |
this is a wrapper around the archive constructor known as the "merging" constructor | |
void | close_archive_noexcept (archive *ptr, U_16 &exception, std::string &except_msg) |
this is wrapper around the archive destructor | |
statistics | op_extract_noexcept (user_interaction &dialog, archive *ptr, const path &fs_root, const mask &selection, const mask &subtree, bool allow_over, bool warn_over, bool info_details, bool detruire, bool only_more_recent, const mask &ea_mask, bool flat, inode::comparison_fields what_to_check, bool warn_remove_no_match, const infinint &hourshift, bool empty, bool ea_erase, bool display_skipped, statistics *progressive_report, U_16 &exception, std::string &except_msg) |
this is wrapper around the op_extract method | |
void | op_listing_noexcept (user_interaction &dialog, archive *ptr, bool info_details, archive::listformat list_mode, const mask &selection, bool filter_unsaved, U_16 &exception, std::string &except_msg) |
this is wrapper around the op_listing method | |
statistics | op_diff_noexcept (user_interaction &dialog, archive *ptr, const path &fs_root, const mask &selection, const mask &subtree, bool info_details, const mask &ea_mask, inode::comparison_fields what_to_check, bool alter_atime, bool display_skipped, statistics *progressive_report, U_16 &exception, std::string &except_msg) |
this is wrapper around the op_diff method | |
statistics | op_test_noexcept (user_interaction &dialog, archive *ptr, const mask &selection, const mask &subtree, bool info_details, bool display_skipped, statistics *progressive_report, U_16 &exception, std::string &except_msg) |
this is wrapper around the op_test method | |
bool | get_children_of_noexcept (user_interaction &dialog, archive *ptr, const std::string &dir, U_16 &exception, std::string &except_msg) |
this is wrapper around the get_children_of method | |
char * | libdar_str2charptr_noexcept (const std::string &x, U_16 &exception, std::string &except_msg) |
routine provided to convert std::string to char * | |
void | tools_4_4_build_compatible_overwriting_policy (bool allow_over, bool detruire, bool more_recent, const libdar::infinint &hourshift, bool ea_erase, const libdar::crit_action *&overwrite) |
Defines an overwriting policy based on pre 2.4.0 options. | |
Variables | |
const compression | none = libdar::none |
const compression | zip = libdar::gzip |
const compression | gzip = libdar::gzip |
const compression | bzip2 = libdar::bzip2 |
const crypto_algo | crypto_none = libdar::crypto_none |
const crypto_algo | crypto_scrambling = libdar::crypto_scrambling |
const crypto_algo | crypto_blowfish = libdar::crypto_blowfish |
const crypto_algo | crypto_blowfish_weak = libdar::crypto_blowfish |
const U_I | LIBDAR_COMPILE_TIME_MAJOR = 4 |
libdar Major version defined at compilation time | |
const U_I | LIBDAR_COMPILE_TIME_MEDIUM = 6 |
libdar Medium version defined at compilation time | |
const U_I | LIBDAR_COMPILE_TIME_MINOR = 2 |
libdar Minor version defined at compilation time |
libdar_4_4 namespace encapsulate all symbols of the backward compatible API
void libdar_4_4::tools_4_4_build_compatible_overwriting_policy | ( | bool | allow_over, |
bool | detruire, | ||
bool | more_recent, | ||
const libdar::infinint & | hourshift, | ||
bool | ea_erase, | ||
const libdar::crit_action *& | overwrite | ||
) |
Defines an overwriting policy based on pre 2.4.0 options.
[in] | allow_over | whether overwriting is allowed or forbidden at all |
[in] | detruire | whether "restoration" of file recorded as deleted is allowed (in other words, whether file removal at restoration time is allowed) |
[in] | more_recent | whether to only restore more recent files |
[in] | hourshift | the hourshift to use to compare "more recent" dates |
[in] | ea_erase | whether to erase existing EA before restoring them from archive |
[out] | overwrite | that will be set to a newly allocated object to be deleted by the caller at a later time |