OPeNDAP Hyrax Back End Server (BES)  Updated for version 3.8.3
CSV_Obj Class Reference

#include <CSV_Obj.h>

Inheritance diagram for CSV_Obj:
Inheritance graph
Collaboration diagram for CSV_Obj:
Collaboration graph

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 ()
 

Detailed Description

Definition at line 49 of file CSV_Obj.h.

Constructor & Destructor Documentation

CSV_Obj::CSV_Obj ( )

Definition at line 45 of file CSV_Obj.cc.

CSV_Obj::~CSV_Obj ( )
virtual

Definition at line 52 of file CSV_Obj.cc.

References CSV_Reader::close().

Here is the call graph for this function:

Member Function Documentation

void CSV_Obj::dump ( ostream &  strm) const
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...

Parameters
strmC++ 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().

Here is the call graph for this function:

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().

Here is the call graph for this function:

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().

Here is the call graph for this function:

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().

Here is the call graph for this function:

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().

Here is the call graph for this function:

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().

Here is the call graph for this function:

void CSV_Obj::load ( )
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().

Here is the call graph for this function:


The documentation for this class was generated from the following files: