SHAPER  9.12.0
SketchPlugin_SolverErrorValidator Class Reference

Validator for the solver error. More...

Inheritance diagram for SketchPlugin_SolverErrorValidator:
Inheritance graph

Public Member Functions

virtual bool isValid (const std::shared_ptr< ModelAPI_Feature > &theFeature, const std::list< std::string > &theArguments, Events_InfoMessage &theError) const
 returns true if there are no solver errors More...
 
virtual bool isNotObligatory (std::string theFeature, std::string theAttribute)
 Returns true if the attribute in feature is not obligatory for the feature execution. More...
 

Detailed Description

Validator for the solver error.

Simply checks that solver error attribute is empty. Returns the attribute value as an error.

Member Function Documentation

◆ isValid()

bool SketchPlugin_SolverErrorValidator::isValid ( const std::shared_ptr< ModelAPI_Feature > &  theFeature,
const std::list< std::string > &  theArguments,
Events_InfoMessage theError 
) const
virtual

returns true if there are no solver errors

Parameters
theFeaturethe checked feature
theArgumentsarguments of the feature (not used)
theErrorerror message

Implements ModelAPI_FeatureValidator.

◆ isNotObligatory()

bool SketchPlugin_SolverErrorValidator::isNotObligatory ( std::string  theFeature,
std::string  theAttribute 
)
virtual

Returns true if the attribute in feature is not obligatory for the feature execution.

Reimplemented from ModelAPI_FeatureValidator.