SHAPER  9.12.0
GeomValidators_Positive Class Reference

Validates that the double attribute is greater than 1.e-5. More...

Inheritance diagram for GeomValidators_Positive:
Inheritance graph

Public Member Functions

 GeomValidators_Positive ()
 Constructor for only one instance per application: will register the validator. More...
 
virtual GEOMVALIDATORS_EXPORT bool isValid (const AttributePtr &theAttribute, const std::list< std::string > &theArguments, Events_InfoMessage &theError) const
 returns true if attribute is valid More...
 

Detailed Description

Validates that the double attribute is greater than 1.e-5.

Constructor & Destructor Documentation

◆ GeomValidators_Positive()

GeomValidators_Positive::GeomValidators_Positive ( )

Constructor for only one instance per application: will register the validator.

Member Function Documentation

◆ isValid()

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

returns true if attribute is valid

Parameters
[in]theAttributethe checked attribute
[in]theArgumentsarguments of the attribute
[out]theErrorerror message.

Implements ModelAPI_AttributeValidator.