48#ifndef GUM_LEARNING_IDB_INITILIALIZER_H
49#define GUM_LEARNING_IDB_INITILIALIZER_H
177 template <
class DATABASE >
178 void fillDatabase(DATABASE& database,
const bool retry_insertion =
false);
209#ifndef DOXYGEN_SHOULD_SKIP_THIS
213 std::vector< std::string > _var_names_;
221 bool _last_insertion_failed_{
false};
225 template <
class DATABASE >
226 void _fillDatabaseFromStrings_(DATABASE& database,
const bool retry_insertion);
229 template <
class DATABASE >
230 void _fillDatabaseFromDBCells_(DATABASE& database,
const bool retry_insertion);
The class representing the original values of the cells of databases.
The class representing a record stored in a tabular database.
Inlined implementation for initializing DatabaseTables and RawDatabaseTables from files or sql databa...
The base class for initializing DatabaseTables and RawDatabaseTables from files or sql databases.
The class for storing a record in a database.
virtual ~IDBInitializer()
destructor
IDBInitializer & operator=(const IDBInitializer &from)
copy operator
virtual const DBRow< DBCell > & currentDBCellRow_()
asks the child class for the content of the current row using dbcells
virtual IDBInitializer * clone() const =0
virtual copy constructor
IDBInitializer & operator=(IDBInitializer &&from)
move operator
IDBInitializer(IDBInitializer &&from)
move constructor
IDBInitializer(const InputType type)
default constructor
void fillDatabase(DATABASE &database, const bool retry_insertion=false)
fills the rows of the database table
InputType
the enumeration indicating the type of the data the IDBInitializer expects as input data
virtual std::vector< std::string > variableNames_()=0
ask the child class for the names of the variables
virtual bool nextRow_()=0
indicates whether there is a next row to read (and point on it)
const std::vector< std::string > & variableNames()
returns the names of the variables in the input dataset
std::size_t throwingColumn() const
This method indicates which column filling raised an exception, if any, during the execution of fillD...
IDBInitializer(const IDBInitializer &from)
copy constructor
virtual const std::vector< std::string > & currentStringRow_()
asks the child class for the content of the current row using strings
include the inlined functions if necessary
gum is the global namespace for all aGrUM entities