X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fshaper.git;a=blobdiff_plain;f=src%2FExchangePlugin%2FExchangePlugin_ImportFeature.h;h=8a47253a3d95ccbc79a1b41e17aaf06d849fdfe8;hp=2398b41890afa2f13e40535c6d84bd76f081a7b5;hb=9e9e32f010b4174ecd0ba2b016f14fee16775365;hpb=9afbc5fb015e5ff91689e1ef3f4da286347fbda5 diff --git a/src/ExchangePlugin/ExchangePlugin_ImportFeature.h b/src/ExchangePlugin/ExchangePlugin_ImportFeature.h index 2398b4189..8a47253a3 100644 --- a/src/ExchangePlugin/ExchangePlugin_ImportFeature.h +++ b/src/ExchangePlugin/ExchangePlugin_ImportFeature.h @@ -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