aGrUM  0.20.3
a C++ library for (probabilistic) graphical models
CSVParser.h File Reference

Class for fast parsing of CSV file (never more than one line in application memory) More...

#include <istream>
#include <string>
#include <vector>
#include <agrum/agrum.h>
#include <agrum/tools/database/CSVParser_tpl.h>
+ Include dependency graph for CSVParser.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  gum::learning::CSVParser< ALLOC >
 Class for fast parsing of CSV file (never more than one line in application memory) More...
 

Namespaces

 gum
 Copyright (c) 2005-2021 by Pierre-Henri WUILLEMIN() & Christophe GONZALES() info_at_agrum_dot_org.
 
 gum::learning
 

Detailed Description

Class for fast parsing of CSV file (never more than one line in application memory)

Typical use :

// open the CSV file
std::string filename="foo.csv"
std::ifstream in(filename.c_str());
// read each line in the CSV file
while (csvp.next()) {
csvp.current ();
}
in.close();
Author
Pierre-Henri WUILLEMIN() & Christophe GONZALES()

Definition in file CSVParser.h.