X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FExchangePlugin%2FExchangePlugin_ExportFeature.h;h=87727711e52951cf0e18d2a57dce317c1cc04a0e;hb=8f2e8789faa06405e900ee2272858a8ca898ba32;hp=fb45a27fc92f08420cc4633fa47a401ad8fa925f;hpb=f565325d5c15b590237ae70c1ac6e57b448579ad;p=modules%2Fshaper.git diff --git a/src/ExchangePlugin/ExchangePlugin_ExportFeature.h b/src/ExchangePlugin/ExchangePlugin_ExportFeature.h index fb45a27fc..87727711e 100644 --- a/src/ExchangePlugin/ExchangePlugin_ExportFeature.h +++ b/src/ExchangePlugin/ExchangePlugin_ExportFeature.h @@ -1,5 +1,9 @@ // Copyright (C) 2014-20xx CEA/DEN, EDF R&D +// File: ExchangePlugin_ExportFeature.h +// Created: May 14, 2015 +// Author: Sergey POKHODENKO + #ifndef EXCHANGEPLUGIN_EXPORTFEATURE_H_ #define EXCHANGEPLUGIN_EXPORTFEATURE_H_ @@ -9,41 +13,43 @@ #include -/**\class ExchangePlugin_ExportFeature +/** + * \class ExchangePlugin_ExportFeature * \ingroup Plugins * \brief Feature for export shapes to the external files in CAD formats. * - * The set of supported formats is defined in the configuration file. + * The list of supported formats is defined in the configuration file. */ class ExchangePlugin_ExportFeature : public ModelAPI_Feature { - public: +public: + /// Feature kind inline static const std::string& ID() { static const std::string MY_EXPORT_ID("Export"); return MY_EXPORT_ID; } - /// attribute name of file format - inline static const std::string& FILE_FORMAT_ID() - { - static const std::string MY_FILE_FORMAT_ID("export_file_format"); - return MY_FILE_FORMAT_ID; - } /// attribute name of file path inline static const std::string& FILE_PATH_ID() { - static const std::string MY_FILE_PATH_ID("export_file_selector"); + static const std::string MY_FILE_PATH_ID("file_path"); return MY_FILE_PATH_ID; } + /// attribute name of file format + inline static const std::string& FILE_FORMAT_ID() + { + static const std::string MY_FILE_FORMAT_ID("file_format"); + return MY_FILE_FORMAT_ID; + } /// attribute name of selection list inline static const std::string& SELECTION_LIST_ID() { static const std::string MY_SELECTION_LIST_ID("selection_list"); return MY_SELECTION_LIST_ID; } - /// default constructor + /// Default constructor EXCHANGEPLUGIN_EXPORT ExchangePlugin_ExportFeature(); - /// default destructor + /// Default destructor EXCHANGEPLUGIN_EXPORT virtual ~ExchangePlugin_ExportFeature(); /// Request for initialization of data model of the feature: adding all attributes @@ -57,8 +63,9 @@ class ExchangePlugin_ExportFeature : public ModelAPI_Feature /// Reimplemented from ModelAPI_Feature::isMacro(). Returns true. EXCHANGEPLUGIN_EXPORT virtual bool isMacro() const { return true; } + /// Reimplemented from ModelAPI_Feature::isPreviewNeeded(). Returns false. - MODELAPI_EXPORT virtual bool isPreviewNeeded() const { return false; } + EXCHANGEPLUGIN_EXPORT virtual bool isPreviewNeeded() const { return false; } protected: /// Performs the export of the file