in boolean isPublished,
in boolean isMultiFile) raises(StudyInvalidReference);
+/*! \brief Returns the folder of the python script which is currently dumped.
+*/
+ string GetDumpPath();
+
/*! \brief Get an AttributeParameter used to store common parameters for given %theSavePoint.
\param theID identifies a common parameters set (Example: "Interface Applicative")
return ret;
}
+//============================================================================
+/*! Function : GetDumpPath
+* Purpose :
+*/
+//============================================================================
+char* SALOMEDS_Study_i::GetDumpPath()
+{
+ return CORBA::string_dup(_impl->GetDumpPath().c_str());
+}
+
//============================================================================
/*! Function : GetCommonParameters
* Purpose :
CORBA::Boolean isPublished,
CORBA::Boolean isMultiFile);
+ virtual char* GetDumpPath();
+
virtual SALOMEDSImpl_Study* GetImpl() { return _impl; }
virtual CORBA::LongLong GetLocalImpl(const char* theHostname, CORBA::Long thePID, CORBA::Boolean& isLocal);
_errorCode = std::string("Can't create a file ")+aFileName;
return false;
}
+ _dumpPath = thePath;
std::stringstream sfp;
fp.close();
+ _dumpPath.clear();
+
return isOk;
}
+// Returns the folder of the python script which is currently dumped
+std::string SALOMEDSImpl_Study::GetDumpPath()
+{
+ return _dumpPath;
+}
+
+
//=======================================================================
//function : GetDumpStudyComment
//purpose : return a header comment for a DumpStudy script
SALOMEDSImpl_UseCaseBuilder* _useCaseBuilder;
SALOMEDSImpl_AbstractCallback* _notifier;
SALOMEDSImpl_AbstractCallback* _genObjRegister;
+ std::string _dumpPath; // path (folder) to the python file which is currently dumped
std::map<std::string, SALOMEDSImpl_SObject> _mapOfSO;
std::map<std::string, SALOMEDSImpl_SComponent> _mapOfSCO;
SALOMEDSImpl_DriverFactory* theFactory);
static std::string GetDumpStudyComment(const char* theComponentName = 0);
+
+ // Returns the folder of the python script which is currently dumped
+ std::string GetDumpPath();
virtual DF_Document* GetDocument() { return _doc; }