X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FExchangePlugin%2FExchangePlugin_Plugin.cpp;h=fe1fdcb449bfd2bfeca49669594b057c39f314fc;hb=4d9c9b53936a9235a30588d1811d91efef81e1f2;hp=34c3c1b61a3f923ba84384e37867f86c1e235717;hpb=97917d3698f5a2f7fc9596e7c755ff8f6751e373;p=modules%2Fshaper.git diff --git a/src/ExchangePlugin/ExchangePlugin_Plugin.cpp b/src/ExchangePlugin/ExchangePlugin_Plugin.cpp index 34c3c1b61..fe1fdcb44 100644 --- a/src/ExchangePlugin/ExchangePlugin_Plugin.cpp +++ b/src/ExchangePlugin/ExchangePlugin_Plugin.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2019 CEA/DEN, EDF R&D +// Copyright (C) 2014-2022 CEA/DEN, EDF R&D // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -21,6 +21,9 @@ #include #include #include +#include +#include +#include #include #include @@ -43,18 +46,35 @@ ExchangePlugin_Plugin::ExchangePlugin_Plugin() new ExchangePlugin_ImportFormatValidator); aFactory->registerValidator("ExchangePlugin_ExportFormat", new ExchangePlugin_ExportFormatValidator); + aFactory->registerValidator("ExchangePlugin_InHistory", + new ExchangePlugin_InHistoryValidator); } FeaturePtr ExchangePlugin_Plugin::createFeature(std::string theFeatureID) { if (theFeatureID == ExchangePlugin_ImportFeature::ID()) { return FeaturePtr(new ExchangePlugin_ImportFeature); + } else + if (theFeatureID == ExchangePlugin_Import_ImageFeature::ID()) { + return FeaturePtr(new ExchangePlugin_Import_ImageFeature); } else if (theFeatureID == ExchangePlugin_ExportFeature::ID()) { return FeaturePtr(new ExchangePlugin_ExportFeature); } else + if (theFeatureID == ExchangePlugin_ImportPart::ID()) { + return FeaturePtr(new ExchangePlugin_ImportPart); + } else + if (theFeatureID == ExchangePlugin_ExportPart::ID()) { + return FeaturePtr(new ExchangePlugin_ExportPart); + } else if (theFeatureID == ExchangePlugin_Dump::ID()) { return FeaturePtr(new ExchangePlugin_Dump); + } else + if (theFeatureID == ExchangePlugin_Import::ID()) { + return FeaturePtr(new ExchangePlugin_Import); + } else + if (theFeatureID == ExchangePlugin_Import_Image::ID()) { + return FeaturePtr(new ExchangePlugin_Import_Image); } // feature of such kind is not found return FeaturePtr();