SHAPER  9.12.0
FeaturesPlugin_ValidatorPipeLocationsNumber Class Reference

Validator for the pipe locations. More...

Inheritance diagram for FeaturesPlugin_ValidatorPipeLocationsNumber:
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
 
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 pipe locations.

Member Function Documentation

◆ isValid()

bool FeaturesPlugin_ValidatorPipeLocationsNumber::isValid ( const std::shared_ptr< ModelAPI_Feature > &  theFeature,
const std::list< std::string > &  theArguments,
Events_InfoMessage theError 
) const
virtual
Returns
true if number of selected locations the same as number of selected bases, or empty.
Parameters
theFeaturethe checked feature
theArgumentsarguments of the feature (not used)
theErrorerror message

Implements ModelAPI_FeatureValidator.

◆ isNotObligatory()

bool ModelAPI_FeatureValidator::isNotObligatory ( std::string  theFeature,
std::string  theAttribute 
)
virtualinherited