Textual WossDb for TimeArr.
More...
#include <res-time-arr-txt-db.h>
Textual WossDb for TimeArr.
ResTimeArrTxtDb implements WossTextualDb and WossResTimeArrDb for storing calculated TimeArr into a text file
◆ AMXCIter
◆ AMXCRIter
◆ AMXIter
◆ AMXRIter
◆ ArrMatrix
Multidimensional map that links a transmitter CoordZ to a receiver CoordZ to a frequency PDouble value and finally to a TimeArr value
◆ FMCIter
◆ FMIter
◆ FMRIter
◆ FreqMap
◆ RxMap
◆ RxMCIter
◆ RxMIter
◆ RxMRIter
◆ TimeMap
◆ TMCIter
◆ TMIter
◆ TMRIter
◆ ResTimeArrTxtDb()
| ResTimeArrTxtDb::ResTimeArrTxtDb |
( |
const std::string & |
name | ) |
|
◆ ~ResTimeArrTxtDb()
| virtual woss::ResTimeArrTxtDb::~ResTimeArrTxtDb |
( |
| ) |
|
|
overridevirtualdefault |
◆ closeConnection()
| bool ResTimeArrTxtDb::closeConnection |
( |
| ) |
|
|
overridevirtual |
◆ finalizeConnection()
| bool ResTimeArrTxtDb::finalizeConnection |
( |
| ) |
|
|
overridevirtual |
◆ getSpaceSampling()
| static double woss::ResTimeArrTxtDb::getSpaceSampling |
( |
| ) |
|
|
inlinestatic |
◆ getValue()
| std::unique_ptr< TimeArr > ResTimeArrTxtDb::getValue |
( |
const CoordZ & |
coord_tx, |
|
|
const CoordZ & |
coord_rx, |
|
|
const double |
frequency, |
|
|
const Time & |
time_value |
|
) |
| const |
|
overridevirtual |
◆ importMap()
| bool ResTimeArrTxtDb::importMap |
( |
| ) |
|
|
protectedvirtual |
Imports the formatted textual files into arrivals_map. The column format is the following:
tx latitude, tx longitude, tx depth, rx latitude, rx longitude, rx depth, frequency, total channel taps, delay-i-th real pressure-i-th, imag pressure-i-th
- Returns
- true if operation succeeds, false otherwise
Reimplemented in woss::ResTimeArrBinDb.
References arrivals_map, woss::WossDb::db_name, woss::WossDb::debug, initial_arrmap_size, woss::Singleton< T >::instance(), printScreenMap(), and woss::WossTextualDb::textual_db.
Referenced by finalizeConnection().
◆ insertValue()
| bool ResTimeArrTxtDb::insertValue |
( |
const CoordZ & |
coord_tx, |
|
|
const CoordZ & |
coord_rx, |
|
|
const double |
frequency, |
|
|
const Time & |
time_value, |
|
|
const TimeArr & |
channel |
|
) |
| |
|
overridevirtual |
◆ printScreenMap()
| void ResTimeArrTxtDb::printScreenMap |
( |
| ) |
|
|
protected |
Prints arrivals_map to screen. The columns format is the following:
tx latitude, tx longitude, tx depth, rx latitude, rx longitude, rx depth, frequency, total channel taps, delay-i-th real pressure-i-th, imag pressure-i-th
- Returns
- true if operation succeeds, false otherwise
References arrivals_map, woss::TimeArr::size(), and woss::WossTextualDb::textual_db.
Referenced by importMap(), woss::ResTimeArrBinDb::importMap(), writeMap(), and woss::ResTimeArrBinDb::writeMap().
◆ readMap()
| std::optional< std::unique_ptr< TimeArr > > ResTimeArrTxtDb::readMap |
( |
const CoordZ & |
tx, |
|
|
const CoordZ & |
rx, |
|
|
const double |
frequency, |
|
|
const Time & |
time_value |
|
) |
| const |
|
protected |
Reads given values from arrivals_map
- Parameters
-
| tx | valid transmitter coordinates |
| rx | valid receiver coordinates |
| frequency | frequency [hz] |
| time_value | const reference to a valid Time object |
- Returns
- std::optional to a std::unique_ptr to a valid TimeArr if parameters are found, not valid otherwise
References arrivals_map, and woss::WossDb::debug.
Referenced by getValue().
◆ setSpaceSampling()
| static void woss::ResTimeArrTxtDb::setSpaceSampling |
( |
double |
value | ) |
|
|
inlinestatic |
◆ writeMap()
| bool ResTimeArrTxtDb::writeMap |
( |
| ) |
|
|
protectedvirtual |
Writes arrivals_map into the textual file. The columns format is the following:
tx latitude, tx longitude, tx depth, rx latitude, rx longitude, rx depth, frequency, total channel taps, delay-i-th real pressure-i-th, imag pressure-i-th
- Returns
- true if operation succeeds, false otherwise
Reimplemented in woss::ResTimeArrBinDb.
References arrivals_map, woss::WossDb::db_name, woss::WossDb::debug, printScreenMap(), woss::TimeArr::size(), and woss::WossTextualDb::textual_db.
Referenced by closeConnection().
◆ arrivals_map
| ArrMatrix woss::ResTimeArrTxtDb::arrivals_map |
|
protected |
◆ has_been_modified
| bool woss::ResTimeArrTxtDb::has_been_modified |
|
protected |
◆ initial_arrmap_size
| int woss::ResTimeArrTxtDb::initial_arrmap_size |
|
protected |
◆ space_sampling
| double ResTimeArrTxtDb::space_sampling = 0.0 |
|
staticprotected |
The documentation for this class was generated from the following files: