World Ocean Simulation System (WOSS) library
|
NetCDF implementation of WossDb. More...
#include <woss-db.h>
Public Member Functions | |
WossNetcdfDb (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 | |
netCDF::NcFile * | netcdf_db |
NcFile * | netcdf_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) |
NetCDF implementation of WossDb.
WossNetcdfDb is the NetCDF specialization of WossDb class. It sets up connection to the file and properly initializes a NcFile* pointer. NetCDF variables however are not superimposed by this class. User has the task to correctly create and initialize them with the method finalizeConnection()
WossNetcdfDb::WossNetcdfDb | ( | const ::std::string & | name | ) |
WossNetcdfDb constructor
name | pathname of database |
|
virtual |
Closes the connection to the NetCDF pathname provided
Implements woss::WossDb.
References netcdf_db.
Referenced by woss::SedimDeck41Db::closeConnection().
|
virtual |
Opens the connection to the NetCDF pathname provided
Implements woss::WossDb.
References woss::WossDb::db_name, woss::WossDb::isValid(), and netcdf_db.
|
protected |
NcFile pointer to a NetCDF database descriptor. It will be properly initialized by openConnection()
Referenced by closeConnection(), woss::BathyGebcoDb::finalizeConnection(), woss::SedimDeck41CoordDb::finalizeConnection(), woss::SedimDeck41MarsdenDb::finalizeConnection(), woss::SedimDeck41MarsdenOneDb::finalizeConnection(), woss::SspWoa2005Db::finalizeConnection(), and openConnection().