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

#include <CSV_Reader.h>

Inheritance diagram for CSV_Reader:
Inheritance graph
Collaboration diagram for CSV_Reader:
Collaboration graph

Public Member Functions

bool close () const
 
 CSV_Reader ()
 
virtual void dump (ostream &strm) const
 dump the contents of this object to the specified ostream More...
 
bool eof () const
 
void get (vector< string > &row)
 
bool open (const string &filepath)
 
void reset ()
 
virtual ~CSV_Reader ()
 

Detailed Description

Definition at line 48 of file CSV_Reader.h.

Constructor & Destructor Documentation

CSV_Reader::CSV_Reader ( )

Definition at line 39 of file CSV_Reader.cc.

CSV_Reader::~CSV_Reader ( )
virtual

Definition at line 44 of file CSV_Reader.cc.

Member Function Documentation

bool CSV_Reader::close ( ) const

Definition at line 71 of file CSV_Reader.cc.

Referenced by CSV_Obj::~CSV_Obj().

void CSV_Reader::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 108 of file CSV_Reader.cc.

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

Referenced by CSV_Obj::dump().

Here is the call graph for this function:

bool CSV_Reader::eof ( ) const

Definition at line 86 of file CSV_Reader.cc.

Referenced by CSV_Obj::load().

void CSV_Reader::get ( vector< string > &  row)

Definition at line 99 of file CSV_Reader.cc.

References CSV_Utils::split().

Referenced by CSV_Obj::load().

Here is the call graph for this function:

bool CSV_Reader::open ( const string &  filepath)

Definition at line 58 of file CSV_Reader.cc.

Referenced by CSV_Obj::open().

void CSV_Reader::reset ( )

Definition at line 92 of file CSV_Reader.cc.

Referenced by CSV_Obj::load().


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