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
Example "PythonFeatures" plugin removed
[modules/shaper.git]
/
src
/
ModelAPI
/
ModelAPI_Plugin.h
diff --git
a/src/ModelAPI/ModelAPI_Plugin.h
b/src/ModelAPI/ModelAPI_Plugin.h
index f26cab7b0d794df8c6c0a8921f065d3e94edb707..b23bf3f1244d42e7def9a94af7afd743a97e4d9c 100644
(file)
--- a/
src/ModelAPI/ModelAPI_Plugin.h
+++ b/
src/ModelAPI/ModelAPI_Plugin.h
@@
-1,9
+1,11
@@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
// File: ModelAPI_Plugin.hxx
// Created: 31 Mar 2014
// Author: Mikhail PONIKAROV
// File: ModelAPI_Plugin.hxx
// Created: 31 Mar 2014
// Author: Mikhail PONIKAROV
-#ifndef ModelAPI_Plugin_H
eaderFile
-#define ModelAPI_Plugin_H
eaderFile
+#ifndef ModelAPI_Plugin_H
_
+#define ModelAPI_Plugin_H
_
#include "ModelAPI.h"
#include <string>
#include "ModelAPI.h"
#include <string>
@@
-18,14
+20,14
@@
class ModelAPI_Feature;
class MODELAPI_EXPORT ModelAPI_Plugin
{
class MODELAPI_EXPORT ModelAPI_Plugin
{
-public:
+
public:
/// Creates the feature object of this plugin by the feature string ID
/// Creates the feature object of this plugin by the feature string ID
- virtual std::shared_ptr<ModelAPI_Feature> createFeature(
- std::string theFeatureID, const bool theAddToDoc) = 0;
+ virtual std::shared_ptr<ModelAPI_Feature> createFeature(std::string theFeatureID) = 0;
-protected:
- /// Is needed for python wrapping by swig
- ModelAPI_Plugin() {};
+ /// To virtually destroy the fields of successors
+ virtual ~ModelAPI_Plugin()
+ {
+ }
};
#endif
};
#endif