World Ocean Simulation System (WOSS) library
|
WossDb for custom made NetCDF marsden square DECK41 Sediment database. More...
#include <sediment-deck41-marsden-db.h>
Public Member Functions | |
SedimDeck41MarsdenDb (const ::std::string &name=DB_NAME_NOT_SET) | |
SedimDeck41MarsdenDb (const ::std::string &name, DECK41DbType db_type) | |
Deck41Types | getSeaFloorType (const Marsden &marsden_square) const |
virtual bool | isValid () |
virtual bool | finalizeConnection () |
void | setDeck41DbType (DECK41DbType db_type) |
DECK41DbType | getDeck41DbType () const |
Public Member Functions inherited from woss::WossNetcdfDb | |
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 |
Protected Attributes | |
netCDF::NcVar | main_sedim_var_marsden |
NcVar * | main_sedim_var_marsden |
netCDF::NcVar | sec_sedim_var_marsden |
NcVar * | sec_sedim_var_marsden |
netCDF::NcVar | marsden_square_var |
NcVar * | marsden_square_var |
DECK41DbType | deck41_db_type |
Protected Attributes inherited from woss::WossNetcdfDb | |
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) |
WossDb for custom made NetCDF marsden square DECK41 Sediment database.
SedimDeck41MarsdenDb implements WossNetcdfDb for the custom made NetCDF marsden square DECK41 Sediment database
SedimDeck41MarsdenDb::SedimDeck41MarsdenDb | ( | const ::std::string & | name = DB_NAME_NOT_SET | ) |
SedimDeck41MarsdenDb constructor.
name | pathname of database |
References woss::DECK41_DB_V1_TYPE.
SedimDeck41MarsdenDb::SedimDeck41MarsdenDb | ( | const ::std::string & | name, |
DECK41DbType | db_type | ||
) |
SedimDeck41MarsdenDb constructor.
name | pathname of database |
db_type | DECK41 db type |
|
virtual |
Post openConnection() actions, used to create and initialize NetCDF variables
Implements woss::WossDb.
References deck41_db_type, woss::DECK41_DB_V2_TYPE, main_sedim_var_marsden, marsden_square_var, woss::WossNetcdfDb::netcdf_db, and sec_sedim_var_marsden.
|
inline |
Deck41Types SedimDeck41MarsdenDb::getSeaFloorType | ( | const Marsden & | marsden_square | ) | const |
Returns a Deck41Types for the given coordinates
coordinates | const reference to a valid Marsden object |
References woss::WossDb::debug, deck41_db_type, woss::DECK41_DB_V1_TYPE, woss::DECK41_DB_V2_TYPE, main_sedim_var_marsden, marsden_square_var, and sec_sedim_var_marsden.
Referenced by woss::SedimDeck41Db::getDeck41TypesFromMarsdenSquare().
|
inlinevirtual |
Checks the validity of SedimDeck41MarsdenDb
Reimplemented from woss::WossDb.
References woss::WossDb::db_name, woss::DECK41_DB_INVALID_TYPE, deck41_db_type, and woss::WossDb::isValid().
|
inline |
Sets the current DECK41 Db type
db_type | DECK41DbType |
References deck41_db_type.
Referenced by woss::SedimDeck41DbCreator::initializeSedimDb().
|
protected |
DECK41 database type
Referenced by finalizeConnection(), getDeck41DbType(), getSeaFloorType(), isValid(), and setDeck41DbType().
|
protected |
NetCDF variable representing main DECK41 floortype
Referenced by finalizeConnection(), and getSeaFloorType().
|
protected |
NetCDF marsden square variable
Referenced by finalizeConnection(), and getSeaFloorType().
|
protected |
NetCDF variable representing secondary DECK41 floortype
Referenced by finalizeConnection(), and getSeaFloorType().