Salome HOME
Changing ".hxx" to ".h" headers files extensions
[modules/shaper.git] / src / PartSetPlugin / PartSetPlugin.cxx
1 #include "PartSetPlugin.h"
2
3 #include <PartSetPlugin_NewPart.h>
4 #include <boost/shared_ptr.hpp>
5
6 using namespace std;
7
8 /// Standard method of the plugin that creates a specific feature instance by the feature kind
9 PARTSETPLUGIN_EXPORT boost::shared_ptr<ModelAPI_Feature> CreateFeature(const string& theFeatureKind) 
10 {
11   if (theFeatureKind == "new_part") {
12     return boost::shared_ptr<ModelAPI_Feature>(new PartSetPlugin_NewPart());
13   }
14   // feature of such kind is not found
15   return boost::shared_ptr<ModelAPI_Feature>();
16 }