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; };
73 bool get_partial()
const {
return x_partial; };
74 bool get_partial_read_only()
const {
return x_partial_read_only; };
75 bool get_warn_order()
const {
return x_warn_order; };
79 bool x_partial_read_only;
90 void clear() { x_overwrite =
false; };
101 bool get_overwrite()
const {
return x_overwrite; };
124 void clear() { x_revert_archive_numbering =
false; };
129 bool get_revert_archive_numbering()
const {
return x_revert_archive_numbering; };
132 bool x_revert_archive_numbering;
143 void clear() { x_revert_archive_numbering =
false; };
148 bool get_revert_archive_numbering()
const {
return x_revert_archive_numbering; };
151 bool x_revert_archive_numbering;
163 void clear() { x_revert_archive_numbering =
false; };
168 bool get_revert_archive_numbering()
const {
return x_revert_archive_numbering; };
171 bool x_revert_archive_numbering;
182 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(); };
223 bool get_early_release()
const {
return x_early_release; };
224 bool get_info_details()
const {
return x_info_details; };
225 const std::vector<std::string> & get_extra_options_for_dar()
const {
return x_extra_options_for_dar; };
226 const infinint & get_date()
const {
return x_date; };
227 bool get_ignore_dar_options_in_database()
const {
return x_ignore_dar_options_in_database; };
228 bool get_even_when_removed()
const {
return x_even_when_removed; };
231 bool x_early_release;
233 std::vector<std::string> x_extra_options_for_dar;
235 bool x_ignore_dar_options_in_database;
236 bool x_even_when_removed;
247 void clear() { x_revert_archive_numbering =
false; };
252 bool get_revert_archive_numbering()
const {
return x_revert_archive_numbering; };
255 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 ...
void set_warn_order(bool value)
warning about file ordering in database