41 #include <OpenMS/OpenMSConfig.h>
80 static const std::string NamesOfDataType[SIZE_OF_DATATYPE];
155 operator std::
string() const;
185 operator
long double() const;
194 operator
double() const;
203 operator
float() const;
212 operator
short int() const;
221 operator
unsigned short int() const;
231 operator
int() const;
240 operator
unsigned int() const;
249 operator
long int() const;
258 operator
unsigned long int() const;
267 operator
long long() const;
276 operator
unsigned long long() const;
293 const
char* toChar() const;
390 return value_type_ == EMPTY_VALUE;
Class to hold strings, numeric values, lists of strings and lists of numeric values.
Definition: DataValue.h:59
static const DataValue EMPTY
Empty data value for comparisons.
Definition: DataValue.h:64
friend std::ostream & operator<<(std::ostream &, const DataValue &)
output stream operator
void setUnitType(const UnitType &u)
Definition: DataValue.h:403
UnitType
Supported types for DataValue.
Definition: DataValue.h:84
@ MS_ONTOLOGY
ms.ontology MS
Definition: DataValue.h:86
@ UNIT_ONTOLOGY
unit.ontology UO
Definition: DataValue.h:85
int32_t unit_
The unit of the data value (if it has one) using UO identifier, otherwise -1.
Definition: DataValue.h:446
DataValue(const DataValue &)
Copy constructor.
friend bool operator>(const DataValue &, const DataValue &)
Greater than comparator (for lists we use the size)
DataType
Supported types for DataValue.
Definition: DataValue.h:68
@ DOUBLE_VALUE
double value
Definition: DataValue.h:71
@ EMPTY_VALUE
empty
Definition: DataValue.h:75
@ INT_LIST
integer list
Definition: DataValue.h:73
@ STRING_VALUE
string value
Definition: DataValue.h:69
@ STRING_LIST
string list
Definition: DataValue.h:72
@ INT_VALUE
integer value
Definition: DataValue.h:70
@ DOUBLE_LIST
double list
Definition: DataValue.h:74
friend bool operator<(const DataValue &, const DataValue &)
Smaller than comparator (for lists we use the size)
void setUnit(const int32_t &unit)
Sets the unit to the given String.
const int32_t & getUnit() const
Return the unit associated to this DataValue.
friend bool operator==(const DataValue &, const DataValue &)
Equality comparator.
UnitType unit_type_
Type of the currently stored unit.
Definition: DataValue.h:443
UnitType getUnitType() const
returns the type of value stored
Definition: DataValue.h:398
void clear_() noexcept
Clears the current state of the DataValue and release every used memory.
bool hasUnit() const
Check if the value has a unit.
Definition: DataValue.h:409
DataValue(DataValue &&) noexcept
Move constructor.
bool isEmpty() const
Test if the value is empty.
Definition: DataValue.h:388
DataType value_type_
Type of the currently stored value.
Definition: DataValue.h:440
friend bool operator!=(const DataValue &, const DataValue &)
Equality comparator.
Class to hold strings, numeric values, vectors of strings and vectors of numeric values using the stl...
Definition: ParamValue.h:55
A more convenient string class.
Definition: String.h:60
ptrdiff_t SignedSize
Signed Size type e.g. used as pointer difference.
Definition: Types.h:134
std::vector< Int > IntList
Vector of signed integers.
Definition: ListUtils.h:55
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:70
std::vector< double > DoubleList
Vector of double precision real types.
Definition: ListUtils.h:62
static QString toQString(const String &this_s)
Definition: StringUtils.h:222
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:48
const std::string & toString(const DriftTimeUnit value)