1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: ModelAPI_AttributeValidator.h
5 // Author: Mikhail PONIKAROV
7 #ifndef ModelAPI_AttributeValidator_H
8 #define ModelAPI_AttributeValidator_H
10 #include <ModelAPI_Attribute.h>
11 #include <ModelAPI_Validator.h>
14 * Generic validator for any attribute of a feature.
16 class ModelAPI_AttributeValidator : public ModelAPI_Validator
19 //! returns true if attribute is valid
20 //! \param theAttribute the checked attribute
21 //! \param theArguments arguments of the attribute
22 virtual bool isValid(const AttributePtr& theAttribute,
23 const std::list<std::string>& theArguments) const = 0;