#include <csvtable.h>
|
| CSVTable () |
|
unsigned | addRows (unsigned n=1) |
|
int | getColIdx (const string &column_name) |
|
unsigned | addColumn (const string &col_name) |
|
int | setCell (unsigned row_idx, string col_name, string value, bool createNewCol=false) |
|
int | setCell (unsigned row_idx, string col_name, int value, bool createNewCol=false) |
|
int | setCell (unsigned row_idx, string col_name, long value, bool createNewCol=false) |
|
int | setCell (unsigned row_idx, string col_name, bool value, bool createNewCol=false) |
|
int | setCell (unsigned row_idx, string col_name, unsigned value, bool createNewCol=false) |
|
int | setCell (unsigned row_idx, string col_name, double value, bool createNewCol=false) |
|
int | setCell (unsigned row_idx, string col_name, float value, bool createNewCol=false) |
|
unsigned | nRows () const |
|
void | write (ostream &os) const |
|
int | read (istream &is) |
|
|
void | split (vector< string > &theStringVector, const string &theString, const string &theDelimiter) |
|
|
static string & | trim (string &s) |
|
template<class Tvar>
class CSVTable< Tvar >
Definition at line 89 of file csvtable.h.
◆ CSVTable()
◆ addColumn()
template<class Tvar >
unsigned CSVTable< Tvar >::addColumn |
( |
const string & |
col_name | ) |
|
|
inline |
◆ addRows()
template<class Tvar >
unsigned CSVTable< Tvar >::addRows |
( |
unsigned |
n = 1 | ) |
|
|
inline |
◆ getColIdx()
template<class Tvar >
int CSVTable< Tvar >::getColIdx |
( |
const string & |
column_name | ) |
|
|
inline |
Returns the index of the column named "column_name".
Definition at line 111 of file csvtable.h.
◆ nRows()
template<class Tvar >
unsigned CSVTable< Tvar >::nRows |
( |
| ) |
const |
|
inline |
◆ read()
template<class Tvar >
int CSVTable< Tvar >::read |
( |
istream & |
is | ) |
|
|
inline |
◆ setCell() [1/7]
template<class Tvar >
int CSVTable< Tvar >::setCell |
( |
unsigned |
row_idx, |
|
|
string |
col_name, |
|
|
string |
value, |
|
|
bool |
createNewCol = false |
|
) |
| |
|
inline |
◆ setCell() [2/7]
template<class Tvar >
int CSVTable< Tvar >::setCell |
( |
unsigned |
row_idx, |
|
|
string |
col_name, |
|
|
int |
value, |
|
|
bool |
createNewCol = false |
|
) |
| |
|
inline |
◆ setCell() [3/7]
template<class Tvar >
int CSVTable< Tvar >::setCell |
( |
unsigned |
row_idx, |
|
|
string |
col_name, |
|
|
long |
value, |
|
|
bool |
createNewCol = false |
|
) |
| |
|
inline |
◆ setCell() [4/7]
template<class Tvar >
int CSVTable< Tvar >::setCell |
( |
unsigned |
row_idx, |
|
|
string |
col_name, |
|
|
bool |
value, |
|
|
bool |
createNewCol = false |
|
) |
| |
|
inline |
◆ setCell() [5/7]
template<class Tvar >
int CSVTable< Tvar >::setCell |
( |
unsigned |
row_idx, |
|
|
string |
col_name, |
|
|
unsigned |
value, |
|
|
bool |
createNewCol = false |
|
) |
| |
|
inline |
◆ setCell() [6/7]
template<class Tvar >
int CSVTable< Tvar >::setCell |
( |
unsigned |
row_idx, |
|
|
string |
col_name, |
|
|
double |
value, |
|
|
bool |
createNewCol = false |
|
) |
| |
|
inline |
◆ setCell() [7/7]
template<class Tvar >
int CSVTable< Tvar >::setCell |
( |
unsigned |
row_idx, |
|
|
string |
col_name, |
|
|
float |
value, |
|
|
bool |
createNewCol = false |
|
) |
| |
|
inline |
◆ split()
template<class Tvar >
void CSVTable< Tvar >::split |
( |
vector< string > & |
theStringVector, |
|
|
const string & |
theString, |
|
|
const string & |
theDelimiter |
|
) |
| |
|
inlineprotected |
◆ trim()
template<class Tvar >
static string& CSVTable< Tvar >::trim |
( |
string & |
s | ) |
|
|
inlinestaticprotected |
◆ write()
template<class Tvar >
void CSVTable< Tvar >::write |
( |
ostream & |
os | ) |
const |
|
inline |
◆ columns
◆ nrows
The documentation for this class was generated from the following file: