26 #ifndef DATABASE_OPTIONS_HPP
27 #define DATABASE_OPTIONS_HPP
29 #include "../my_config.h"
48 void clear() { x_partial =
false; x_partial_read_only =
false; x_warn_order =
true; };
74 bool get_partial()
const {
return x_partial; };
75 bool get_partial_read_only()
const {
return x_partial_read_only; };
76 bool get_warn_order()
const {
return x_warn_order; };
80 bool x_partial_read_only;
91 void clear() { x_overwrite =
false; };
102 bool get_overwrite()
const {
return x_overwrite; };
125 void clear() { x_revert_archive_numbering =
false; };
130 bool get_revert_archive_numbering()
const {
return x_revert_archive_numbering; };
133 bool x_revert_archive_numbering;
144 void clear() { x_revert_archive_numbering =
false; };
149 bool get_revert_archive_numbering()
const {
return x_revert_archive_numbering; };
152 bool x_revert_archive_numbering;
164 void clear() { x_revert_archive_numbering =
false; };
169 bool get_revert_archive_numbering()
const {
return x_revert_archive_numbering; };
172 bool x_revert_archive_numbering;
183 void clear() { x_early_release = x_info_details = x_ignore_dar_options_in_database = x_even_when_removed =
false; x_date = 0; x_extra_options_for_dar.clear(); };
224 bool get_early_release()
const {
return x_early_release; };
225 bool get_info_details()
const {
return x_info_details; };
226 const std::vector<std::string> & get_extra_options_for_dar()
const {
return x_extra_options_for_dar; };
227 const infinint & get_date()
const {
return x_date; };
228 bool get_ignore_dar_options_in_database()
const {
return x_ignore_dar_options_in_database; };
229 bool get_even_when_removed()
const {
return x_even_when_removed; };
232 bool x_early_release;
234 std::vector<std::string> x_extra_options_for_dar;
236 bool x_ignore_dar_options_in_database;
237 bool x_even_when_removed;
248 void clear() { x_revert_archive_numbering =
false; };
253 bool get_revert_archive_numbering()
const {
return x_revert_archive_numbering; };
256 bool x_revert_archive_numbering;
options for file "used" in archive
options for changing a given archive's path
options to add an archive to base
void set_partial_read_only(bool value)
partial and read only option
void set_early_release(bool value)
early_release option
void set_even_when_removed(bool value)
find data or EA if they have been removed at the requested data
void set_partial(bool value)
partial option
options for changing a given archive's basename
options to remove an archive from the base
options to open a database
options to write a database to file
void set_revert_archive_numbering(bool revert)
defines whether the archive number is counted from the beginning or from the end of the database ...
void set_date(const infinint &value)
date option
void set_overwrite(bool value)
overwrite option
options for restoration from database
void set_ignore_dar_options_in_database(bool mode)
ignore options to dar embedded in the database
void set_info_details(bool value)
info_details option
the arbitrary large positive integer class
void set_revert_archive_numbering(bool revert)
defines whether the archive number is counted from the beginning or from the end of the database ...
void set_extra_options_for_dar(const std::vector< std::string > &value)
extra options to dar
void set_revert_archive_numbering(bool revert)
defines whether the archive number is counted from the beginning or from the end of the database ...
void set_revert_archive_numbering(bool revert)
defines whether the archive number is counted from the beginning or from the end of the database ...
libdar namespace encapsulate all libdar symbols
void set_warn_order(bool value)
warning about file ordering in database