29 #ifndef GUM_LEARNING_DB_INITILIALIZER_FROM_CSV_H 30 #define GUM_LEARNING_DB_INITILIALIZER_FROM_CSV_H 131 template <
template <
typename >
class ALLOC = std::allocator >
154 bool fileContainsNames =
true,
155 const std::string delimiter =
",",
156 const char commentmarker =
'#',
157 const char quoteMarker =
'"',
214 virtual std::vector< std::string, ALLOC< std::string > >
218 virtual const
std::vector<
std::
string, ALLOC<
std::
string > >&
225 #ifndef DOXYGEN_SHOULD_SKIP_THIS 229 std::string __filename;
232 std::string __delimiter;
235 char __comment_marker;
241 bool __first_row_has_names;
244 std::ifstream __input_stream;
250 std::vector< std::string, ALLOC< std::string > > __var_names;
virtual std::vector< std::string, ALLOC< std::string > > _variableNames() final
returns the names of the variables
virtual ~DBInitializerFromCSV()
destructor
DBInitializerFromCSV(const std::string filename, bool fileContainsNames=true, const std::string delimiter=",", const char commentmarker='#', const char quoteMarker='"', const allocator_type& alloc = allocator_type())
default constructor
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Class for fast parsing of CSV file (never more than one line in application memory) ...
DBInitializerFromCSV< ALLOC > & operator=(const DBInitializerFromCSV< ALLOC > &from)
copy operator
virtual DBInitializerFromCSV< ALLOC > * clone() const
virtual copy constructor
virtual bool _nextRow() final
indicates whether there is a next row to read (and point on it)
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.
virtual const std::vector< std::string, ALLOC< std::string > > & _currentStringRow() final
returns the content of the current row using strings
The class for initializing DatabaseTable and RawDatabaseTable instances from CSV files.
ALLOC< std::string > allocator_type
type for the allocators passed in arguments of methods
The base class for initializing DatabaseTable and RawDatabaseTable instances from CSV files or SQL da...
Class for fast parsing of CSV file (never more than one line in application memory) ...