|
OPeNDAP Hyrax Back End Server (BES)
Updated for version 3.8.3
|
#include <CSV_Obj.h>


Public Member Functions | |
| CSV_Obj () | |
| virtual void | dump (ostream &strm) const |
| dump the contents of this object to the specified ostream More... | |
| void * | getFieldData (const string &field) |
| void | getFieldList (vector< string > &list) |
| string | getFieldType (const string &fieldName) |
| vector< string > | getRecord (const int rowCount) |
| int | getRecordCount () |
| void | load () |
| bool | open (const string &filepath) |
| virtual | ~CSV_Obj () |
| CSV_Obj::CSV_Obj | ( | ) |
Definition at line 45 of file CSV_Obj.cc.
|
virtual |
Definition at line 52 of file CSV_Obj.cc.
References CSV_Reader::close().

|
virtual |
dump the contents of this object to the specified ostream
This method is implemented by all derived classes to dump their contents, in other words, any state they might have, private variables, etc...
The inline function below can be used to dump the contents of an OPeNDAOObj object. For example, the object Animal is derived from BESObj. A user could do the following:
Animal *a = new dog( "Sparky" ) ; cout << a << endl ;
And the dump method for dog could display the name passed into the constructor, the (this) pointer of the object, etc...
| strm | C++ i/o stream to dump the object to |
Implements BESObj.
Definition at line 233 of file CSV_Obj.cc.
References CSV_Reader::dump(), CSV_Header::dump(), BESIndent::Indent(), BESIndent::LMarg(), and BESIndent::UnIndent().

| void * CSV_Obj::getFieldData | ( | const string & | field | ) |
Definition at line 158 of file CSV_Obj.cc.
References CSV_Data::getData(), CSV_Header::getField(), and CSV_Field::getIndex().
Referenced by csv_read_descriptors(), and getRecord().

| void CSV_Obj::getFieldList | ( | vector< string > & | list | ) |
Definition at line 122 of file CSV_Obj.cc.
References CSV_Header::getFieldList().
Referenced by csv_read_attributes(), csv_read_descriptors(), and getRecord().

| string CSV_Obj::getFieldType | ( | const string & | fieldName | ) |
Definition at line 127 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 180 of file CSV_Obj.cc.
References CSV_Header::getField(), getFieldData(), getFieldList(), getRecordCount(), and CSV_Field::getType().

| int CSV_Obj::getRecordCount | ( | ) |
Definition at line 132 of file CSV_Obj.cc.
References CSV_Data::getData(), and CSV_Data::getType().
Referenced by csv_read_descriptors(), and getRecord().

| void CSV_Obj::load | ( | ) |
Definition at line 84 of file CSV_Obj.cc.
References CSV_Reader::eof(), CSV_Reader::get(), CSV_Header::getField(), CSV_Data::insert(), CSV_Header::populate(), CSV_Reader::reset(), and CSV_Utils::slim().
Referenced by csv_read_attributes(), and csv_read_descriptors().

| bool CSV_Obj::open | ( | const string & | filepath | ) |
Definition at line 79 of file CSV_Obj.cc.
References CSV_Reader::open().
Referenced by csv_read_attributes(), and csv_read_descriptors().
