Logo Search packages:      
Sourcecode: dar version File versions

libdar Namespace Reference


Detailed Description

libdar namespace encapsulate all libdar symbols


Classes

struct  answer
class  archive
 the archive class realizes the most general operations on archives More...
class  blockdev
 the block device class More...
class  blowfish
 blowfish implementation of encryption More...
class  bool_mask
 boolean mask, either always true or false More...
class  cache
 the cache class implements a very basic read/write caching mechanisme More...
class  catalogue
 the catalogue class which gather all objects contained in a give archive More...
class  chardev
 the char device class More...
class  compressor
 compression class for gzip and bzip2 algorithms More...
class  contextual
 the contextual class adds the information of phases in the generic_file More...
class  deci
 decimal class, convert infinint from and to decimal represention More...
class  defile
 the defile class keep trace of the real path of files while the flow in the filter routines More...
class  detruit
 the deleted file entry More...
class  device
 the special device root class More...
class  directory
 the directory inode class More...
class  ea_attributs
struct  ea_entry
class  Ebug
 exception used to signal a bug. A bug is triggered when reaching some code that should never be reached More...
class  Ecompilation
 exception used when a requested fearture has not beed activated at compilation time More...
class  Edata
 exception used when an error concerning the treated data has been met More...
class  Edeci
 exception used to signal convertion problem between infinint and string (decimal representation) More...
class  Efeature
 exception used when a requested feature is not (yet) implemented More...
class  Egeneric
 this is the parent class of all exception classes. More...
class  Ehardware
 exception used when hardware problem is found More...
class  Einfinint
 exception used when arithmetic error is detected when operating on infinint More...
class  elastic
 the elastic buffer class More...
class  Elibcall
 exception used to signal an error in the argument given to libdar call of the API More...
class  Elimitint
 exception used when a limitint overflow is detected, the maximum value of the limitint has been exceeded More...
class  Ememory
 exception used when memory has been exhausted More...
class  entree
 the root class from all other inherite for any entry in the catalogue More...
struct  entree_stats
class  eod
 the End of Directory entry class More...
class  Erange
 exception used to signal range error More...
class  Escript
 exception used when error the inter-slice user command returned an error code More...
class  et_mask
 makes an *AND* operator between two or more masks More...
struct  etage
 the etage structure keep trace of directory contents More...
class  etiquette
 the hard link managment interface class (pure virtual class) More...
class  Euser_abort
 exception used to signal that the user has aborted the operation More...
class  exclude_dir_mask
 matches if string is the given string or a sub directory of it More...
class  fichier
 this is a full implementation of a generic_file applied to a plain file More...
class  file
 the plain file class More...
class  file_etiquette
 the hard linked plain file More...
class  filesystem_backup
 make a flow sequence of inode to feed the backup filtering routing More...
class  filesystem_diff
 make a flow of inode to feed the difference filter routine More...
class  filesystem_hard_link_read
 keep trace of hard links when reading the filesystem More...
class  filesystem_hard_link_write
 keep trace of already written inodes to restore hard links More...
class  filesystem_restore
 receive the flow of inode from the restoration filtering routing and promotes theses to real filesystem objects More...
class  generic_file
 this is the interface class from which all other data transfer classes inherit More...
class  hard_link
 the secondary reference to a hard linked inode More...
struct  header
struct  header_version
class  ignored
 the present file to ignore (not to be recorded as deleted later) More...
class  ignored_dir
 the ignored directory class, to be promoted later as empty directory if needed More...
class  infinint
 the arbitrary large positive integer class More...
class  inode
 the root class for all inode More...
class  lien
 the symbolic link inode class More...
class  limitint
 limitint template class More...
class  mask
 the generic class, parent of all masks More...
class  nomme
 the base class for all entry that have a name More...
class  not_mask
 negation of another mask More...
class  null_file
 the null_file class implements the /dev/null behavior More...
class  ou_mask
 makes the *OR* operator between two or more masks More...
class  path
 the class path is here to manipulate paths in the Unix notation: using'/' More...
class  prise
 the Unix socket inode class More...
class  regular_mask
 matches regular expressions (see "man 7 regex") More...
struct  request
class  same_path_mask
 matches if string is exactly the given mask (no wilde card expression) More...
class  sar
class  scrambler
 scrambler is a very weak encryption scheme More...
class  simple_mask
 matches as done on shell command lines (see "man 7 glob") More...
class  simple_path_mask
 string matches if it is subdir of mask or mask is a subdir of expression More...
class  slave_zapette
 this class answers to order given by a zapette object More...
struct  statistics
 structure returned by libdar call to give a summary of the operation done in term of file treated More...
class  storage
 arbitrary large storage structure More...
class  terminateur
 terminateur class indicates the location of the beginning of the catalogue More...
class  thread_cancellation
 class to be used as parent to provide checkpoints to inherited classes More...
class  trivial_sar
class  tronc
 make a segment of a generic_file appear like a real generic_file More...
class  tronconneuse
 this is a partial implementation of the generic_file interface to encrypt/decrypt data block by block. More...
class  tube
 the named pipe class More...
class  tuyau
 pipe implementation under the generic_file interface. More...
class  user_interaction
 This is a pure virtual class that is used by libdar when interaction with the user is required. More...
class  user_interaction_callback
 full implemented class for user_interaction based on callback functions. More...
class  wrapperlib
 this class encapsulates calls to libz or libbz2 More...
class  zapette
 zapette emulate a file that is remotely controlled by slave_zapette More...

Typedefs

typedef unsigned char chiffre
typedef char crc [CRC_SIZE]
typedef char dar_version [VERSION_SIZE]
typedef unsigned char int_tools_bitfield [8]
typedef char label [LABEL_SIZE]
typedef U_32 magic_number

Enumerations

enum  compression { none = 'n', zip = 'p', gzip = 'z', bzip2 = 'y' }
 the different compression algorithm available More...
enum  crypto_algo { crypto_none, crypto_scrambling, crypto_blowfish }
 the different cypher available for encryption (strong or weak) More...
enum  ea_domain { ea_domain_root, ea_domain_user }
enum  ea_mode { ea_insert, ea_del }
enum  elastic_direction { elastic_forward, elastic_backward }
enum  gf_mode { gf_read_only, gf_write_only, gf_read_write }
 generic_file openning modes More...
enum  saved_status { s_saved, s_fake, s_not_saved }
enum  wrapperlib_mode { zlib_mode, bzlib_mode }

Functions

static void attach_ea (const string &chemin, inode *ino, bool ea_root_mode, bool ea_user_mode)
compression char2compression (char a)
void clear (crc &value)
void close_archive_noexcept (archive *ptr, U_16 &exception, std::string &except_msg)
 this is wrapper around the archive destructor
bool compatible_signature (unsigned char a, unsigned char b)
char compression2char (compression c)
string compression2string (compression c)
void copy_crc (crc &dst, const crc &src)
archivecreate_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, bool pause, bool empty_dir, compression algo, U_I compression_level, const infinint &file_size, const infinint &first_file_size, bool root_ea, bool user_ea, 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, bool ignore_owner, const infinint &hourshift, bool empty, bool alter_atime, bool same_fs, statistics &ret, U_16 &exception, std::string &except_msg)
 this is a wrapper around the archive constructor known as the "create" constructor
void crypto_split_algo_pass (const std::string &all, crypto_algo &algo, std::string &pass)
void crypto_split_algo_pass (const string &all, crypto_algo &algo, string &pass)
static void deadson (S_I sig)
template<class T>
void decicoupe (storage *&decimales, T x)
static unsigned char digit_ctoh (chiffre c)
static chiffre digit_htoc (unsigned char c)
static void dummy_call (char *x)
void ea_filesystem_clear_ea (const std::string &name, ea_domain dom)
void ea_filesystem_clear_ea (const string &name, ea_domain dom)
bool ea_filesystem_is_present (const std::string &name, ea_domain dom)
bool ea_filesystem_is_present (const string &name, ea_domain dom)
void ea_filesystem_read_ea (const std::string &chemin, ea_attributs &val, bool root, bool user)
void ea_filesystem_read_ea (const string &name, ea_attributs &val, bool root, bool user)
bool ea_filesystem_write_ea (const std::string &chemin, const ea_attributs &val, bool root, bool user)
bool ea_filesystem_write_ea (const string &chemin, const ea_attributs &val, bool root, bool user)
void euclide (infinint a, const infinint &b, infinint &q, infinint &r)
template<class B>
void euclide (limitint< B > a, U_I b, limitint< B > &q, limitint< B > &r)
template<class T>
void euclide (T a, T b, T &q, T &r)
static bool extract_base_and_status (unsigned char signature, unsigned char &base, saved_status &saved)
void filtre_difference (user_interaction &dialog, const mask &filtre, const mask &subtree, catalogue &cat, const path &fs_racine, bool info_details, statistics &st, bool check_ea_root, bool check_ea_user, bool alter_atime, bool ignore_owner)
void filtre_isolate (user_interaction &dialog, catalogue &cat, catalogue &ref, bool info_details)
void filtre_restore (user_interaction &dialog, const mask &filtre, const mask &subtree, catalogue &cat, bool detruire, const path &fs_racine, bool fs_allow_overwrite, bool fs_warn_overwrite, bool info_details, statistics &st, bool only_if_more_recent, bool restore_ea_root, bool restore_ea_user, bool flat, bool ignore_owner, bool warn_remove_no_match, const infinint &hourshift, bool empty)
void filtre_sauvegarde (user_interaction &dialog, const mask &filtre, const mask &subtree, compressor *stockage, catalogue &cat, catalogue &ref, const path &fs_racine, bool info_details, statistics &st, bool make_empty_dir, bool save_ea_root, bool save_ea_user, const mask &compr_mask, const infinint &min_compr_size, bool nodump, const infinint &hourshift, bool alter_atime, bool same_fs, bool ignore_owner)
void filtre_test (user_interaction &dialog, const mask &filtre, const mask &subtree, catalogue &cat, bool info_details, statistics &st)
gf_mode generic_file_get_mode (S_I fd)
const char * generic_file_get_name (gf_mode mode)
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
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)
 return the options activated that have been activated at compilation time
static mode_t get_file_permission (const string &path)
static chiffre get_left (unsigned char a)
static chiffre get_right (unsigned char a)
static pathget_root_with_symlink (user_interaction &dialog, const path &root, bool info_details)
void get_version (U_I &major, U_I &medium, U_I &minor)
 return the libdar version, and make libdar initialization (may throw Exceptions)
void get_version (U_I &major, U_I &minor)
void get_version_noexcept (U_I &major, U_I &minor, U_16 &exception, std::string &except_msg)
void get_version_noexcept (U_I &major, U_I &medium, U_I &minor, U_16 &exception, std::string &except_msg)
 return the libdar version, and make libdar initialization (does not throw exceptions)
void get_version_noexcept (U_I &major, U_I &minor, U_16 &exception, string &except_msg)
void header_generate_internal_filename (label &ret)
bool header_label_is_equal (const label &a, const label &b)
static void inattendue ()
static void init ()
void int_tools_contract_byte (const int_tools_bitfield &b, unsigned char &a)
void int_tools_expand_byte (unsigned char a, int_tools_bitfield &bit)
template<class B>
static B int_tools_higher_power_of_2 (B val)
template<class T>
int_tools_maxof_agregate (T unused)
template<class T>
int_tools_rotate_right_one_bit (T v)
void int_tools_swap_bytes (unsigned char *a, U_I size)
void int_tools_swap_bytes (unsigned char &a, unsigned char &b)
static bool is_a_slice_available (const string &base, const string &extension)
bool is_equal_with_hourshift (const infinint &hourshift, const infinint &date1, const infinint &date2)
 test if two dates are equal taking care of a integer hour of difference
static bool is_nodump_flag_set (user_interaction &dialog, const path &chem, const string &filename)
archiveisolate_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, bool 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
void label_copy (label &left, const label &right)
static void libdar_init_thread_safe ()
char * libdar_str2charptr_noexcept (const std::string &x, U_16 &exception, std::string &except_msg)
 routine provided to convert std::string to char *
static string local_date (const inode &ref)
static string local_flag (const inode &ref)
static string local_gid (const inode &ref)
static string local_perm (const inode &ref)
static string local_size (const inode &ref)
static string local_uid (const inode &ref)
cataloguemacro_tools_get_catalogue_from (user_interaction &dialog, const std::string &basename, const std::string &extension, crypto_algo crypto, const std::string &pass, U_32 crypto_size)
cataloguemacro_tools_get_catalogue_from (user_interaction &dialog, const string &basename, const string &extension, crypto_algo crypto, const string &pass, U_32 crypto_size)
cataloguemacro_tools_get_catalogue_from (user_interaction &dialog, generic_file &f, const header_version &ver, compressor &zip, bool info_details, infinint &cat_size, generic_file *zip_base)
void macro_tools_open_archive (user_interaction &dialog, const path &sauv_path, const std::string &basename, const std::string &extension, S_I options, crypto_algo crypto, const std::string &pass, U_32 crypto_size, generic_file *&ret1, generic_file *&scram, compressor *&ret2, header_version &ver, const std::string &input_pipe, const std::string &output_pipe, const std::string &execute)
void macro_tools_open_archive (user_interaction &dialog, const path &sauv_path, const string &basename, const string &extension, S_I options, crypto_algo crypto, const string &pass, U_32 crypto_size, generic_file *&ret1, generic_file *&scram, compressor *&ret2, header_version &ver, const string &input_pipe, const string &output_pipe, const string &execute)
static void make_owner_perm (user_interaction &dialog, const inode &ref, const path &ou, bool dir_perm, bool ignore_ownership)
unsigned char mk_signature (unsigned char base, saved_status state)
static void notcatched ()
statistics op_diff_noexcept (user_interaction &dialog, archive *ptr, const path &fs_root, const mask &selection, const mask &subtree, bool info_details, bool check_ea_root, bool check_ea_user, bool ignore_owner, bool alter_atime, U_16 &exception, std::string &except_msg)
 this is wrapper around the op_diff method
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, bool restore_ea_root, bool restore_ea_user, bool flat, bool ignore_owner, bool warn_remove_no_match, const infinint &hourshift, bool empty, 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, bool tar_format, const mask &selection, bool filter_unsaved, U_16 &exception, std::string &except_msg)
 this is wrapper around the op_listing method
statistics op_test_noexcept (user_interaction &dialog, archive *ptr, const mask &selection, const mask &subtree, bool info_details, U_16 &exception, std::string &except_msg)
 this is wrapper around the op_test method
archiveopen_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
infinint operator% (const infinint &a, const infinint &b)
template<class B>
limitint< B > operator% (const limitint< B > &, const limitint< B > &)
infinint operator* (const unsigned char a, const infinint &b)
infinint operator* (const infinint &a, const unsigned char b)
infinint operator* (const infinint &a, const infinint &b)
template<class B>
limitint< B > operator* (const limitint< B > &a, U_I b)
template<class B>
limitint< B > operator* (const limitint< B > &, const limitint< B > &)
std::vector< std::string > operator+ (std::vector< std::string > a, std::vector< std::string > b)
 concatenate two vectors
vector< string > operator+ (vector< string > a, vector< string > b)
infinint operator+ (const infinint &a, const infinint &b)
template<class B>
limitint< B > operator+ (const limitint< B > &a, U_I b)
template<class B>
limitint< B > operator+ (const limitint< B > &, const limitint< B > &)
template<class T>
std::vector< T > operator+= (std::vector< T > &a, const std::vector< T > &b)
 template function to add two vectors
infinint operator- (const infinint &a, const infinint &b)
template<class B>
limitint< B > operator- (const limitint< B > &a, U_I b)
template<class B>
limitint< B > operator- (const limitint< B > &, const limitint< B > &)
infinint operator/ (const infinint &a, const infinint &b)
template<class B>
limitint< B > operator/ (const limitint< B > &a, U_I b)
template<class B>
limitint< B > operator/ (const limitint< B > &, const limitint< B > &)
infinint operator<< (const infinint &a, const infinint &bit)
infinint operator<< (const infinint &a, U_32 bit)
template<class B>
limitint< B > operator<< (const limitint< B > &a, const limitint< B > &bit)
template<class B>
limitint< B > operator<< (const limitint< B > &a, U_32 bit)
std::ostream & operator<< (std::ostream &ref, const infinint &arg)
 specific << operator to use infinint in std::ostream
ostream & operator<< (ostream &ref, const infinint &arg)
infinint operator>> (const infinint &a, const infinint &bit)
infinint operator>> (const infinint &a, U_32 bit)
template<class B>
limitint< B > operator>> (const limitint< B > &a, const limitint< B > &bit)
template<class B>
limitint< B > operator>> (const limitint< B > &a, U_32 bit)
static bool path_get_root (string &p, string &root)
static void restore_atime (const string &chemin, const inode *&ptr)
static string retreive_basename (const string &base, const string &extension)
static void runson (user_interaction &dialog, char *argv[])
bool same_crc (const crc &a, const crc &b)
static bool sar_extract_num (string filename, string base_name, string ext, infinint &ret)
static bool sar_get_higher_number_in_dir (path dir, string base_name, string ext, infinint &ret)
std::string sar_make_filename (std::string base_name, infinint num, std::string ext)
string sar_make_filename (string base_name, infinint num, string ext)
generic_filesar_tools_open_archive_fichier (user_interaction &dialog, const std::string &filename, bool allow_over, bool warn_over)
 create a container for a single sliced archive
generic_filesar_tools_open_archive_fichier (user_interaction &dialog, const string &filename, bool allow_over, bool warn_over)
generic_filesar_tools_open_archive_tuyau (user_interaction &dialog, S_I fd, gf_mode mode)
 create an container to write a archive to a pipe
static bool save_ea (user_interaction &dialog, const string &info_quoi, inode *&ino, compressor *stock, const inode *ref, bool info_details, compression compr_used)
static void save_inode (user_interaction &dialog, const string &info_quoi, inode *&ino, compressor *stock, bool info_details, const mask &compr_mask, compression compr_used, const infinint &min_size_compression, bool alter_atime)
static void set_left (unsigned char &a, chiffre val)
static void set_right (unsigned char &a, chiffre val)
static void supprime (const path &ref)
void tools_add_elastic_buffer (generic_file &f, U_32 max_size)
 append an elastic buffer of given size to the file
std::string tools_addspacebefore (std::string s, unsigned int expected_size)
 prepend spaces before the given string
string tools_addspacebefore (string s, U_I expected_size)
bool tools_are_on_same_filesystem (const std::string &file1, const std::string &file2)
 tells whether two files are on the same mounted filesystem
bool tools_are_on_same_filesystem (const string &file1, const string &file2)
void tools_avoid_slice_overwriting (user_interaction &dialog, const std::string &chemin, const std::string &x_file_mask, bool info_details, bool allow_overwriting, bool warn_overwriting)
 prevents slice overwriting: check the presence of slice and if necessary ask the user if they can be removed
void tools_avoid_slice_overwriting (user_interaction &dialog, const string &chemin, const string &x_file_mask, bool info_details, bool allow_overwriting, bool warn_overwriting)
void tools_blocking_read (int fd, bool mode)
 set blocking/not blocking mode for reading on a file descriptor
void tools_blocking_read (S_I fd, bool mode)
void tools_check_basename (user_interaction &dialog, const path &loc, std::string &base, const std::string &extension)
 does sanity checks on a slice name, check presence and detect whether the given basename is not rather a filename
void tools_check_basename (user_interaction &dialog, const path &loc, string &base, const string &extension)
std::string tools_concat_vector (const std::string &separator, const std::vector< std::string > &x)
 concatenate a vectors of strings in a single string
string tools_concat_vector (const string &separator, const vector< string > &x)
string tools_display_date (infinint date)
 convert a date in second to its human readable representation
void tools_display_features (user_interaction &dialog, bool ea, bool largefile, bool nodump, bool special_alloc, U_I bits, bool thread_safe, bool libz, bool libbz2, bool libcrypto)
 display the compilation time features of libdar
bool tools_do_some_files_match_mask (const char *c_chemin, const char *file_mask)
 test the presence of files corresponding to a given mask in a directory
char * tools_extract_basename (const char *command_name)
 extracts the basename of a file (removing path part)
infinint tools_get_extended_size (std::string s, U_I base)
 convert the given string to infinint taking care of multiplication suffixes like k, M, T, etc.
infinint tools_get_extended_size (string s, U_I base)
infinint tools_get_filesize (const path &p)
 retrieve the size in byte of a file
const char * tools_get_from_env (const char **env, char *clef)
 isolate the value of a given variable from the environment vector
string tools_getcwd ()
 get current working directory
string tools_int2str (S_I x)
 convert integer to string
bool tools_is_case_insensitive_equal (const std::string &a, const std::string &b)
 compare two string in case insensitive manner
bool tools_is_case_insensitive_equal (const string &a, const string &b)
bool tools_is_member (const std::string &val, const std::vector< std::string > &liste)
 test the presence of a value in a list
bool tools_is_member (const string &val, const vector< string > &liste)
bool tools_look_for (const char *argument, S_I argc, char *argv[])
 test the presence of an argument
void tools_make_date (const std::string &chemin, infinint access, infinint modif)
 set dates of a given file, may throw exception
void tools_make_date (const string &chemin, infinint access, infinint modif)
bool tools_my_atoi (char *a, U_I &val)
 ascii to integer conversion
string tools_name_of_gid (U_16 gid)
 convert fid to name in regards to the current system's configuration
string tools_name_of_uid (U_16 uid)
 convert uid to name in regards to the current system's configuration
void tools_noexcept_make_date (const std::string &chem, const infinint &last_acc, const infinint &last_mod)
 set dates of a given file, no exception thrown
void tools_noexcept_make_date (const string &chem, const infinint &last_acc, const infinint &last_mod)
void tools_open_pipes (user_interaction &dialog, const std::string &input, const std::string &output, tuyau *&in, tuyau *&out)
 open a pair of tuyau objects encapsulating two named pipes.
void tools_open_pipes (user_interaction &dialog, const string &input, const string &output, tuyau *&in, tuyau *&out)
string tools_printf (char *format,...)
 make printf-like formating to a std::string
void tools_read_range (const std::string &s, U_I &min, U_I &max)
 from a string with a range notation (min-max) extract the range values
void tools_read_range (const string &s, U_I &min, U_I &max)
void tools_read_string (generic_file &f, std::string &s)
 read a string from a file expecting it to terminate by '\0'
void tools_read_string (generic_file &f, string &s)
void tools_read_string_size (generic_file &f, std::string &s, infinint taille)
 read a string if given size from a file '\0' has no special meaning
void tools_read_string_size (generic_file &f, string &s, infinint taille)
void tools_read_vector (generic_file &f, std::vector< std::string > &x)
 read a list of string from a file
void tools_read_vector (generic_file &f, vector< string > &x)
string tools_readlink (const char *root)
 returns the file pointed to by a symbolic link (or transparent if the file is not a symlink).
void tools_remove_last_char_if_equal_to (char c, std::string &s)
 remove last character of a string is it equal to a given value
void tools_remove_last_char_if_equal_to (char c, string &s)
void tools_split_path_basename (const std::string &all, std::string &chemin, std::string &base)
 split a given full path in path part and basename part
void tools_split_path_basename (const char *all, path *&chemin, std::string &base)
 split a given full path in path part and basename part
void tools_split_path_basename (const string &all, string &chemin, string &base)
void tools_split_path_basename (const char *all, path *&chemin, string &base)
char * tools_str2charptr (std::string x)
 convert a string to a char *
char * tools_str2charptr (string x)
U_32 tools_str2int (const std::string &x)
 convert an integer written in decimal notation to the corresponding value
U_32 tools_str2int (const string &x)
void tools_system (user_interaction &dialog, const std::vector< std::string > &argvector)
 wrapper to the "system" system call.
void tools_system (user_interaction &dialog, const vector< string > &argvector)
void tools_to_upper (char *nts)
 convert a string to upper case
void tools_unlink_file_mask (user_interaction &dialog, const char *c_chemin, const char *file_mask, bool info_details)
 remove files from a given directory
string tools_vprintf (char *format, va_list ap)
 make printf-like formating to a std::string
void tools_write_string (generic_file &f, const std::string &s)
 write a string to a file with a '\0' at then end
void tools_write_string (generic_file &f, const string &s)
void tools_write_string_all (generic_file &f, const std::string &s)
 write a string to a file, '\0' has no special meaning nor is added at the end
void tools_write_string_all (generic_file &f, const string &s)
void tools_write_vector (generic_file &f, const std::vector< std::string > &x)
 write a list of string to file
void tools_write_vector (generic_file &f, const vector< string > &x)
static void version_check (user_interaction &dialog, const header_version &ver)
void version_copy (dar_version &left, const dar_version &right)
bool version_greater (const dar_version &left, const dar_version &right)

Variables

const int CRC_SIZE = 2
const char EXTENSION_NO = 'N'
const char EXTENSION_SIZE = 'S'
const char FLAG_NON_TERMINAL = 'N'
const char FLAG_TERMINAL = 'T'
static bool initialized = false
const unsigned int LABEL_SIZE = 10
const U_I LIBDAR_COMPILE_TIME_MAJOR = 3
 libdar Major version defined at compilation time
const U_I LIBDAR_COMPILE_TIME_MEDIUM = 0
 libdar Medium version defined at compilation time
const U_I LIBDAR_COMPILE_TIME_MINOR = 1
 libdar Minor version defined at compilation time
const dar_version macro_tools_supported_version = "04"
static const U_I PAS = 5
const int SAR_OPT_DEFAULT = SAR_OPT_WARN_OVERWRITE
const int SAR_OPT_DONT_ERASE = 0x02
const int SAR_OPT_PAUSE = 0x04
const int SAR_OPT_WARN_OVERWRITE = 0x01
const U_32 SAUV_MAGIC_NUMBER = 123
const int VERSION_FLAG_SAVED_EA_ROOT = 0x80
const int VERSION_FLAG_SAVED_EA_USER = 0x40
const int VERSION_FLAG_SCRAMBLED = 0x20
const int VERSION_SIZE = 3
const int WR_BUF_ERROR = 6
const int WR_DATA_ERROR = 4
const int WR_FINISH = 8
const int WR_MEM_ERROR = 1
const int WR_NO_FLUSH = 5
const int WR_OK = 0
const int WR_STREAM_END = 7
const int WR_STREAM_ERROR = 3
const int WR_VERSION_ERROR = 2


Generated by  Doxygen 1.6.0   Back to index