nidas v1.2.3
|
A typed Parameter, with data of type T. More...
#include <Parameter.h>
Public Types | |
enum | parType { STRING_PARAM , FLOAT_PARAM , INT_PARAM , BOOL_PARAM } |
typedef enum parType | parType |
Public Member Functions | |
ParameterT () | |
ParameterT * | clone () const |
void | assign (const Parameter &x) |
A virtual assignment operator. | |
int | getLength () const |
const std::vector< T > | getValues () const |
void | setValues (const std::vector< T > &vals) |
void | setValue (unsigned int i, const T &val) |
Set ith value. | |
void | setValue (const T &val) |
For parameters of length one, set its value. | |
T | getValue (int i) const |
void | fromDOMElement (const xercesc::DOMElement *) |
void | fromDOMElement (const xercesc::DOMElement *, const Dictionary *dict) |
const std::string & | getName () const |
void | setName (const std::string &val) |
parType | getType () const |
virtual double | getNumericValue (int i) const |
virtual std::string | getStringValue (int i) const |
Static Public Member Functions | |
static Parameter * | createParameter (const xercesc::DOMElement *, const Dictionary *d=0) |
Protected Attributes | |
std::vector< T > | _values |
Vector of values. | |
std::string | _name |
parType | _type |
|
inherited |
|
inherited |
|
inline |
A virtual assignment operator.
Implements nidas::core::Parameter.
References nidas::core::getSample().
|
virtual |
Implements nidas::core::Parameter.
References nidas::core::getSample().
|
staticinherited |
nidas::util::InvalidParameterException |
References nidas::core::Parameter::getLength(), and nidas::core::getSample().
Referenced by nidas::core::DSMSensor::fromDOMElement(), nidas::core::Project::fromDOMElement(), nidas::core::SampleTag::fromDOMElement(), nidas::core::Site::fromDOMElement(), nidas::core::Variable::fromDOMElement(), nidas::core::VariableConverter::fromDOMElement(), nidas::core::SampleIOProcessor::fromDOMElement(), and nidas::core::SampleOutputBase::fromDOMElement().
nidas::util::InvalidParameterException |
|
virtual |
nidas::util::InvalidParameterException; |
Implements nidas::core::Parameter.
References nidas::core::getSample().
|
inlinevirtual |
Implements nidas::core::Parameter.
References nidas::core::ParameterT< T >::_values.
|
inlineinherited |
References nidas::core::Parameter::_type, nidas::core::Parameter::BOOL_PARAM, nidas::core::Parameter::FLOAT_PARAM, nidas::core::floatNAN, nidas::core::Parameter::INT_PARAM, and nidas::core::Parameter::STRING_PARAM.
Referenced by nidas::dynld::StatisticsProcessor::addRequestedSampleTag(), nidas::dynld::raf::LamsSensor::fromDOMElement(), nidas::dynld::raf::TwoD_USB::init(), nidas::dynld::raf::TwoDS::init(), nidas::dynld::raf::UHSAS_Serial::init(), nidas::dynld::raf::TwoD_USB::init_parameters(), nidas::dynld::raf::TwoDS::init_parameters(), nidas::dynld::raf::UHSAS_Serial::open(), nidas::dynld::DSC_FreqCounter::readParams(), nidas::dynld::ParoSci_202BG_P::readParams(), nidas::dynld::ParoSci_202BG_T::readParams(), nidas::dynld::raf::CDP_Serial::validate(), nidas::dynld::raf::PIP_Serial::validate(), nidas::dynld::raf::SPP100_Serial::validate(), nidas::dynld::raf::SPP200_Serial::validate(), nidas::dynld::raf::SPP300_Serial::validate(), nidas::dynld::raf::SppSerial::validate(), nidas::dynld::raf::UDPArincSensor::validate(), and nidas::dynld::raf::UDPiPMSensor::validate().
|
virtualinherited |
References nidas::core::Parameter::_type, nidas::core::Parameter::BOOL_PARAM, nidas::core::Parameter::FLOAT_PARAM, nidas::core::getSample(), nidas::core::Parameter::INT_PARAM, and nidas::core::Parameter::STRING_PARAM.
Referenced by nidas::dynld::StatisticsProcessor::addRequestedSampleTag(), nidas::dynld::iss::WICORSensor::addSampleTag(), nidas::dynld::raf::UDPArincSensor::validate(), and nidas::dynld::raf::UDPiPMSensor::validate().
|
inlineinherited |
|
inline |
References nidas::core::ParameterT< T >::_values, and nidas::core::getSample().
|
inline |
References nidas::core::ParameterT< T >::_values.
References nidas::core::Parameter::_name, and nidas::core::getSample().
For parameters of length one, set its value.
References nidas::core::ParameterT< T >::_values.
|
inline |
Set ith value.
References nidas::core::ParameterT< T >::_values, and nidas::core::getSample().
|
inline |
References nidas::core::ParameterT< T >::_values, and nidas::core::getSample().
|
protectedinherited |
Referenced by nidas::core::Parameter::getName(), and nidas::core::Parameter::setName().
|
protectedinherited |
|
protected |