36 #include <OpenMS/OpenMSConfig.h>
128 operator std::
string() const;
135 operator std::vector<std::
string>() const;
142 operator std::vector<
int>() const;
149 operator std::vector<
double>() const;
158 operator
long double() const;
167 operator
double() const;
176 operator
float() const;
185 operator
short int() const;
194 operator
unsigned short int() const;
204 operator
int() const;
213 operator
unsigned int() const;
222 operator
long int() const;
231 operator
unsigned long int() const;
240 operator
long long() const;
249 operator
unsigned long long() const;
266 const
char* toChar() const;
274 std::
string toString(
bool full_precision = true) const;
281 std::vector<std::
string> toStringVector() const;
288 std::vector<
int> toIntVector() const;
295 std::vector<
double> toDoubleVector() const;
352 return value_type_ == EMPTY_VALUE;
381 std::vector<std::string>* str_list_;
382 std::vector<int>* int_list_;
383 std::vector<double>* dou_list_;
394 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:55
ValueType value_type_
Type of the currently stored value.
Definition: ParamValue.h:373
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:350
friend bool operator>(const ParamValue &, const ParamValue &)
Greater than comparator (for vectors we use the size)
ValueType
Supported types for ParamValue.
Definition: ParamValue.h:64
@ DOUBLE_VALUE
double value
Definition: ParamValue.h:67
@ INT_LIST
integer vector
Definition: ParamValue.h:69
@ STRING_VALUE
string value
Definition: ParamValue.h:65
@ STRING_LIST
string vector
Definition: ParamValue.h:68
@ INT_VALUE
integer value
Definition: ParamValue.h:66
@ DOUBLE_LIST
double vector
Definition: ParamValue.h:70
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:60
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
const std::string & toString(const DriftTimeUnit value)