SHAPER  9.12.0
Model_AttributeValidator Class Reference

The geneneric validator for the attribute. More...

Inheritance diagram for Model_AttributeValidator:
Inheritance graph

Public Member Functions

virtual bool isValid (const AttributePtr &theAttribute, const std::list< std::string > &theArguments, Events_InfoMessage &theError) const

Detailed Description

The geneneric validator for the attribute.

Can be redefined for some specific attributes, but by default for each attribute this validator is used: it checks the argument and if it contains invalid expression the attribute is invalid.

Member Function Documentation

◆ isValid()

bool Model_AttributeValidator::isValid ( const AttributePtr &  theAttribute,
const std::list< std::string > &  theArguments,
Events_InfoMessage theError 
) const
theAttributethe checked attribute
theArgumentsarguments of the attribute
theErrorerros message produced by validator to the user if it fails
true if attribute is valid

Implements ModelAPI_AttributeValidator.