Salome HOME
Fix for the issue #593: do not remove naming attribute, but use TNaming_Builder for...
[modules/shaper.git] / src / ExchangePlugin / ExchangePlugin_ExportFeature.h
index b308e12fcd18bbe905ba5f3871660790e9fa724f..774cbadd9c8a3618a004e91d1f1e3b5f773a2f13 100644 (file)
  */
 class ExchangePlugin_ExportFeature : public ModelAPI_Feature
 {
- public:
+public:
   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()
   {
@@ -51,12 +57,14 @@ 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:
+protected:
   /// Performs the export of the file
   EXCHANGEPLUGIN_EXPORT bool exportFile(const std::string& theFileName,
+                                        const std::string& theFormat,
                                         std::shared_ptr<GeomAPI_Shape> theShape);
 };