MatchLib
All Classes Namespaces Files Functions Modules Pages
Public Member Functions | List of all members
CSVFileReader Class Reference

A helper class to read CSV files. More...

#include <CSVFileReader.h>

Public Member Functions

 CSVFileReader (std::string filename, std::string sep=",")
 
std::vector< std::vector< std::string > > readCSV ()
 

Detailed Description

A helper class to read CSV files.

The constructor takes two arguments: a string containing the filename, and an optional string containing the delimiting character (default is ',').

Definition at line 37 of file CSVFileReader.h.

Constructor & Destructor Documentation

◆ CSVFileReader()

CSVFileReader::CSVFileReader ( std::string  filename,
std::string  sep = "," 
)
inline

Definition at line 42 of file CSVFileReader.h.

Member Function Documentation

◆ readCSV()

std::vector< std::vector< std::string > > CSVFileReader::readCSV ( )
inline

Definition at line 45 of file CSVFileReader.h.


The documentation for this class was generated from the following file: