// 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_ExportFeature.h>
#include <ExchangePlugin_Validators.h>
#include <Config_PropManager.h>
ModelAPI_ValidatorsFactory* aFactory = aSession->validators();
aFactory->registerValidator("ExchangePlugin_ImportFormat",
new ExchangePlugin_ImportFormatValidator);
-
- // register construction properties
- Config_PropManager::registerProp("Visualization", "import_feature_color", "Imported feature color",
- Config_Prop::Color, IMPORTED_FEATURE_COLOR);
-
- // register random result color properties
- Config_PropManager::registerProp("Visualization", "random_result_color", "Use random color for results",
- Config_Prop::Bool, "true");
+ 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();