![]() |
VR-Forces Developer's Guide
|
Base class for a validator that checks visualizer definitions against a schema.
To use, derive from this class and implement isValid for a specific visualizer definition then register it with the DtElementDefinitionManager with that schema name

Public Member Functions | |
| DtVisualizerDefinitionValidator () | |
| virtual | ~DtVisualizerDefinitionValidator () |
| virtual bool | isValid (const DtVisualizerDefinition::SortedAttributeMap::iterator &attr, std::string &error)=0 |
| virtual bool | isValid (const DtVisualizerDefinition &def, std::string &error)=0 |
| makVrv::DtVisualizerDefinitionValidator::DtVisualizerDefinitionValidator | ( | ) |
CTOR.
|
virtual |
DTOR.
|
pure virtual |
Check whether the attribute of an element is valid for a schema.
| attr | An iterator to the attribute to be validated |
| error | The error information if the visual definition is not valid. |
Implemented in makVrv::DtMainModelDefinitionValidator.
|
pure virtual |
Check whether the definition is valid for a schema.
| def | The visual definition. The error information if the visual definition is not valid. |
Implemented in makVrv::DtMainModelDefinitionValidator.