#include <CSV_Obj.h>
Public Member Functions | |
CSV_Obj () | |
void * | getFieldData (const string &field) |
vector< string > | getFieldList () |
string | getFieldType (const string &fieldName) |
vector< string > | getRecord (const int rowCount) |
int | getRecordCount () |
void | load () |
bool | open (const string &filepath) |
void | printField (const string &field) |
~CSV_Obj () |
Definition at line 46 of file CSV_Obj.h.
CSV_Obj::CSV_Obj | ( | ) |
Definition at line 41 of file CSV_Obj.cc.
CSV_Obj::~CSV_Obj | ( | ) |
Definition at line 47 of file CSV_Obj.cc.
References CSV_Reader::close().
void * CSV_Obj::getFieldData | ( | const string & | field | ) |
Definition at line 160 of file CSV_Obj.cc.
References CSV_Header::getField(), and CSV_Field::getIndex().
Referenced by csv_read_descriptors(), getRecord(), and printField().
vector< string > CSV_Obj::getFieldList | ( | ) |
Definition at line 133 of file CSV_Obj.cc.
References CSV_Header::getFieldList().
Referenced by csv_read_attributes(), csv_read_descriptors(), getRecord(), and printHeader().
string CSV_Obj::getFieldType | ( | const string & | fieldName | ) |
Definition at line 137 of file CSV_Obj.cc.
References CSV_Header::getFieldType().
Referenced by csv_read_attributes(), and csv_read_descriptors().
vector< string > CSV_Obj::getRecord | ( | const int | rowCount | ) |
Definition at line 170 of file CSV_Obj.cc.
References CSV_Header::getField(), getFieldData(), getFieldList(), getRecordCount(), and CSV_Field::getType().
Referenced by printAllData().
int CSV_Obj::getRecordCount | ( | ) |
Definition at line 141 of file CSV_Obj.cc.
References CSV_Data::getData(), and CSV_Data::getType().
Referenced by csv_read_descriptors(), getRecord(), and printAllData().
void CSV_Obj::load | ( | ) |
Definition at line 103 of file CSV_Obj.cc.
References CSV_Reader::eof(), CSV_Reader::get(), CSV_Header::getField(), CSV_Header::populate(), CSV_Reader::reset(), and slim().
Referenced by csv_read_attributes(), csv_read_descriptors(), and main().
bool CSV_Obj::open | ( | const string & | filepath | ) |
Definition at line 54 of file CSV_Obj.cc.
References CSV_Reader::open().
Referenced by csv_read_attributes(), csv_read_descriptors(), and main().
void CSV_Obj::printField | ( | const string & | field | ) |
Definition at line 58 of file CSV_Obj.cc.
References CSV_Header::getField(), getFieldData(), and CSV_Field::getType().