Reads in a CSV file using rapidcsv.
More...
#include <csv_reader.h>
Reads in a CSV file using rapidcsv.
Definition at line 31 of file csv_reader.h.
◆ CSVReader()
bdm::CSVReader::CSVReader |
( |
const std::string & |
file, |
|
|
int |
skip = 0 |
|
) |
| |
|
inlineexplicit |
◆ ForEachEntryInColumn()
template<typename T = float, typename Lambda >
void bdm::CSVReader::ForEachEntryInColumn |
( |
const std::string & |
column_name, |
|
|
Lambda |
lambda |
|
) |
| |
|
inline |
◆ GetCell()
template<typename T >
T bdm::CSVReader::GetCell |
( |
size_t |
col, |
|
|
size_t |
row |
|
) |
| |
|
inline |
◆ GetColumn()
template<typename T >
std::vector<T> bdm::CSVReader::GetColumn |
( |
const std::string & |
column_name | ) |
|
|
inline |
◆ GetColumnCount()
size_t bdm::CSVReader::GetColumnCount |
( |
| ) |
|
|
inline |
◆ GetColumnName()
std::string bdm::CSVReader::GetColumnName |
( |
size_t |
idx | ) |
|
|
inline |
◆ GetColumnNames()
std::vector<std::string> bdm::CSVReader::GetColumnNames |
( |
| ) |
|
|
inline |
◆ GetNumEntries()
size_t bdm::CSVReader::GetNumEntries |
( |
const std::string & |
column_name | ) |
|
|
inline |
◆ GetRowCount()
size_t bdm::CSVReader::GetRowCount |
( |
| ) |
|
|
inline |
◆ Print()
void bdm::CSVReader::Print |
( |
| ) |
|
|
inline |
◆ bad_entries_
std::vector<bool> bdm::CSVReader::bad_entries_ |
|
private |
◆ doc_
rapidcsv::Document bdm::CSVReader::doc_ |
|
private |
◆ filename_
std::string bdm::CSVReader::filename_ |
|
private |
◆ num_cols_
size_t bdm::CSVReader::num_cols_ = 0 |
|
private |
◆ num_rows_
size_t bdm::CSVReader::num_rows_ = 0 |
|
private |
The documentation for this class was generated from the following file: