SHAPER  9.12.0
GeomValidators_MinObjectsSelected Class Reference

Validates number of objects in selection list. More...

Inheritance diagram for GeomValidators_MinObjectsSelected:
Inheritance graph

Public Member Functions

virtual GEOMVALIDATORS_EXPORT 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

Validates number of objects in selection list.

Member Function Documentation

◆ isValid()

bool GeomValidators_MinObjectsSelected::isValid ( const std::shared_ptr< ModelAPI_Feature > &  theFeature,
const std::list< std::string > &  theArguments,
Events_InfoMessage theError 
) const
true if selection list has enough objects.
[in]theFeaturethe validated feature.
[in]theArgumentsthe arguments in the configuration file for this validator.
[out]theErrorerror message.
true if feature is valid.

Implements ModelAPI_FeatureValidator.

◆ isNotObligatory()

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