49#ifndef DOXYGEN_SHOULD_SKIP_THIS
56 template <
class DATABASE >
58 switch (_input_type_) {
59 case InputType::STRING : _fillDatabaseFromStrings_(database, retry_insertion);
return;
61 case InputType::DBCELL : _fillDatabaseFromDBCells_(database, retry_insertion);
return;
65 "fillDatabase has not been implemented yet for this "
66 "type of IDBInitializerInputType");
70 template <
class DATABASE >
71 void IDBInitializer::_fillDatabaseFromStrings_(DATABASE& database,
const bool retry_insertion) {
73 if (retry_insertion && _last_insertion_failed_) {
75 _last_insertion_failed_ =
false;
84 _last_insertion_failed_ =
true;
91 template <
class DATABASE >
92 void IDBInitializer::_fillDatabaseFromDBCells_(DATABASE& database,
const bool retry_insertion) {
94 if (retry_insertion && _last_insertion_failed_) {
96 _last_insertion_failed_ =
false;
105 _last_insertion_failed_ =
true;
virtual const DBRow< DBCell > & currentDBCellRow_()
asks the child class for the content of the current row using dbcells
void fillDatabase(DATABASE &database, const bool retry_insertion=false)
fills the rows of the database table
virtual bool nextRow_()=0
indicates whether there is a next row to read (and point on it)
virtual const std::vector< std::string > & currentStringRow_()
asks the child class for the content of the current row using strings
#define GUM_ERROR(type, msg)
include the inlined functions if necessary
gum is the global namespace for all aGrUM entities