SHAPER  9.12.0
SketchPlugin_DifferentReferenceValidator Class Reference

Validator for attributes of a sketch feature. More...

Inheritance diagram for SketchPlugin_DifferentReferenceValidator:
Inheritance graph

Public Member Functions

virtual bool isValid (const AttributePtr &theAttribute, const std::list< std::string > &theArguments, Events_InfoMessage &theError) const
 returns true if attribute is valid More...
 

Detailed Description

Validator for attributes of a sketch feature.

It checks that at least one of specified attributes refers to another feature in respect to each other.

Member Function Documentation

◆ isValid()

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

returns true if attribute is valid

Parameters
theAttributethe checked attribute
theArgumentsarguments of the attribute
theErrorerror message

Implements ModelAPI_AttributeValidator.