X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FExchangePlugin%2FExchangePlugin_Plugin.cpp;h=e731309c3896018630dde2abe962449582cdc9e5;hb=853e0eec6016120b641efa6adf427a239cf203cf;hp=b37a0690623525edb7e7be443c9c5fa0c98c4ce6;hpb=758a57d77b6fa3a0485fa3378a1280c7e87a74aa;p=modules%2Fshaper.git diff --git a/src/ExchangePlugin/ExchangePlugin_Plugin.cpp b/src/ExchangePlugin/ExchangePlugin_Plugin.cpp index b37a06906..e731309c3 100644 --- a/src/ExchangePlugin/ExchangePlugin_Plugin.cpp +++ b/src/ExchangePlugin/ExchangePlugin_Plugin.cpp @@ -1,15 +1,20 @@ -/* - * - */ +// Copyright (C) 2014-20xx CEA/DEN, EDF R&D + +// File: ExchangePlugin_Plugin.cpp +// Created: Aug 28, 2014 +// Author: Sergey BELASH #include #include +#include #include +#include + #include #include -#include +#include using namespace std; @@ -24,12 +29,17 @@ ExchangePlugin_Plugin::ExchangePlugin_Plugin() ModelAPI_ValidatorsFactory* aFactory = aSession->validators(); aFactory->registerValidator("ExchangePlugin_ImportFormat", new ExchangePlugin_ImportFormatValidator); + aFactory->registerValidator("ExchangePlugin_ExportFormat", + new ExchangePlugin_ExportFormatValidator); } FeaturePtr ExchangePlugin_Plugin::createFeature(string theFeatureID) { if (theFeatureID == ExchangePlugin_ImportFeature::ID()) { return FeaturePtr(new ExchangePlugin_ImportFeature); + } else + if (theFeatureID == ExchangePlugin_ExportFeature::ID()) { + return FeaturePtr(new ExchangePlugin_ExportFeature); } // feature of such kind is not found return FeaturePtr();