Public Types | Public Member Functions | Static Public Member Functions | Friends

openfluid::core::Value Class Reference

Inheritance diagram for openfluid::core::Value:
Inheritance graph
[legend]

List of all members.

Public Types

enum  Type {
  NONE, BOOLEAN, INTEGER, DOUBLE,
  STRING, VECTOR, MATRIX, MAP,
  NULLL
}

Public Member Functions

 Value ()
 Value (const Value &)
virtual Valueoperator= (const Value &)
virtual ~Value ()
virtual Type getType () const =0
virtual Valueclone () const
virtual bool isSimple () const =0
virtual bool isCompound () const =0
virtual void writeToStream (std::ostream &OutStm) const =0
bool isDoubleValue () const
const DoubleValueasDoubleValue () const
DoubleValueasDoubleValue ()
bool isIntegerValue () const
const IntegerValueasIntegerValue () const
IntegerValueasIntegerValue ()
bool isBooleanValue () const
const BooleanValueasBooleanValue () const
BooleanValueasBooleanValue ()
bool isStringValue () const
const StringValueasStringValue () const
StringValueasStringValue ()
bool isNullValue () const
const NullValueasNullValue () const
NullValueasNullValue ()
bool isVectorValue () const
const VectorValueasVectorValue () const
VectorValueasVectorValue ()
bool isMatrixValue () const
const MatrixValueasMatrixValue () const
MatrixValueasMatrixValue ()
bool isMapValue () const
const MapValueasMapValue () const
MapValueasMapValue ()
std::string toString () const

Static Public Member Functions

static bool getValueTypeFromString (const std::string ValueTypeString, Value::Type &ValueType)
static std::string getStringFromValueType (const Value::Type ValueType)

Friends

std::ostream & operator<< (std::ostream &OutStm, const Value &Val)

Member Enumeration Documentation

Enumerator:
NONE 
BOOLEAN 
INTEGER 
DOUBLE 
STRING 
VECTOR 
MATRIX 
MAP 
NULLL 

Constructor & Destructor Documentation

openfluid::core::Value::Value ( ) [inline]

Default constructor

openfluid::core::Value::Value ( const Value ) [inline]

Copy constructor

virtual openfluid::core::Value::~Value ( ) [inline, virtual]

Member Function Documentation

const BooleanValue& openfluid::core::Value::asBooleanValue ( ) const
BooleanValue& openfluid::core::Value::asBooleanValue ( )
DoubleValue& openfluid::core::Value::asDoubleValue ( )
const DoubleValue& openfluid::core::Value::asDoubleValue ( ) const
const IntegerValue& openfluid::core::Value::asIntegerValue ( ) const
IntegerValue& openfluid::core::Value::asIntegerValue ( )
const MapValue& openfluid::core::Value::asMapValue ( ) const
MapValue& openfluid::core::Value::asMapValue ( )
const MatrixValue& openfluid::core::Value::asMatrixValue ( ) const
MatrixValue& openfluid::core::Value::asMatrixValue ( )
const NullValue& openfluid::core::Value::asNullValue ( ) const
NullValue& openfluid::core::Value::asNullValue ( )
const StringValue& openfluid::core::Value::asStringValue ( ) const
StringValue& openfluid::core::Value::asStringValue ( )
const VectorValue& openfluid::core::Value::asVectorValue ( ) const
VectorValue& openfluid::core::Value::asVectorValue ( )
virtual Value* openfluid::core::Value::clone ( ) const [inline, virtual]
static std::string openfluid::core::Value::getStringFromValueType ( const Value::Type  ValueType) [static]
virtual Type openfluid::core::Value::getType ( ) const [pure virtual]
static bool openfluid::core::Value::getValueTypeFromString ( const std::string  ValueTypeString,
Value::Type ValueType 
) [static]
bool openfluid::core::Value::isBooleanValue ( ) const [inline]

Returns true if the Value is a BooleanValue

virtual bool openfluid::core::Value::isCompound ( ) const [inline, pure virtual]
bool openfluid::core::Value::isDoubleValue ( ) const [inline]

Returns true if the Value is a DoubleValue

bool openfluid::core::Value::isIntegerValue ( ) const [inline]

Returns true if the Value is an IntegerValue

bool openfluid::core::Value::isMapValue ( ) const [inline]

Returns true if the Value is a MapValue

bool openfluid::core::Value::isMatrixValue ( ) const [inline]

Returns true if the Value is a MatrixValue

bool openfluid::core::Value::isNullValue ( ) const [inline]

Returns true if the Value is a NullValue

virtual bool openfluid::core::Value::isSimple ( ) const [inline, pure virtual]
bool openfluid::core::Value::isStringValue ( ) const [inline]

Returns true if the Value is a StringValue

bool openfluid::core::Value::isVectorValue ( ) const [inline]

Returns true if the Value is a VectorValue

virtual Value& openfluid::core::Value::operator= ( const Value ) [inline, virtual]
std::string openfluid::core::Value::toString ( ) const

Returns the contained value as a string

virtual void openfluid::core::Value::writeToStream ( std::ostream &  OutStm) const [pure virtual]

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  OutStm,
const Value Val 
) [friend]

Generated using Doxygen 1.7.3
Creative Commons License Creative Commons By-NC-ND license