Salome HOME
[bos #35140] [EDF] (2023-T1) Memory communication between SHAPER and GEOM
[modules/shaper.git] / src / ExchangePlugin / ExchangePlugin_ImportFeature.h
index 2398b41890afa2f13e40535c6d84bd76f081a7b5..8a47253a3d95ccbc79a1b41e17aaf06d849fdfe8 100644 (file)
@@ -149,6 +149,12 @@ public:
     static const std::string MY_STEP_COLORS_ID("step_colors");
     return MY_STEP_COLORS_ID;
   }
+  /// attribute memory buffer
+  inline static const std::string& MEMORY_BUFFER_ID()
+  {
+    static const std::string MY_MEMORY_BUFFER_ID("memory_buffer");
+    return MY_MEMORY_BUFFER_ID;
+  }
   /// Returns the unique kind of a feature
   EXCHANGEPLUGIN_EXPORT virtual const std::string& getKind() override
   {
@@ -161,12 +167,17 @@ public:
   /// Request for initialization of data model of the feature: adding all attributes
   EXCHANGEPLUGIN_EXPORT virtual void initAttributes();
 
+  /// Return false in case of XAOMem import.
+  EXCHANGEPLUGIN_EXPORT virtual bool isEditable();
+
 protected:
   /// Performs the import of the file
   EXCHANGEPLUGIN_EXPORT void importFile(const std::string& theFileName) override;
 
   /// Performs the import of XAO file
-  EXCHANGEPLUGIN_EXPORT void importXAO(const std::string& theFileName);
+  EXCHANGEPLUGIN_EXPORT void importXAO(const std::string& theFileName,
+                                       const std::string& theMemoryBuff = std::string(),
+                                       const bool         isMemoryImport = false);
 
 private:
   /// Set groups of color