World Ocean Simulation System (WOSS) library
|
Abstract class for channel simulator result files processing. More...
#include <res-reader.h>
Public Member Functions | |
ResReader () | |
ResReader (const Woss *const woss) | |
virtual bool | initialize ()=0 |
virtual Pressure * | readAvgPressure (double frequency, double tx_depth, double start_rx_depth, double start_rx_range, double end_rx_depth, double end_rx_range)=0 |
virtual Pressure * | readPressure (double frequency, double tx_depth, double rx_depth, double rx_range) const =0 |
virtual TimeArr * | readTimeArr (double frequency, double tx_depth, double rx_depth, double rx_range) const =0 |
ResReader & | setWossPtr (const Woss *const woss) |
const Woss *const | getWossPtr () |
ResReader & | setFileName (const ::std::string &name) |
::std::string | getFileName () |
Protected Attributes | |
const Woss * | woss_ptr |
::std::string | file_name |
Abstract class for channel simulator result files processing.
ResReader class has the task to read and process channel simulator result files
ResReader::ResReader | ( | ) |
ResReader default constructor
ResReader::ResReader | ( | const Woss *const | woss | ) |
|
inline |
|
inline |
|
pure virtual |
Initializes the ResReader object
Implemented in woss::ArrAscResReader, woss::ArrBinResReader, and woss::ShdResReader.
|
pure virtual |
Gets the average Pressure value in given rx range-depth box
frequency | frequency [hZ] |
tx_depth | transmitter depth [m] |
start_rx_depth | start receiver depth [m] |
start_rx_range | start receiver range [m] |
end_rx_depth | end receiver depth [m] |
end_rx_range | end receiver range [m] |
Implemented in woss::ArrAscResReader, woss::ArrBinResReader, and woss::ShdResReader.
|
pure virtual |
Gets a Pressure value for given range, depths
frequency | frequency [hZ] |
tx_depth | transmitter depth [m] |
rx_depth | receiver depth [m] |
rx_range | receiver range [m] |
Implemented in woss::ArrAscResReader, woss::ArrBinResReader, and woss::ShdResReader.
|
pure virtual |
Gets a TimeArr value for given range, depths
frequency | frequency [hZ] |
tx_depth | transmitter depth [m] |
rx_depth | receiver depth [m] |
rx_range | receiver range [m] |
Implemented in woss::ArrAscResReader, woss::ArrBinResReader, and woss::ShdResReader.
|
inline |
Sets the file(s) pathname
name | const reference to a valid pathname |
References file_name.
Referenced by woss::BellhopWoss::initPressResReader(), and woss::BellhopWoss::initTimeArrResReader().
|
protected |
File(s) pathname
Referenced by woss::ArrAscResReader::getArrAscFile(), woss::ArrAscResReader::getArrAscHeader(), woss::ArrBinResReader::getArrBinFile(), woss::ArrBinResReader::getArrBinHeader(), getFileName(), woss::ShdResReader::getShdFile(), woss::ShdResReader::getShdHeader(), woss::ArrAscResReader::initialize(), woss::ArrBinResReader::initialize(), woss::ShdResReader::initialize(), and setFileName().
|
protected |
Const pointer to Woss owner
Referenced by woss::ShdResReader::accessMap(), woss::ArrAscResReader::getArrAscFile(), woss::ArrAscResReader::getArrAscHeader(), woss::ArrBinResReader::getArrBinFile(), woss::ArrBinResReader::getArrBinHeader(), woss::ShdResReader::getShdFile(), woss::ShdResReader::getShdHeader(), getWossPtr(), woss::ArrAscResReader::initialize(), woss::ArrBinResReader::initialize(), woss::ShdResReader::initialize(), woss::ArrAscResReader::readMapAvgPressure(), woss::ArrBinResReader::readMapAvgPressure(), woss::ShdResReader::readMapAvgPressure(), and setWossPtr().