29 #ifndef GUM_LEARNING_IDB_INITILIALIZER_H 30 #define GUM_LEARNING_IDB_INITILIALIZER_H 116 template <
template <
typename >
class ALLOC >
169 const std::vector< std::string, ALLOC< std::string > >&
variableNames();
174 template <
template <
template <
typename >
class >
class DATABASE >
176 const bool retry_insertion =
false);
196 virtual std::vector< std::string, ALLOC< std::string > >
201 virtual const std::vector< std::string, ALLOC< std::string > >&
212 #ifndef DOXYGEN_SHOULD_SKIP_THIS 216 std::vector< std::string, ALLOC< std::string > > __var_names;
224 bool __last_insertion_failed{
false};
228 template <
template <
template <
typename >
class >
class DATABASE >
229 void __fillDatabaseFromStrings(DATABASE< ALLOC >& database,
230 const bool retry_insertion);
233 template <
template <
template <
typename >
class >
class DATABASE >
234 void __fillDatabaseFromDBCells(DATABASE< ALLOC >& database,
235 const bool retry_insertion);
const std::vector< std::string, ALLOC< std::string > > & variableNames()
returns the names of the variables in the input dataset
virtual std::vector< std::string, ALLOC< std::string > > _variableNames()=0
ask the child class for the names of the variables
virtual const DBRow< DBCell, ALLOC > & _currentDBCellRow()
asks the child class for the content of the current row using dbcells
allocator_type getAllocator() const
returns the allocator used
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
IDBInitializer< ALLOC > & operator=(const IDBInitializer< ALLOC > &from)
copy operator
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
void fillDatabase(DATABASE< ALLOC > &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 bool _nextRow()=0
indicates whether there is a next row to read (and point on it)
The class for storing a record in a database.
ALLOC< std::string > allocator_type
type for the allocators passed in arguments of methods
virtual const std::vector< std::string, ALLOC< std::string > > & _currentStringRow()
asks the child class for the content of the current row using strings
IDBInitializer(const InputType type, const allocator_type &alloc)
default constructor
std::size_t throwingColumn() const
This method indicates which column filling raised an exception, if any, during the execution of fillD...
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
virtual ~IDBInitializer()
destructor
The base class for initializing DatabaseTable and RawDatabaseTable instances from CSV files or SQL da...
virtual IDBInitializer< ALLOC > * clone() const =0
virtual copy constructor