#ifndef ModelAPI_AttributeValidator_H
#define ModelAPI_AttributeValidator_H
+#include <ModelAPI.h>
#include <ModelAPI_Attribute.h>
#include <ModelAPI_Validator.h>
class ModelAPI_AttributeValidator : public ModelAPI_Validator
{
public:
- //! returns true if attribute is valid
+ //! \returns true if attribute is valid
//! \param theAttribute the checked attribute
//! \param theArguments arguments of the attribute
+ //! \param theError the error string message if validation fails
virtual bool isValid(const AttributePtr& theAttribute,
- const std::list<std::string>& theArguments) const = 0;
+ const std::list<std::string>& theArguments,
+ std::string& theError) const = 0;
- ~ModelAPI_AttributeValidator();
+ MODELAPI_EXPORT ~ModelAPI_AttributeValidator();
};
#endif