World Ocean Simulation System (WOSS) library
woss::SedimDeck41MarsdenOneDb Class Reference

WossDb for custom made NetCDF marsden coordinates DECK41 Sediment database. More...

#include <sediment-deck41-marsden-one-db.h>

Inheritance diagram for woss::SedimDeck41MarsdenOneDb:
Inheritance graph
Collaboration diagram for woss::SedimDeck41MarsdenOneDb:
Collaboration graph

Public Member Functions

 SedimDeck41MarsdenOneDb (const ::std::string &name=DB_NAME_NOT_SET)
 
 SedimDeck41MarsdenOneDb (const ::std::string &name, DECK41DbType db_type)
 
Deck41Types getSeaFloorType (const MarsdenCoord &marsden_coord) 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
 
virtual bool isValid ()
 
virtual bool openConnection ()=0
 
virtual bool finalizeConnection ()=0
 
virtual bool closeConnection ()=0
 

Protected Attributes

netCDF::NcVar main_sedim_var_marsden_one
 
NcVar * main_sedim_var_marsden_one
 
netCDF::NcVar sec_sedim_var_marsden_one
 
NcVar * sec_sedim_var_marsden_one
 
netCDF::NcVar marsden_square_var
 
NcVar * marsden_square_var
 
netCDF::NcVar marsden_one_square_var
 
NcVar * marsden_one_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)
 

Detailed Description

WossDb for custom made NetCDF marsden coordinates DECK41 Sediment database.

SedimDeck41MarsdenOneDb implements WossNetcdfDb for the custom made NetCDF marsden coordinates DECK41 Sediment database

Constructor & Destructor Documentation

◆ SedimDeck41MarsdenOneDb() [1/2]

SedimDeck41MarsdenOneDb::SedimDeck41MarsdenOneDb ( const ::std::string &  name = DB_NAME_NOT_SET)

SedimDeck41MarsdenOneDb default constructor. Default constructed object are not valid

Parameters
namepathname of database
db_typeDECK41 db type

References woss::DECK41_DB_V1_TYPE.

◆ SedimDeck41MarsdenOneDb() [2/2]

SedimDeck41MarsdenOneDb::SedimDeck41MarsdenOneDb ( const ::std::string &  name,
DECK41DbType  db_type 
)

SedimDeck41MarsdenOneDb default constructor. Default constructed object are not valid

Parameters
namepathname of database
db_typeDECK41 db type

Member Function Documentation

◆ finalizeConnection()

bool SedimDeck41MarsdenOneDb::finalizeConnection ( )
virtual

Post openConnection() actions, used to create and initialize NetCDF variables

Returns
true if method was successful, false otherwise

Implements woss::WossDb.

References deck41_db_type, woss::DECK41_DB_V2_TYPE, main_sedim_var_marsden_one, marsden_one_square_var, marsden_square_var, woss::WossNetcdfDb::netcdf_db, and sec_sedim_var_marsden_one.

◆ getDeck41DbType()

DECK41DbType woss::SedimDeck41MarsdenOneDb::getDeck41DbType ( ) const
inline

Returns the current DECK41 DB type

Returns
current deck41 db type

References deck41_db_type.

◆ getSeaFloorType()

Deck41Types SedimDeck41MarsdenOneDb::getSeaFloorType ( const MarsdenCoord marsden_coord) const

Returns a Deck41Types for the given coordinates

Parameters
coordinatesconst reference to a valid MarsdenCoord object
Returns
a Deck41Types value ( main type value, secondary type value )

References woss::WossDb::debug, deck41_db_type, woss::DECK41_DB_V1_TYPE, woss::DECK41_DB_V2_TYPE, main_sedim_var_marsden_one, marsden_one_square_var, marsden_square_var, and sec_sedim_var_marsden_one.

Referenced by woss::SedimDeck41Db::getDeck41TypesFromMarsdenCoords().

◆ isValid()

virtual bool woss::SedimDeck41MarsdenOneDb::isValid ( )
inlinevirtual

Checks the validity of SedimDeck41MarsdenOneDb

Returns
true if pathname is valid, false otherwise

Reimplemented from woss::WossDb.

References woss::WossDb::db_name, woss::DECK41_DB_INVALID_TYPE, deck41_db_type, and woss::WossDb::isValid().

Here is the call graph for this function:

◆ setDeck41DbType()

void woss::SedimDeck41MarsdenOneDb::setDeck41DbType ( DECK41DbType  db_type)
inline

Sets the current DECK41 Db type

Parameters
db_typeDECK41DbType

References deck41_db_type.

Referenced by woss::SedimDeck41DbCreator::initializeSedimDb().

Member Data Documentation

◆ deck41_db_type

DECK41DbType woss::SedimDeck41MarsdenOneDb::deck41_db_type
protected

◆ main_sedim_var_marsden_one

netCDF::NcVar woss::SedimDeck41MarsdenOneDb::main_sedim_var_marsden_one
protected

NetCDF variable representing main DECK41 floortype

Referenced by finalizeConnection(), and getSeaFloorType().

◆ marsden_one_square_var

netCDF::NcVar woss::SedimDeck41MarsdenOneDb::marsden_one_square_var
protected

NetCDF marsden one degree square variable

Referenced by finalizeConnection(), and getSeaFloorType().

◆ marsden_square_var

netCDF::NcVar woss::SedimDeck41MarsdenOneDb::marsden_square_var
protected

NetCDF marsden square variable

Referenced by finalizeConnection(), and getSeaFloorType().

◆ sec_sedim_var_marsden_one

netCDF::NcVar woss::SedimDeck41MarsdenOneDb::sec_sedim_var_marsden_one
protected

NetCDF variable representing secondary DECK41 floortype

Referenced by finalizeConnection(), and getSeaFloorType().


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