aGrUM 2.3.2
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/base/database/CSVParser_inl.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
 Class for fast parsing of CSV file (never more than one line in application memory). More...

Namespaces

namespace  gum
 gum is the global namespace for all aGrUM entities
namespace  gum::learning
 include the inlined functions if necessary

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();
Class for fast parsing of CSV file (never more than one line in application memory).
Definition CSVParser.h:77
Author
Pierre-Henri WUILLEMIN(_at_LIP6) & Christophe GONZALES(_at_AMU)

Definition in file CSVParser.h.