30#include "../my_config.h"
68 const data_tree *read_child(
const std::string & name)
const;
69 void read_all_children(std::vector<std::string> & fils)
const;
72 const archive_num & ignore_archives_greater_or_equal);
83 std::string marge =
"")
const;
87 std::deque<infinint> &
ea,
88 std::deque<infinint> & total_data,
89 std::deque<infinint> & total_ea,
90 const datetime & ingore_older_than_that)
const override;
93 std::deque<infinint> &
ea,
94 std::deque<infinint> & total_data,
95 std::deque<infinint> & total_ea,
96 const datetime & ignore_older_than_that)
const override;
98 virtual char obj_signature()
const override {
return signature(); };
99 static char signature() {
return 'd'; };
101 virtual bool fix_corruption()
override;
125 void remove_child(
const std::string & name);
used to record information in a catalogue about a deleted file (differential backup context)
class used to organize objects in tree in catalogue as like directories in a filesystem
base object for all inode types, managed EA and FSA, dates, permissions, ownership,...
class archive_num stores the position of an archive inside a dar_manager database
the archive class realizes the most general operations on archives
the cat_directory inode class
the root class for all cat_inode
the data_dir class inherits from data_tree and holds the directory tree's parent relationship
void data_tree_update_with(const cat_directory *dir, archive_num archive)
add a directory to the dat_dir
virtual void compute_restoration_needed_archives(std::deque< infinint > &data, std::deque< infinint > &ea, std::deque< infinint > &total_data, std::deque< infinint > &total_ea, const datetime &ignore_older_than_that) const override
provide a summary of the archives that will be required to restore the data in the latest state
virtual bool check_order(user_interaction &dialog, const path ¤t_path, bool &initial_warn) const override
check date order between archives withing the database ; throw Erange if problem found with date orde...
virtual void compute_most_recent_stats(std::deque< infinint > &data, std::deque< infinint > &ea, std::deque< infinint > &total_data, std::deque< infinint > &total_ea, const datetime &ingore_older_than_that) const override
provide a summary of the latest version of file and ea per archive number of the database
virtual void skip_out(archive_num num) override
decrement archive numbers above num
std::deque< data_tree * > rejetons
subdir and subfiles of the current dir
virtual bool remove_all_from(const archive_num &archive_to_remove, const archive_num &last_archive) override
return true if the corresponding file is no more located in any archive (thus, the object is no more ...
virtual void dump(generic_file &f) const override
write signature followed by data constructor will read
virtual void finalize(const archive_num &archive, const datetime &deleted_date, const archive_num &ignore_archives_greater_or_equal) override
add deleted entry if no object of the current archive exist and the entry of the previous archive is ...
void add_child(data_tree *fils)
"this" is now responsible of "fils" disalocation
static data_tree * read_next_in_list_from_file(generic_file &f, unsigned char db_version)
read signature and depening on it run data_tree or data_dir constructor
data_dir(generic_file &f, unsigned char db_version)
does not read signature
bool data_tree_find(path chemin, const data_tree *&ptr) const
lookup routine to find a pointer to the dat_tree object corresponding to the given path
static data_dir * data_tree_read(generic_file &f, unsigned char db_version)
read a signature and then run the data_dir constructor but aborts if not a data_dir
void show(database_listing_show_files_callback callback, void *tag, archive_num num, std::string marge="") const
list the most recent files owned by that archive (or by any archive if num == 0)
the data_tree class stores presence of a given file in a set of archives
this is the interface class from which all other data transfer classes inherit
the class path is here to manipulate paths in the Unix notation: using'/'
This is a pure virtual class that is used by libdar when interaction with the user is required.
base classes used to store entree information in dar_manager databases
class generic_file is defined here as well as class fichier
void(*)(void *context, const std::string &filename, bool available_data, bool available_ea) database_listing_show_files_callback
called by the database::get_files() routine
switch module to limitint (32 ou 64 bits integers) or infinint
bool ea() noexcept
returns whether EA support has been activated at compilation time
libdar namespace encapsulate all libdar symbols
here is the definition of the path class
defines the interaction interface between libdar and users.