SHAPER  9.12.0
ExchangePlugin_FormatValidator Class Reference

Validator for the imported formats checking. More...

Inheritance diagram for ExchangePlugin_FormatValidator:
Inheritance graph

Public Member Functions

virtual bool isValid (const AttributePtr &theAttribute, const std::list< std::string > &theArguments, Events_InfoMessage &theError) const
 Returns true is the file-name attribute correctly corresponds to the set of allowed formats. More...
 

Detailed Description

Validator for the imported formats checking.

The configuration file of import/export features contains the information about which formats are supported and the extension of the associated files. This validator filters out files that are out of this description.

Member Function Documentation

◆ isValid()

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

Returns true is the file-name attribute correctly corresponds to the set of allowed formats.

Implements ModelAPI_AttributeValidator.