X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FExchangePlugin%2FExchangePlugin_Plugin.cpp;h=235ddd17fc9243ea24328b249d45e69ab568c535;hb=8f43b985d2f7170b8dfa06abd3edc7d6cb0c2e1f;hp=53f17692eeeb868c405ef8a4a9d6ba1e9931654b;hpb=7074394f8f08413d885f63be01df6bd5007b868c;p=modules%2Fshaper.git diff --git a/src/ExchangePlugin/ExchangePlugin_Plugin.cpp b/src/ExchangePlugin/ExchangePlugin_Plugin.cpp index 53f17692e..235ddd17f 100644 --- a/src/ExchangePlugin/ExchangePlugin_Plugin.cpp +++ b/src/ExchangePlugin/ExchangePlugin_Plugin.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2017 CEA/DEN, EDF R&D +// Copyright (C) 2014-2020 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 @@ -12,16 +12,18 @@ // // You should have received a copy of the GNU Lesser General Public // License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // -// See http://www.salome-platform.org/ or -// email : webmaster.salome@opencascade.com +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // #include #include #include #include +#include +#include +#include #include #include @@ -44,6 +46,8 @@ 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) @@ -54,8 +58,17 @@ FeaturePtr ExchangePlugin_Plugin::createFeature(std::string theFeatureID) 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); } // feature of such kind is not found return FeaturePtr();