36 #include <OpenMS/OpenMSConfig.h>
126 operator std::
string() const;
133 operator std::vector<std::
string>() const;
140 operator std::vector<
int>() const;
147 operator std::vector<
double>() const;
156 operator
long double() const;
165 operator
double() const;
174 operator
float() const;
183 operator
short int() const;
192 operator
unsigned short int() const;
202 operator
int() const;
211 operator
unsigned int() const;
220 operator
long int() const;
229 operator
unsigned long int() const;
238 operator
long long() const;
247 operator
unsigned long long() const;
264 const
char* toChar() const;
272 std::
string toString(
bool full_precision = true) const;
279 std::vector<std::
string> toStringVector() const;
286 std::vector<
int> toIntVector() const;
293 std::vector<
double> toDoubleVector() const;
350 return value_type_ == EMPTY_VALUE;
379 std::vector<std::string>* str_list_;
380 std::vector<int>* int_list_;
381 std::vector<double>* dou_list_;
392 static std::
string doubleToString(
double value,
bool full_precision = true);
Class to hold strings, numeric values, vectors of strings and vectors of numeric values using the stl...
Definition: ParamValue.h:53
ValueType value_type_
Type of the currently stored value.
Definition: ParamValue.h:371
friend bool operator==(const ParamValue &, const ParamValue &)
Equality comparator.
ParamValue(const ParamValue &)
Copy constructor.
friend std::ostream & operator<<(std::ostream &, const ParamValue &)
output stream operator
void clear_() noexcept
Clears the current state of the ParamValue and release every used memory.
friend bool operator!=(const ParamValue &, const ParamValue &)
Equality comparator.
bool isEmpty() const
Test if the value is empty.
Definition: ParamValue.h:348
friend bool operator>(const ParamValue &, const ParamValue &)
Greater than comparator (for vectors we use the size)
ValueType
Supported types for ParamValue.
Definition: ParamValue.h:62
@ DOUBLE_VALUE
double value
Definition: ParamValue.h:65
@ INT_LIST
integer vector
Definition: ParamValue.h:67
@ STRING_VALUE
string value
Definition: ParamValue.h:63
@ STRING_LIST
string vector
Definition: ParamValue.h:66
@ INT_VALUE
integer value
Definition: ParamValue.h:64
@ DOUBLE_LIST
double vector
Definition: ParamValue.h:68
friend bool operator<(const ParamValue &, const ParamValue &)
Smaller than comparator (for vectors we use the size)
ParamValue(ParamValue &&) noexcept
Move constructor.
static const ParamValue EMPTY
Empty data value for comparisons.
Definition: ParamValue.h:58
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
const std::string & toString(const DriftTimeUnit value)