|
World Ocean Simulation System (WOSS) library
|
Textual implementation of WossDb. More...
#include <woss-db.h>


Public Member Functions | |
| WossTextualDb (const std::string &name) | |
| virtual | ~WossTextualDb () override |
| virtual bool | openConnection () override |
| virtual bool | closeConnection () override |
Public Member Functions inherited from woss::WossDb | |
| WossDb (const std::string &name) | |
| virtual | ~WossDb ()=default |
| void | setDbName (const std::string &pathname) |
| std::string | getDbName () const |
| void | setDebug (double flag=true) |
| bool | isUsingDebug () const |
| virtual bool | isValid () const |
| 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) const |
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 |
|
overridevirtual |
|
overridevirtual |
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(), woss::ResTimeArrTxtDb::closeConnection(), and ~WossTextualDb().
|
overridevirtual |
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::ResPressureTxtDb::importMap(), woss::ResTimeArrTxtDb::importMap(), woss::ResPressureBinDb::importMap(), woss::ResTimeArrBinDb::importMap(), woss::ResPressureTxtDb::printScreenMap(), woss::ResTimeArrTxtDb::printScreenMap(), woss::ResPressureTxtDb::writeMap(), woss::ResTimeArrTxtDb::writeMap(), woss::ResPressureBinDb::writeMap(), and woss::ResTimeArrBinDb::writeMap().