From 66bfff68860af71136b270df2405d08e845c323b Mon Sep 17 00:00:00 2001 From: srn Date: Fri, 10 Feb 2006 12:51:26 +0000 Subject: [PATCH] Added 2 new methods encodeEntry and decodeEntry --- src/SALOMEDS/SALOMEDS_IParameters.cxx | 11 +++++++++++ src/SALOMEDS/SALOMEDS_IParameters.hxx | 10 ++++++++++ 2 files changed, 21 insertions(+) diff --git a/src/SALOMEDS/SALOMEDS_IParameters.cxx b/src/SALOMEDS/SALOMEDS_IParameters.cxx index 8fd2fcf33..5fbe653b3 100644 --- a/src/SALOMEDS/SALOMEDS_IParameters.cxx +++ b/src/SALOMEDS/SALOMEDS_IParameters.cxx @@ -224,6 +224,17 @@ bool SALOMEDS_IParameters::isDumpPython() return (bool)_ap->GetBool(_AP_DUMP_PYTHON_); } +string encodeEntry(const string& entry, const string& compName) +{ + return entry; +} + +string decodeEntry(const string& entry) +{ + return entry; +} + + int SALOMEDS_IParameters::getLastSavePoint(_PTR(Study) study, const string& theID) { _PTR(SObject) so = study->FindComponent(theID); diff --git a/src/SALOMEDS/SALOMEDS_IParameters.hxx b/src/SALOMEDS/SALOMEDS_IParameters.hxx index 7a5694965..42e74cc64 100644 --- a/src/SALOMEDS/SALOMEDS_IParameters.hxx +++ b/src/SALOMEDS/SALOMEDS_IParameters.hxx @@ -121,6 +121,16 @@ public: */ bool isDumpPython(); + /*! + Returns encoded entry that is a relative entry for the component + */ + std::string encodeEntry(const std::string& entry, const std::string& compName); + + /*! + Returns decoded entry that is an absolute entry + */ + std::string decodeEntry(const std::string& entry); + /*! Returns an ID of the last save point -- 2.39.2