Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rectangle correction to have coincidence with point/line selected for the first point...
[modules/shaper.git]
/
src
/
ExchangePlugin
/
ExchangePlugin_Plugin.cpp
diff --git
a/src/ExchangePlugin/ExchangePlugin_Plugin.cpp
b/src/ExchangePlugin/ExchangePlugin_Plugin.cpp
index 5168e91f77c6916251f7bcd69e07d905014a68e9..e731309c3896018630dde2abe962449582cdc9e5 100644
(file)
--- a/
src/ExchangePlugin/ExchangePlugin_Plugin.cpp
+++ b/
src/ExchangePlugin/ExchangePlugin_Plugin.cpp
@@
-1,11
+1,16
@@
-/*
- *
- */
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
+// File: ExchangePlugin_Plugin.cpp
+// Created: Aug 28, 2014
+// Author: Sergey BELASH
#include <ExchangePlugin_Plugin.h>
#include <ExchangePlugin_ImportFeature.h>
#include <ExchangePlugin_Plugin.h>
#include <ExchangePlugin_ImportFeature.h>
+#include <ExchangePlugin_ExportFeature.h>
#include <ExchangePlugin_Validators.h>
#include <ExchangePlugin_Validators.h>
+#include <Config_PropManager.h>
+
#include <ModelAPI_Session.h>
#include <ModelAPI_Validator.h>
#include <ModelAPI_Session.h>
#include <ModelAPI_Validator.h>
@@
-24,12
+29,17
@@
ExchangePlugin_Plugin::ExchangePlugin_Plugin()
ModelAPI_ValidatorsFactory* aFactory = aSession->validators();
aFactory->registerValidator("ExchangePlugin_ImportFormat",
new ExchangePlugin_ImportFormatValidator);
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);
}
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();
}
// feature of such kind is not found
return FeaturePtr();