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

#include <CSV_Header.h>

Inheritance diagram for CSV_Header:
Inheritance graph
Collaboration diagram for CSV_Header:
Collaboration graph

Public Member Functions

 CSV_Header ()
 
virtual void dump (ostream &strm) const
 dump the contents of this object to the specified ostream More...
 
CSV_FieldgetField (const int &index)
 
CSV_FieldgetField (const string &fieldName)
 
void getFieldList (vector< string > &list)
 
const string getFieldType (const string &fieldName)
 
bool populate (vector< string > *headerinfo) const
 
virtual ~CSV_Header ()
 

Detailed Description

Definition at line 48 of file CSV_Header.h.

Constructor & Destructor Documentation

CSV_Header::CSV_Header ( )

Definition at line 43 of file CSV_Header.cc.

CSV_Header::~CSV_Header ( )
virtual

Definition at line 49 of file CSV_Header.cc.

Member Function Documentation

void CSV_Header::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 161 of file CSV_Header.cc.

References BESIndent::Indent(), BESIndent::LMarg(), and BESIndent::UnIndent().

Referenced by CSV_Obj::dump().

Here is the call graph for this function:

CSV_Field * CSV_Header::getField ( const int &  index)

Definition at line 113 of file CSV_Header.cc.

Referenced by CSV_Obj::getFieldData(), CSV_Obj::getRecord(), and CSV_Obj::load().

CSV_Field * CSV_Header::getField ( const string &  fieldName)

Definition at line 129 of file CSV_Header.cc.

void CSV_Header::getFieldList ( vector< string > &  list)

Definition at line 154 of file CSV_Header.cc.

Referenced by CSV_Obj::getFieldList().

const string CSV_Header::getFieldType ( const string &  fieldName)

Definition at line 143 of file CSV_Header.cc.

Referenced by CSV_Obj::getFieldType().

bool CSV_Header::populate ( vector< string > *  headerinfo) const

Definition at line 68 of file CSV_Header.cc.

References CSV_Field::insertIndex(), CSV_Field::insertName(), CSV_Field::insertType(), and CSV_Utils::slim().

Referenced by CSV_Obj::load().

Here is the call graph for this function:


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