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 Value & operator= (const Value &)
virtual ~Value ()
virtual Type getType () const =0
virtual Value * clone () const
virtual bool isSimple () const =0
virtual bool isCompound () const =0
virtual void writeToStream (std::ostream &OutStm) const =0
bool isDoubleValue () const
const DoubleValue & asDoubleValue () const
DoubleValue & asDoubleValue ()
bool isIntegerValue () const
const IntegerValue & asIntegerValue () const
IntegerValue & asIntegerValue ()
bool isBooleanValue () const
const BooleanValue & asBooleanValue () const
BooleanValue & asBooleanValue ()
bool isStringValue () const
const StringValue & asStringValue () const
StringValue & asStringValue ()
bool isNullValue () const
const NullValue & asNullValue () const
NullValue & asNullValue ()
bool isVectorValue () const
const VectorValue & asVectorValue () const
VectorValue & asVectorValue ()
bool isMatrixValue () const
const MatrixValue & asMatrixValue () const
MatrixValue & asMatrixValue ()
bool isMapValue () const
const MapValue & asMapValue () const
MapValue & asMapValue ()
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

Default constructor

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

Copy constructor

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

Member Function Documentation

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.6.1
Creative Commons License Creative Commons By-NC-ND license