World Ocean Simulation System (WOSS) library
woss::WossSedimentDb Class Referenceabstract

Data behaviour class for Sediment database. More...

#include <woss-db.h>

Inheritance diagram for woss::WossSedimentDb:
Inheritance graph
Collaboration diagram for woss::WossSedimentDb:
Collaboration graph

Public Member Functions

virtual bool insertValue (const Coord &coordinates, const Sediment &sediment_value)=0
 
virtual SedimentgetValue (const CoordZ &coords) const =0
 
virtual SedimentgetValue (const CoordZVector &coordz_vector) const =0
 

Detailed Description

Data behaviour class for Sediment database.

WossSedimentDb is the prototype of any Sediment dabase in WOSS

See also
SedimDeck41Db

Member Function Documentation

◆ getValue() [1/2]

virtual Sediment * woss::WossSedimentDb::getValue ( const CoordZ coords) const
pure virtual

Returns a pointer to a heap-created Sediment value for given coordinates and depth, if present in the database. User is responsible of pointer's ownership

Parameters
coordsconst reference to a valid CoordZ object
Returns
valid Sediment if coordinates are found, not valid otherwise

Implemented in woss::SedimDeck41Db.

Referenced by woss::WossDbManager::getSediment(), and woss::WossDbManager::getSediment().

◆ getValue() [2/2]

virtual Sediment * woss::WossSedimentDb::getValue ( const CoordZVector coordz_vector) const
pure virtual

Returns a pointer to a heap-created Sediment value for given coordinates and depth vector, if at least one set of coordinates is present in the database. User is responsible of pointer's ownership

Parameters
coordz_vectorconst reference to a valid CoordZ vector
Returns
valid Sediment if at least one set of coordinates is found, not valid otherwise

Implemented in woss::SedimDeck41Db.

◆ insertValue()

virtual bool woss::WossSedimentDb::insertValue ( const Coord coordinates,
const Sediment sediment_value 
)
pure virtual

Inserts the given woss::Sediment value in the database for given coordinates

Parameters
coordinatesconst reference to a valid woss::Coord object
bathymetry_valueconst reference to woss::Sediment value to be inserted
Returns
true if method was successful, false otherwise

Implemented in woss::SedimDeck41Db.


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