Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix for #767: correct the internal history structure for nested features
[modules/shaper.git]
/
src
/
ModelAPI
/
ModelAPI_AttributeValidator.h
diff --git
a/src/ModelAPI/ModelAPI_AttributeValidator.h
b/src/ModelAPI/ModelAPI_AttributeValidator.h
index b40c145e2b9519dba1b9df5426eaac375da0bad0..1cf46a54cde7b10ccb2e8feb1586ee165d223138 100644
(file)
--- a/
src/ModelAPI/ModelAPI_AttributeValidator.h
+++ b/
src/ModelAPI/ModelAPI_AttributeValidator.h
@@
-1,21
+1,30
@@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
// File: ModelAPI_AttributeValidator.h
// File: ModelAPI_AttributeValidator.h
-// Created:
5 Aug
2014
-// Author:
Vitaly SMETANNIK
OV
+// Created:
4 Sep
2014
+// Author:
Mikhail PONIKAR
OV
#ifndef ModelAPI_AttributeValidator_H
#define ModelAPI_AttributeValidator_H
#ifndef ModelAPI_AttributeValidator_H
#define ModelAPI_AttributeValidator_H
-#include <ModelAPI
_Feature
.h>
-#include <ModelAPI_
Object
.h>
+#include <ModelAPI.h>
+#include <ModelAPI_
Attribute
.h>
#include <ModelAPI_Validator.h>
#include <ModelAPI_Validator.h>
-
-class ModelAPI_AttributeValidator: public ModelAPI_Validator
+/**
+ * Generic validator for any attribute of a feature.
+ */
+class ModelAPI_AttributeValidator : public ModelAPI_Validator
{
public:
{
public:
- virtual bool isValid(const FeaturePtr& theFeature,
+ //! returns true if attribute is valid
+ //! \param theAttribute the checked attribute
+ //! \param theArguments arguments of the attribute
+ virtual bool isValid(const AttributePtr& theAttribute,
const std::list<std::string>& theArguments,
const std::list<std::string>& theArguments,
- const ObjectPtr& theObject) const = 0;
+ std::string& theError) const = 0;
+
+ MODELAPI_EXPORT ~ModelAPI_AttributeValidator();
};
#endif
};
#endif