|
LRAUV
revA
|
Reads values from mission settings. More...
#include <SettingReader.h>

Public Member Functions | |
| SettingReader (const SettingURI &settingURI, ValueClause *valueClause) | |
| virtual | ~SettingReader () |
| bool | isActive () |
| Status and state functions. More... | |
| bool | read (const Unit &unit, unsigned char &readTo) |
| Get functions. More... | |
| bool | read (const Unit &unit, double &readTo) |
| bool | read (const Unit &unit, float &readTo) |
| bool | read (const Unit &unit, int &readTo) |
| bool | read (bool &readTo) |
| bool | read (Timespan &readTo) |
| bool | read (DataValue &readTo) |
| int | asInt (const Unit &unit) |
| double | asDouble (const Unit &unit) __attribute__((deprecated)) |
| Str | asString (const Unit &unit) |
| const SettingURI & | getSettingURI () |
| const DataValue * | getDefaultValue () |
| const Unit * | getDefaultUnit () |
Protected Member Functions | |
| bool | evalValueClause () |
Protected Attributes | |
| const SettingURI | settingURI_ |
| const DataValue * | defaultValue_ |
| bool | deleteDefaultValue_ |
| ValueClause * | valueClause_ |
Private Member Functions | |
| SettingReader (const SettingReader &old) | |
| SettingReader (const SettingURI &settingURI, const DataValue *defaultValue, bool deleteDefaultValue=true) | |
| void | setDefaultValue (const DataValue *defaultValue, bool deleteDefaultValue=true) |
| void | setValueClause (ValueClause *valueClause) |
Friends | |
| class | Behavior |
Reads values from mission settings.
| SettingReader::SettingReader | ( | const SettingURI & | settingURI, |
| ValueClause * | valueClause | ||
| ) |
|
virtual |
References defaultValue_, deleteDefaultValue_, and valueClause_.
|
private |
|
private |
|
protected |
References defaultValue_, ValueClause::eval(), ValueClause::evalStr(), DataValue::getBinaryType(), isActive(), MULTIVALUE, and valueClause_.
Referenced by asString(), and read().
| const Unit * SettingReader::getDefaultUnit | ( | ) |
References defaultValue_, and DataValue::getUnit().
Referenced by LuaAPI::Exec(), ValueDetect::initialize(), and DepthEnvelope::readParams().
|
inline |
References defaultValue_.
|
inline |
References settingURI_.
Referenced by MissionItem::initializeFromScript().
| bool SettingReader::isActive | ( | void | ) |
Status and state functions.
References ValueClause::getDataValue(), and valueClause_.
Referenced by evalValueClause(), Circle::initialize(), Waypoint::initialize(), PeakDetectHorizontal::initialize(), PeakDetectVsDepth::initialize(), HFRadarModelPoint::initialize(), ValueDetect::initialize(), DepthEnvelope::initialize(), ZigZag::initialize(), Lane::initialize(), DepthEnvelope::projectDepth(), ValueDetect::readParams(), DepthEnvelope::readParams(), ZigZag::readSettings(), AltitudeEnvelope::readSettings(), YoYo::readSettings(), DepthEnvelope::readSettings(), ReinitializeHFRCMVirtualSurfaceDrifter::run(), Circle::run(), Wait::runIfUnsatisfied(), AltitudeEnvelope::runIfUnsatisfied(), DepthEnvelope::runIfUnsatisfied(), and DepthEnvelope::uninitialize().
| bool SettingReader::read | ( | const Unit & | unit, |
| unsigned char & | readTo | ||
| ) |
Get functions.
References DataValue::copyTo(), evalValueClause(), ValueClause::getDataValue(), and valueClause_.
Referenced by asDouble(), asInt(), PeakDetectVsDepth::calcSatisfied(), Buoyancy::calcSatisfied(), LuaAPI::Exec(), SetSpeed::initialize(), Point::initialize(), Circle::initialize(), Waypoint::initialize(), PeakDetectHorizontal::initialize(), PeakDetectVsDepth::initialize(), ValueDetect::initialize(), HFRadarModelPoint::initialize(), GoToSurface::loadParams(), HFRadarModelPoint::makeFine(), ValueDetect::readParams(), OffshoreEnvelope::readParams(), WaterDepthEnvelope::readParams(), DepthEnvelope::readParams(), Pitch::readSettings(), KeepStation::readSettings(), Lane::readSettings(), DepthServo::readSettings(), PitchServo::readSettings(), ZigZag::readSettings(), Tracking::readSettings(), AltitudeEnvelope::readSettings(), DepthEnvelope::readSettings(), YoYo::readSettings(), Buoyancy::run(), ReinitializeHFRCMVirtualSurfaceDrifter::run(), Circle::run(), and Wait::runIfUnsatisfied().
| bool SettingReader::read | ( | const Unit & | unit, |
| double & | readTo | ||
| ) |
References DataValue::copyTo(), evalValueClause(), ValueClause::getDataValue(), and valueClause_.
| bool SettingReader::read | ( | const Unit & | unit, |
| float & | readTo | ||
| ) |
References DataValue::copyTo(), evalValueClause(), ValueClause::getDataValue(), and valueClause_.
| bool SettingReader::read | ( | const Unit & | unit, |
| int & | readTo | ||
| ) |
References DataValue::copyTo(), evalValueClause(), ValueClause::getDataValue(), and valueClause_.
| bool SettingReader::read | ( | bool & | readTo | ) |
References Units::BOOL, DataValue::copyTo(), evalValueClause(), ValueClause::getDataValue(), and valueClause_.
| bool SettingReader::read | ( | Timespan & | readTo | ) |
References DataValue::copyTo(), ValueClause::getDataValue(), Units::SECOND, Timespan::Seconds(), and valueClause_.
| bool SettingReader::read | ( | DataValue & | readTo | ) |
References DataValue::copyTo(), evalValueClause(), ValueClause::getDataValue(), and valueClause_.
|
inlineprivate |
Referenced by Behavior::newSettingReader().
|
inlineprivate |
Referenced by Behavior::addValueClause().
|
friend |
|
protected |
Referenced by evalValueClause(), getDefaultUnit(), getDefaultValue(), and ~SettingReader().
|
protected |
Referenced by ~SettingReader().
|
protected |
Referenced by getSettingURI().
|
protected |
Referenced by asString(), evalValueClause(), isActive(), read(), and ~SettingReader().