57 void read(
const std::string& filename);
72 std::vector<std::vector<std::string>>
getNumArray();
Enables reading of .csv files into MercuryDPM.
Definition: csvReader.h:46
std::vector< Mdouble > CSVSecondColumn_
Definition: csvReader.h:105
std::vector< std::string > getHeaderVector()
Get the Header string vector of a .csv file.
Definition: csvReader.cc:101
std::vector< Mdouble > getSecondColumn(Mdouble scalingFactor)
Get second column of a .csv file and return it as a double.
Definition: csvReader.cc:145
std::vector< std::vector< std::string > > getNumArray()
Get the 2D array with the .csv file values.
Definition: csvReader.cc:118
std::vector< std::string > headerVector_
Definition: csvReader.h:95
bool hasHeader_
Definition: csvReader.h:110
std::vector< std::vector< std::string > > numArray_
Definition: csvReader.h:89
void read(const std::string &filename)
Reads .csv files into Mercury.
Definition: csvReader.cc:40
void setHeader(bool headings)
Set the boolean hasHeader_.
Definition: csvReader.cc:109
std::vector< Mdouble > CSVFirstColumn_
Definition: csvReader.h:100
std::vector< Mdouble > getFirstColumn(Mdouble scalingFactor)
Get first column of a .csv file and return it as a double.
Definition: csvReader.cc:128