World Ocean Simulation System (WOSS) library
|
Textual implementation of WossDb. More...
#include <woss-db.h>
Public Member Functions | |
WossTextualDb (const ::std::string &name) | |
virtual bool | openConnection () |
virtual bool | closeConnection () |
Public Member Functions inherited from woss::WossDb | |
WossDb (const ::std::string &name) | |
void | setDbName (const ::std::string &pathname) |
::std::string | getDbName () const |
void | setDebug (double flag=true) |
bool | isUsingDebug () const |
virtual bool | isValid () |
virtual bool | finalizeConnection ()=0 |
Protected Attributes | |
::std::fstream | textual_db |
Protected Attributes inherited from woss::WossDb | |
::std::string | db_name |
bool | debug |
Additional Inherited Members | |
Protected Member Functions inherited from woss::WossDb | |
PathName | getPathName (const ::std::string &complete_path) |
Textual implementation of WossDb.
WossNetcdfDb is the textual specialization of WossDb class. It sets up connection to the file and properly initializes a fstream object. No behaviour is superimposed by this class. User has the task to define method finalizeConnection()
WossTextualDb::WossTextualDb | ( | const ::std::string & | name | ) |
WossTextualDb constructor
name | pathname of database |
|
virtual |
Closes the connection to the textual file provided
Implements woss::WossDb.
Reimplemented in woss::ResPressureTxtDb, and woss::ResTimeArrTxtDb.
References textual_db.
Referenced by woss::ResPressureTxtDb::closeConnection(), and woss::ResTimeArrTxtDb::closeConnection().
|
virtual |
Opens the connection to the textual file provided
Implements woss::WossDb.
References woss::WossDb::db_name.
|
protected |
fstream object to a textual database. It will be properly initialized by openConnection()
Referenced by closeConnection(), woss::BathyUtmCsvDb::importData(), woss::ResPressureBinDb::importMap(), woss::ResPressureTxtDb::importMap(), woss::ResTimeArrBinDb::importMap(), woss::ResTimeArrTxtDb::importMap(), woss::ResPressureTxtDb::printScreenMap(), woss::ResTimeArrTxtDb::printScreenMap(), woss::ResPressureBinDb::writeMap(), woss::ResPressureTxtDb::writeMap(), woss::ResTimeArrBinDb::writeMap(), and woss::ResTimeArrTxtDb::writeMap().