Data behaviour class for storing calculated Pressure.
More...
#include <woss-db.h>
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
◆ WossResPressDb()
| woss::WossResPressDb::WossResPressDb |
( |
| ) |
|
|
default |
◆ ~WossResPressDb()
| virtual woss::WossResPressDb::~WossResPressDb |
( |
| ) |
|
|
virtualdefault |
◆ getValue()
| virtual std::unique_ptr< Pressure > woss::WossResPressDb::getValue |
( |
const CoordZ & |
coord_tx, |
|
|
const CoordZ & |
coord_rx, |
|
|
const double |
frequency, |
|
|
const Time & |
time_value |
|
) |
| const |
|
pure virtual |
Returns a std::unique_ptr to 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_tx | const reference to a valid CoordZ object |
| coord_rx | const reference to a valid CoordZ object |
| frequency | used frequency [hz] |
- Returns
- std::unique_ptr to a valid Pressure if parameters are found, not valid otherwise
Implemented in woss::ResPressureTxtDb.
◆ 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_tx | const reference to a valid CoordZ object |
| coord_rx | const reference to a valid CoordZ object |
| frequency | used frequency [hz] |
| pressure | computed Pressure |
- Returns
- true if method was successful, false otherwise
Implemented in woss::ResPressureTxtDb.
The documentation for this class was generated from the following file: