#include <core/Value.hpp>
◆ Type
Enumerator |
---|
NONE | |
BOOLEAN | |
INTEGER | |
DOUBLE | |
STRING | |
VECTOR | |
MATRIX | |
MAP | |
TREE | |
NULLL | |
◆ Value() [1/3]
openfluid::core::Value::Value |
( |
| ) |
|
|
default |
◆ Value() [2/3]
openfluid::core::Value::Value |
( |
const Value & |
| ) |
|
|
default |
◆ Value() [3/3]
openfluid::core::Value::Value |
( |
Value && |
| ) |
|
|
default |
◆ ~Value()
virtual openfluid::core::Value::~Value |
( |
| ) |
|
|
virtualdefault |
◆ asBooleanValue() [1/2]
◆ asBooleanValue() [2/2]
const BooleanValue& openfluid::core::Value::asBooleanValue |
( |
| ) |
const |
◆ asDoubleValue() [1/2]
◆ asDoubleValue() [2/2]
const DoubleValue& openfluid::core::Value::asDoubleValue |
( |
| ) |
const |
◆ asIntegerValue() [1/2]
◆ asIntegerValue() [2/2]
const IntegerValue& openfluid::core::Value::asIntegerValue |
( |
| ) |
const |
◆ asMapValue() [1/2]
MapValue& openfluid::core::Value::asMapValue |
( |
| ) |
|
◆ asMapValue() [2/2]
const MapValue& openfluid::core::Value::asMapValue |
( |
| ) |
const |
Returns the value as a constant MapValue if the value is of the MapValue type
- Returns
- the value as a constant MapValue
- Exceptions
-
◆ asMatrixValue() [1/2]
◆ asMatrixValue() [2/2]
const MatrixValue& openfluid::core::Value::asMatrixValue |
( |
| ) |
const |
◆ asNullValue() [1/2]
NullValue& openfluid::core::Value::asNullValue |
( |
| ) |
|
◆ asNullValue() [2/2]
const NullValue& openfluid::core::Value::asNullValue |
( |
| ) |
const |
◆ asStringValue() [1/2]
◆ asStringValue() [2/2]
const StringValue& openfluid::core::Value::asStringValue |
( |
| ) |
const |
◆ asTreeValue() [1/2]
TreeValue& openfluid::core::Value::asTreeValue |
( |
| ) |
|
◆ asTreeValue() [2/2]
const TreeValue& openfluid::core::Value::asTreeValue |
( |
| ) |
const |
◆ asVectorValue() [1/2]
◆ asVectorValue() [2/2]
const VectorValue& openfluid::core::Value::asVectorValue |
( |
| ) |
const |
◆ clone()
virtual Value* openfluid::core::Value::clone |
( |
| ) |
const |
|
inlinevirtual |
◆ convert()
virtual bool openfluid::core::Value::convert |
( |
Value & |
| ) |
const |
|
inlinevirtual |
◆ getStringFromValueType()
static std::string openfluid::core::Value::getStringFromValueType |
( |
const Value::Type |
ValueType | ) |
|
|
static |
Returns the name of the type corresponding to the given type
- Parameters
-
[in] | ValueType | The value type |
- Returns
- the type name
◆ getType()
virtual Type openfluid::core::Value::getType |
( |
| ) |
const |
|
pure virtual |
◆ getValueTypeFromString()
static bool openfluid::core::Value::getValueTypeFromString |
( |
const std::string & |
ValueTypeString, |
|
|
Value::Type & |
ValueType |
|
) |
| |
|
static |
Gets the value type ciorresponding to the name of the type
- Parameters
-
[in] | ValueTypeString | The type name as a string |
[out] | ValueType | The value type |
- Returns
- false if the type name does not exist or is misspelled, true otherwise
◆ isBooleanValue()
bool openfluid::core::Value::isBooleanValue |
( |
| ) |
const |
|
inline |
◆ isCompound()
virtual bool openfluid::core::Value::isCompound |
( |
| ) |
const |
|
pure virtual |
◆ isDoubleValue()
bool openfluid::core::Value::isDoubleValue |
( |
| ) |
const |
|
inline |
◆ isIntegerValue()
bool openfluid::core::Value::isIntegerValue |
( |
| ) |
const |
|
inline |
◆ isMapValue()
bool openfluid::core::Value::isMapValue |
( |
| ) |
const |
|
inline |
◆ isMatrixValue()
bool openfluid::core::Value::isMatrixValue |
( |
| ) |
const |
|
inline |
◆ isNullValue()
bool openfluid::core::Value::isNullValue |
( |
| ) |
const |
|
inline |
◆ isSimple()
virtual bool openfluid::core::Value::isSimple |
( |
| ) |
const |
|
pure virtual |
◆ isStringValue()
bool openfluid::core::Value::isStringValue |
( |
| ) |
const |
|
inline |
◆ isTreeValue()
bool openfluid::core::Value::isTreeValue |
( |
| ) |
const |
|
inline |
◆ isVectorValue()
bool openfluid::core::Value::isVectorValue |
( |
| ) |
const |
|
inline |
◆ operator=() [1/2]
virtual Value& openfluid::core::Value::operator= |
( |
const Value & |
| ) |
|
|
inlinevirtual |
◆ operator=() [2/2]
virtual Value& openfluid::core::Value::operator= |
( |
Value && |
| ) |
|
|
inlinevirtual |
◆ toString()
std::string openfluid::core::Value::toString |
( |
| ) |
const |
Returns the value as a string
◆ writeQuotedToStream()
virtual void openfluid::core::Value::writeQuotedToStream |
( |
std::ostream & |
OutStm | ) |
const |
|
pure virtual |
◆ writeToStream()
virtual void openfluid::core::Value::writeToStream |
( |
std::ostream & |
OutStm | ) |
const |
|
pure virtual |
◆ operator<<
std::ostream& operator<< |
( |
std::ostream & |
OutStm, |
|
|
const Value & |
Val |
|
) |
| |
|
friend |
The documentation for this class was generated from the following file: