1 #include "PartSetPlugin.h"
3 #include <PartSetPlugin_NewPart.h>
4 #include <boost/shared_ptr.hpp>
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)
11 if (theFeatureKind == "new_part") {
12 return boost::shared_ptr<ModelAPI_Feature>(new PartSetPlugin_NewPart());
14 // feature of such kind is not found
15 return boost::shared_ptr<ModelAPI_Feature>();