SHAPER  9.12.0
FeaturesPlugin_ValidatorBooleanFuseArguments Class Reference

Validates that boolean operation have enough arguments. More...

Inheritance diagram for FeaturesPlugin_ValidatorBooleanFuseArguments:
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 feature and/or attributes are valid. More...
 
virtual bool isNotObligatory (std::string theFeature, std::string theAttribute)
 

Detailed Description

Validates that boolean operation have enough arguments.

Member Function Documentation

◆ isValid()

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

Returns true if feature and/or attributes are valid.

Parameters
[in]theFeaturethe validated feature.
[in]theArgumentsthe arguments in the configuration file for this validator.
[out]theErrorerror message.
Returns
true if feature is valid.

Implements ModelAPI_FeatureValidator.

◆ isNotObligatory()

bool FeaturesPlugin_ValidatorBooleanFuseArguments::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.