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

Data behaviour class for storing calculated Pressure. More...

#include <woss-db.h>

Inheritance diagram for woss::WossResPressDb:
Inheritance graph
Collaboration diagram for woss::WossResPressDb:
Collaboration graph

Public Member Functions

virtual PressuregetValue (const CoordZ &coord_tx, const CoordZ &coord_rx, const double frequency, const Time &time_value) const =0
 
virtual bool insertValue (const CoordZ &coord_tx, const CoordZ &coord_rx, const double frequency, const Time &time_value, const Pressure &pressure)=0
 

Detailed Description

Data behaviour class for storing calculated Pressure.

WossResPressDb is the prototype of any class that implements a database database for calculated Pressure

See also
ResPressureTxtDb

Member Function Documentation

◆ getValue()

virtual Pressure * woss::WossResPressDb::getValue ( const CoordZ coord_tx,
const CoordZ coord_rx,
const double  frequency,
const Time time_value 
) const
pure virtual

Returns a heap-created Pressure value for given frequency, transmitter and receiver coordinates if present in the database. User is responsible of pointer's ownership

Parameters
coord_txconst reference to a valid CoordZ object
coord_rxconst reference to a valid CoordZ object
frequencyused frequency [hz]
Returns
valid TimeArr if parameters are found, not valid otherwise

Implemented in woss::ResPressureTxtDb.

Referenced by woss::WossDbManager::getPressure().

◆ insertValue()

virtual bool woss::WossResPressDb::insertValue ( const CoordZ coord_tx,
const CoordZ coord_rx,
const double  frequency,
const Time time_value,
const Pressure pressure 
)
pure virtual

Inserts the given Pressure value in the database at given frequency, transmitter and receiver coordinates

Parameters
coord_txconst reference to a valid CoordZ object
coord_rxconst reference to a valid CoordZ object
frequencyused frequency [hz]
pressurecomputed Pressure
Returns
true if method was successful, false otherwise

Implemented in woss::ResPressureTxtDb.

Referenced by woss::WossDbManager::insertPressure().


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