36#ifndef DATABASE_OPTIONS_HPP
37#define DATABASE_OPTIONS_HPP
39#include "../my_config.h"
64 void clear() { x_partial =
false; x_partial_read_only =
false; x_warn_order =
true; };
90 bool get_partial()
const {
return x_partial; };
91 bool get_partial_read_only()
const {
return x_partial_read_only; };
92 bool get_warn_order()
const {
return x_warn_order; };
96 bool x_partial_read_only;
112 void clear() { x_overwrite =
false; };
123 bool get_overwrite()
const {
return x_overwrite; };
157 void clear() { x_revert_archive_numbering =
false; };
162 bool get_revert_archive_numbering()
const {
return x_revert_archive_numbering; };
165 bool x_revert_archive_numbering;
181 void clear() { x_revert_archive_numbering =
false; };
186 bool get_revert_archive_numbering()
const {
return x_revert_archive_numbering; };
189 bool x_revert_archive_numbering;
206 void clear() { x_revert_archive_numbering =
false; };
211 bool get_revert_archive_numbering()
const {
return x_revert_archive_numbering; };
214 bool x_revert_archive_numbering;
230 void clear() { x_early_release = x_info_details = x_ignore_dar_options_in_database = x_even_when_removed =
false; x_date =
datetime(0); x_extra_options_for_dar.clear(); };
274 bool get_early_release()
const {
return x_early_release; };
275 bool get_info_details()
const {
return x_info_details; };
276 const std::vector<std::string> & get_extra_options_for_dar()
const {
return x_extra_options_for_dar; };
277 const datetime & get_date()
const {
return x_date; };
278 bool get_ignore_dar_options_in_database()
const {
return x_ignore_dar_options_in_database; };
279 bool get_even_when_removed()
const {
return x_even_when_removed; };
282 bool x_early_release;
284 std::vector<std::string> x_extra_options_for_dar;
286 bool x_ignore_dar_options_in_database;
287 bool x_even_when_removed;
303 void clear() { x_revert_archive_numbering =
false; };
308 bool get_revert_archive_numbering()
const {
return x_revert_archive_numbering; };
311 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 date
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
void set_date(const datetime &value)
date option in the new form of a datetime (eventually providing sub second precision)
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