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
Extrusion fix
[modules/shaper.git]
/
src
/
ModelAPI
/
ModelAPI_AttributeValidator.h
diff --git
a/src/ModelAPI/ModelAPI_AttributeValidator.h
b/src/ModelAPI/ModelAPI_AttributeValidator.h
index aa0680cbb5311c5939590d570595af06697c7765..142c91c233689bb32a729ca6e232263c3b8b2a9f 100644
(file)
--- a/
src/ModelAPI/ModelAPI_AttributeValidator.h
+++ b/
src/ModelAPI/ModelAPI_AttributeValidator.h
@@
-1,3
+1,5
@@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
// File: ModelAPI_AttributeValidator.h
// Created: 4 Sep 2014
// Author: Mikhail PONIKAROV
// File: ModelAPI_AttributeValidator.h
// Created: 4 Sep 2014
// Author: Mikhail PONIKAROV
@@
-5,6
+7,7
@@
#ifndef ModelAPI_AttributeValidator_H
#define ModelAPI_AttributeValidator_H
#ifndef ModelAPI_AttributeValidator_H
#define ModelAPI_AttributeValidator_H
+#include <ModelAPI.h>
#include <ModelAPI_Attribute.h>
#include <ModelAPI_Validator.h>
#include <ModelAPI_Attribute.h>
#include <ModelAPI_Validator.h>
@@
-14,11
+17,15
@@
class ModelAPI_AttributeValidator : public ModelAPI_Validator
{
public:
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 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,
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_EXPORT ~ModelAPI_AttributeValidator();
};
#endif
};
#endif