26 #ifndef DATABASE_OPTIONS_HPP
27 #define DATABASE_OPTIONS_HPP
29 #include "../my_config.h"
54 void clear() { x_partial =
false; x_partial_read_only =
false; x_warn_order =
true; };
80 bool get_partial()
const {
return x_partial; };
81 bool get_partial_read_only()
const {
return x_partial_read_only; };
82 bool get_warn_order()
const {
return x_warn_order; };
86 bool x_partial_read_only;
102 void clear() { x_overwrite =
false; };
113 bool get_overwrite()
const {
return x_overwrite; };
147 void clear() { x_revert_archive_numbering =
false; };
152 bool get_revert_archive_numbering()
const {
return x_revert_archive_numbering; };
155 bool x_revert_archive_numbering;
171 void clear() { x_revert_archive_numbering =
false; };
176 bool get_revert_archive_numbering()
const {
return x_revert_archive_numbering; };
179 bool x_revert_archive_numbering;
196 void clear() { x_revert_archive_numbering =
false; };
201 bool get_revert_archive_numbering()
const {
return x_revert_archive_numbering; };
204 bool x_revert_archive_numbering;
220 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(); };
261 bool get_early_release()
const {
return x_early_release; };
262 bool get_info_details()
const {
return x_info_details; };
263 const std::vector<std::string> & get_extra_options_for_dar()
const {
return x_extra_options_for_dar; };
264 const infinint & get_date()
const {
return x_date; };
265 bool get_ignore_dar_options_in_database()
const {
return x_ignore_dar_options_in_database; };
266 bool get_even_when_removed()
const {
return x_even_when_removed; };
269 bool x_early_release;
271 std::vector<std::string> x_extra_options_for_dar;
273 bool x_ignore_dar_options_in_database;
274 bool x_even_when_removed;
290 void clear() { x_revert_archive_numbering =
false; };
295 bool get_revert_archive_numbering()
const {
return x_revert_archive_numbering; };
298 bool x_revert_archive_numbering;
options to add an archive to base
options for changing a given archive's basename
void set_revert_archive_numbering(bool revert)
defines whether the archive number is counted from the beginning or from the end of the database
options for changing a given archive's path
void set_revert_archive_numbering(bool revert)
defines whether the archive number is counted from the beginning or from the end of the database
options to write a database to file
void set_overwrite(bool value)
overwrite option
options to open a database
void set_partial_read_only(bool value)
partial and read only option
void set_partial(bool value)
partial option
void set_warn_order(bool value)
warning about file ordering in database
options to remove an archive from the base
void set_revert_archive_numbering(bool revert)
defines whether the archive number is counted from the beginning or from the end of the database
options for restoration from database
void set_even_when_removed(bool value)
find data or EA if they have been removed at the requested data
void set_info_details(bool value)
info_details option
void set_extra_options_for_dar(const std::vector< std::string > &value)
extra options to dar
void set_ignore_dar_options_in_database(bool mode)
ignore options to dar embedded in the database
void set_early_release(bool value)
early_release option
void set_date(const infinint &value)
date option
options for file "used" in archive
void set_revert_archive_numbering(bool revert)
defines whether the archive number is counted from the beginning or from the end of the database
the arbitrary large positive integer class
libdar namespace encapsulate all libdar symbols