The value of a parameter.
More...
#include <ParameterValue.h>
The value of a parameter.
ParameterValue represent a value of a parameter. It can contain a single value, but also a vector of ParameterValues or a ParameterRecord.
It contains various functions to obtain the value in the format desired.
◆ ParameterValue() [1/2]
| dp3::common::ParameterValue::ParameterValue |
( |
| ) |
|
|
inline |
Default constructor uses empty string.
◆ ParameterValue() [2/2]
| dp3::common::ParameterValue::ParameterValue |
( |
const std::string & |
value, |
|
|
bool |
trim = true |
|
) |
| |
|
explicit |
Create from the given string. Optionally left and right whitespace will be removed.
◆ expand()
Expand the string using StringUtil::expandedArrayString.
◆ get()
| const std::string& dp3::common::ParameterValue::get |
( |
| ) |
const |
|
inline |
◆ getBool()
| bool dp3::common::ParameterValue::getBool |
( |
| ) |
const |
|
inline |
Get the parameter value in the given type.
◆ getBoolVector()
| std::vector<bool> dp3::common::ParameterValue::getBoolVector |
( |
| ) |
const |
◆ getDouble()
| double dp3::common::ParameterValue::getDouble |
( |
| ) |
const |
|
inline |
◆ getDoubleVector()
| std::vector<double> dp3::common::ParameterValue::getDoubleVector |
( |
| ) |
const |
◆ getFloat()
| float dp3::common::ParameterValue::getFloat |
( |
| ) |
const |
|
inline |
◆ getFloatVector()
| std::vector<float> dp3::common::ParameterValue::getFloatVector |
( |
| ) |
const |
◆ getInt()
| int dp3::common::ParameterValue::getInt |
( |
| ) |
const |
|
inline |
◆ getInt16()
| int16_t dp3::common::ParameterValue::getInt16 |
( |
| ) |
const |
|
inline |
◆ getInt16Vector()
| std::vector<int16_t> dp3::common::ParameterValue::getInt16Vector |
( |
| ) |
const |
◆ getInt32()
| int32_t dp3::common::ParameterValue::getInt32 |
( |
| ) |
const |
|
inline |
◆ getInt32Vector()
| std::vector<int32_t> dp3::common::ParameterValue::getInt32Vector |
( |
| ) |
const |
◆ getInt64()
| int64_t dp3::common::ParameterValue::getInt64 |
( |
| ) |
const |
|
inline |
◆ getInt64Vector()
| std::vector<int64_t> dp3::common::ParameterValue::getInt64Vector |
( |
| ) |
const |
◆ getIntVector()
| std::vector<int> dp3::common::ParameterValue::getIntVector |
( |
| ) |
const |
◆ getRecord()
◆ getString()
| std::string dp3::common::ParameterValue::getString |
( |
| ) |
const |
◆ getStringVector()
| std::vector<std::string> dp3::common::ParameterValue::getStringVector |
( |
| ) |
const |
◆ getTime()
| time_t dp3::common::ParameterValue::getTime |
( |
| ) |
const |
|
inline |
◆ getTimeVector()
| std::vector<time_t> dp3::common::ParameterValue::getTimeVector |
( |
| ) |
const |
◆ getUint()
| unsigned int dp3::common::ParameterValue::getUint |
( |
| ) |
const |
|
inline |
◆ getUint16()
| uint16_t dp3::common::ParameterValue::getUint16 |
( |
| ) |
const |
|
inline |
◆ getUint16Vector()
| std::vector<uint16_t> dp3::common::ParameterValue::getUint16Vector |
( |
| ) |
const |
◆ getUint32()
| int32_t dp3::common::ParameterValue::getUint32 |
( |
| ) |
const |
|
inline |
◆ getUint32Vector()
| std::vector<uint32_t> dp3::common::ParameterValue::getUint32Vector |
( |
| ) |
const |
◆ getUint64()
| uint64_t dp3::common::ParameterValue::getUint64 |
( |
| ) |
const |
|
inline |
◆ getUint64Vector()
| std::vector<uint64_t> dp3::common::ParameterValue::getUint64Vector |
( |
| ) |
const |
◆ getUintVector()
| std::vector<unsigned int> dp3::common::ParameterValue::getUintVector |
( |
| ) |
const |
◆ getVector()
| std::vector<ParameterValue> dp3::common::ParameterValue::getVector |
( |
| ) |
const |
Get the parameter value as a vector of ParameterValues.
◆ isRecord()
| bool dp3::common::ParameterValue::isRecord |
( |
| ) |
const |
|
inline |
◆ isVector()
| bool dp3::common::ParameterValue::isVector |
( |
| ) |
const |
|
inline |
◆ operator bool()
| dp3::common::ParameterValue::operator bool |
( |
| ) |
const |
|
inline |
Convert the parameter value to the given type using conversion operators.
◆ operator double()
| dp3::common::ParameterValue::operator double |
( |
| ) |
const |
|
inline |
◆ operator float()
| dp3::common::ParameterValue::operator float |
( |
| ) |
const |
|
inline |
◆ operator int()
| dp3::common::ParameterValue::operator int |
( |
| ) |
const |
|
inline |
◆ operator std::string()
| dp3::common::ParameterValue::operator std::string |
( |
| ) |
const |
|
inline |
◆ operator std::vector< bool >()
| dp3::common::ParameterValue::operator std::vector< bool > |
( |
| ) |
const |
|
inline |
◆ operator std::vector< double >()
| dp3::common::ParameterValue::operator std::vector< double > |
( |
| ) |
const |
|
inline |
◆ operator std::vector< float >()
| dp3::common::ParameterValue::operator std::vector< float > |
( |
| ) |
const |
|
inline |
◆ operator std::vector< int >()
| dp3::common::ParameterValue::operator std::vector< int > |
( |
| ) |
const |
|
inline |
◆ operator std::vector< std::string >()
| dp3::common::ParameterValue::operator std::vector< std::string > |
( |
| ) |
const |
|
inline |
◆ operator std::vector< time_t >()
| dp3::common::ParameterValue::operator std::vector< time_t > |
( |
| ) |
const |
|
inline |
◆ operator std::vector< unsigned int >()
| dp3::common::ParameterValue::operator std::vector< unsigned int > |
( |
| ) |
const |
|
inline |
◆ operator time_t()
| dp3::common::ParameterValue::operator time_t |
( |
| ) |
const |
|
inline |
◆ operator unsigned int()
| dp3::common::ParameterValue::operator unsigned int |
( |
| ) |
const |
|
inline |
◆ StringToTime_t()
| static time_t dp3::common::ParameterValue::StringToTime_t |
( |
const std::string & |
aString | ) |
|
|
static |
Convert a string to a time.
◆ operator<<
| std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const ParameterValue & |
pval |
|
) |
| |
|
friend |
Put or get to/from ostream.
◆ operator>>
The documentation for this class was generated from the following file: