OpenLexocad
28.0
|
#include <Variant.h>
Public Member Functions | |
virtual Core::Variant | create ()=0 |
Creates a Variant. More... | |
virtual bool | isEqual (const Core::Variant &v1, const Core::Variant &v2, double tolerance=1E-06) const =0 |
Compares, if two Variants, both of the same type, are equal. More... | |
virtual int | getType ()=0 |
Returns the Variant type. More... | |
virtual Base::String | getAsString (const Core::Variant &v) const =0 |
Returns a string representation of the value of the Variant. More... | |
Static Public Member Functions | |
static VariantHandler * | getVariantHandler (int type) |
Returns the VariantHandler for this type. More... | |
static bool | registerVariantHandler (int type, VariantHandler *vhnd) |
Registers a VariantHandler for a given type. returns true, if successful, false if a handler for this type exists already. More... | |
|
pure virtual |
Creates a Variant.
Implemented in Topo::ConstShapeVariantHandler, and Topo::ShapeVariantHandler.
|
pure virtual |
Returns a string representation of the value of the Variant.
Implemented in Topo::ConstShapeVariantHandler, and Topo::ShapeVariantHandler.
|
pure virtual |
Returns the Variant type.
Implemented in Topo::ConstShapeVariantHandler, and Topo::ShapeVariantHandler.
|
static |
Returns the VariantHandler for this type.
|
pure virtual |
Compares, if two Variants, both of the same type, are equal.
Implemented in Topo::ConstShapeVariantHandler, and Topo::ShapeVariantHandler.
|
static |
Registers a VariantHandler for a given type. returns true, if successful, false if a handler for this type exists already.