X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FExchangePlugin%2FExchangePlugin_ImportFeature.h;h=673a6d9509955ac69ccd9298798b1ea936a7f8a7;hb=04a8a265b25901dd54e34d449f8d0c64304f1e69;hp=6a90bf0b9014b11c8c568113a9eac2c005a46270;hpb=f4f01be0d0f2642aaca4844b34c98a062e2afbb9;p=modules%2Fshaper.git diff --git a/src/ExchangePlugin/ExchangePlugin_ImportFeature.h b/src/ExchangePlugin/ExchangePlugin_ImportFeature.h index 6a90bf0b9..673a6d950 100644 --- a/src/ExchangePlugin/ExchangePlugin_ImportFeature.h +++ b/src/ExchangePlugin/ExchangePlugin_ImportFeature.h @@ -1,32 +1,20 @@ -/* - * ExchangePlugin_ImportFeature.h - * - * Created on: Aug 28, 2014 - * Author: sbh - */ +// Copyright (C) 2014-20xx CEA/DEN, EDF R&D #ifndef EXCHANGEPLUGIN_IMPORTFEATURE_H_ #define EXCHANGEPLUGIN_IMPORTFEATURE_H_ #include #include +#include #include -#ifdef WIN32 -#include -#define LibHandle HMODULE -#define LoadLib( name ) LoadLibrary( name ) -#define GetProc GetProcAddress -#define UnLoadLib( handle ) FreeLibrary( handle ); -#else -#include -#define LibHandle void* -#define LoadLib( name ) dlopen( name, RTLD_LAZY | RTLD_GLOBAL) -#define GetProc dlsym -#define UnLoadLib( handle ) dlclose( handle ); -#endif - + /**\class ExchangePlugin_ImportFeature + * \ingroup Plugins + * \brief Feature for import shapes from the external files in CAD formats. + * + * The set of supported formats is defined in the configuration file. + */ class ExchangePlugin_ImportFeature : public ModelAPI_Feature { public: @@ -42,8 +30,9 @@ class ExchangePlugin_ImportFeature : public ModelAPI_Feature static const std::string MY_FILE_PATH_ID("import_file_selector"); return MY_FILE_PATH_ID; } - + /// default constructor EXCHANGEPLUGIN_EXPORT ExchangePlugin_ImportFeature(); + /// default destructor EXCHANGEPLUGIN_EXPORT virtual ~ExchangePlugin_ImportFeature(); /// Returns the unique kind of a feature @@ -61,13 +50,13 @@ class ExchangePlugin_ImportFeature : public ModelAPI_Feature } protected: + /// POerforms the import of the file EXCHANGEPLUGIN_EXPORT bool importFile(const std::string& theFileName); - EXCHANGEPLUGIN_EXPORT LibHandle loadImportPlugin(const std::string& theFormatName); private: /// Loads Naming data structure to the document - void loadNamingDS(boost::shared_ptr theGeomShape, - boost::shared_ptr theResultBody); + void loadNamingDS(std::shared_ptr theGeomShape, + std::shared_ptr theResultBody); }; #endif /* IMPORT_IMPORTFEATURE_H_ */