OpenLexocad  28.0
Topo::ConstShapeVariantHandler Class Reference

#include <Shape.h>

Inheritance diagram for Topo::ConstShapeVariantHandler:
Core::VariantHandler

Public Member Functions

Core::Variant create ()
 Creates a Variant. More...
 
bool isEqual (const Core::Variant &v1, const Core::Variant &v2, double=1E-06) const
 Compares, if two Variants, both of the same type, are equal. More...
 
int getType ()
 Returns the Variant type. More...
 
Base::String getAsString (const Core::Variant &v) const
 Returns a string representation of the value of the Variant. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Core::VariantHandler
static VariantHandlergetVariantHandler (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...
 

Member Function Documentation

◆ create()

Core::Variant Topo::ConstShapeVariantHandler::create ( )
virtual

Creates a Variant.

Implements Core::VariantHandler.

◆ getAsString()

Base::String Topo::ConstShapeVariantHandler::getAsString ( const Core::Variant v) const
virtual

Returns a string representation of the value of the Variant.

Implements Core::VariantHandler.

◆ getType()

int Topo::ConstShapeVariantHandler::getType ( )
inlinevirtual

Returns the Variant type.

Implements Core::VariantHandler.

◆ isEqual()

bool Topo::ConstShapeVariantHandler::isEqual ( const Core::Variant v1,
const Core::Variant v2,
double  tolerance = 1E-06 
) const
inlinevirtual

Compares, if two Variants, both of the same type, are equal.

Implements Core::VariantHandler.


The documentation for this class was generated from the following file: