27 #ifndef __SALOMEDSIMPL_STUDY_I_H__
28 #define __SALOMEDSIMPL_STUDY_I_H__
77 std::map<std::string, SALOMEDSImpl_SObject>
_mapOfSO;
78 std::map<std::string, SALOMEDSImpl_SComponent>
_mapOfSCO;
83 const std::string& anObjectName,
87 const std::string& anObjectIOR,
90 std::string _GetStudyVariablesScript();
91 std::string _GetNoteBookAccessor();
92 std::string _GetNoteBookAccess();
108 virtual void Clear();
111 virtual bool Open(
const std::string& aStudyUrl);
119 virtual bool SaveAs(
const std::string& aUrl,
125 const int theSourceStartDepth,
127 const DF_Label& theDestinationMain);
131 const DF_Label& theDestinationStart,
132 const bool isFirstElement);
140 virtual bool Impl_SaveAs(
const std::string& aUrl,
148 virtual bool Impl_SaveProperties(
HDFgroup *hdf_group);
152 virtual std::string GetPersistentReference();
155 virtual bool IsEmpty();
168 virtual std::vector<SALOMEDSImpl_SObject> FindObjectByName(
const std::string& anObjectName,
169 const std::string& aComponentName ) ;
186 std::string GetObjectPathByIOR(
const std::string& theIOR);
198 virtual std::string Name();
201 virtual void Name(
const std::string&
name);
204 virtual bool IsSaved();
207 virtual void IsSaved(
bool save);
210 virtual bool IsModified();
213 virtual std::string URL();
216 virtual void URL(
const std::string& url);
218 virtual bool IsLocked();
220 virtual void DeleteIORLabelMapItem(
const std::string& anIOR);
221 virtual void UpdateIORLabelMap(
const std::string& anIOR,
const std::string& aLabel);
223 virtual std::vector<SALOMEDSImpl_SObject> FindDependances(
const SALOMEDSImpl_SObject& anObject);
227 virtual std::string GetLastModificationDate();
229 virtual std::vector<std::string> GetModificationsDate();
233 void EnableUseCaseAutoFilling(
bool isEnabled);
236 virtual bool IsError() {
return _errorCode !=
""; }
242 virtual DF_Attribute* GetAttribute(
const std::string& theEntry,
243 const std::string& theType);
245 virtual bool DumpStudy(
const std::string& thePath,
246 const std::string& theBaseName,
251 static std::string GetDumpStudyComment(
const char* theComponentName = 0);
254 std::string GetDumpPath();
259 void dump(
const std::string& theFileName);
267 const char* theModuleName,
271 void SetStudyLock(
const char* theLockerID);
274 bool IsStudyLocked();
277 void UnLockStudy(
const char* theLockerID);
280 std::vector<std::string> GetLockerID();
283 void SetVariable(
const std::string& theVarName,
284 const double theValue,
287 void SetStringVariable(
const std::string& theVarName,
288 const std::string& theValue,
291 void SetStringVariableAsDouble(
const std::string& theVarName,
292 const double theValue,
295 double GetVariableValue(
const std::string& theVarName);
297 std::string GetStringVariableValue(
const std::string& theVarName);
299 bool IsTypeOf(
const std::string& theVarName,
302 bool IsVariable(
const std::string& theVarName)
const;
305 std::vector<std::string> GetVariableNames()
const;
311 bool RemoveVariable(
const std::string& theVarName);
313 bool RenameVariable(
const std::string& theVarName,
const std::string& theNewVarName);
315 bool IsVariableUsed(
const std::string& theVarName);
319 const std::string& theName);
320 bool FindVariableAttribute(
const std::string& theName);
324 const std::string& theSource,
325 const std::string& theDest);
326 void ReplaceVariableAttribute(
const std::string& theSource,
const std::string& theDest);
328 std::vector< std::vector<std::string> > ParseVariables(
const std::string& theVariables)
const;
334 std::vector<std::string> GetIORs();
342 static void RegisterGenObj (
const std::string& theIOR,
DF_Label label);
343 static void UnRegisterGenObj(
const std::string& theIOR,
DF_Label label);
#define SALOMEDSIMPL_EXPORT
Definition: SALOMEDSImpl_Defines.hxx:34
static void DumpStudy()
Function : Purpose :
Definition: SALOMEDS_Client.cxx:72
Definition: DF_Application.hxx:29
Definition: DF_Attribute.hxx:30
Definition: DF_Document.hxx:32
Definition: DF_Label.hxx:65
Definition: HDFgroup.hxx:38
Definition: SALOMEDSImpl_Callback.hxx:59
Definition: SALOMEDSImpl_AttributeIOR.hxx:39
Class: SALOMEDSImpl_AttributeParameter Description : AttributeParameter is a universal container of b...
Definition: SALOMEDSImpl_AttributeParameter.hxx:48
Definition: SALOMEDSImpl_AttributeStudyProperties.hxx:39
Definition: SALOMEDSImpl_Callback.hxx:34
Definition: SALOMEDSImpl_ChildIterator.hxx:36
Definition: SALOMEDSImpl_Driver.hxx:99
Definition: SALOMEDSImpl_Driver.hxx:34
Definition: SALOMEDSImpl_GenericAttribute.hxx:39
Definition: SALOMEDSImpl_GenericVariable.hxx:34
VariableTypes
Definition: SALOMEDSImpl_GenericVariable.hxx:38
Definition: SALOMEDSImpl_SComponentIterator.hxx:41
Definition: SALOMEDSImpl_SComponent.hxx:44
Definition: SALOMEDSImpl_SObject.hxx:41
Definition: SALOMEDSImpl_StudyBuilder.hxx:42
Definition: SALOMEDSImpl_Study.hxx:59
bool _Saved
Definition: SALOMEDSImpl_Study.hxx:65
std::vector< SALOMEDSImpl_GenericVariable * > myNoteBookVars
Definition: SALOMEDSImpl_Study.hxx:80
DF_Application * _appli
Definition: SALOMEDSImpl_Study.hxx:62
virtual bool IsError()
Definition: SALOMEDSImpl_Study.hxx:236
std::map< std::string, SALOMEDSImpl_SComponent > _mapOfSCO
Definition: SALOMEDSImpl_Study.hxx:78
std::string _name
Definition: SALOMEDSImpl_Study.hxx:61
DF_Document * _clipboard
Definition: SALOMEDSImpl_Study.hxx:64
virtual std::string GetErrorCode()
Definition: SALOMEDSImpl_Study.hxx:235
SALOMEDSImpl_Callback * GetCallback()
Definition: SALOMEDSImpl_Study.hxx:331
std::map< std::string, DF_Label > myIORLabels
Definition: SALOMEDSImpl_Study.hxx:79
SALOMEDSImpl_AbstractCallback * _genObjRegister
Definition: SALOMEDSImpl_Study.hxx:74
std::string _URL
Definition: SALOMEDSImpl_Study.hxx:66
virtual DF_Document * GetDocument()
Definition: SALOMEDSImpl_Study.hxx:256
SALOMEDSImpl_AbstractCallback * _notifier
Definition: SALOMEDSImpl_Study.hxx:73
SALOMEDSImpl_Callback * _cb
Definition: SALOMEDSImpl_Study.hxx:70
std::string _dumpPath
Definition: SALOMEDSImpl_Study.hxx:75
bool _autoFill
Definition: SALOMEDSImpl_Study.hxx:67
SALOMEDSImpl_UseCaseBuilder * _useCaseBuilder
Definition: SALOMEDSImpl_Study.hxx:72
DF_Document * _doc
Definition: SALOMEDSImpl_Study.hxx:63
std::map< std::string, SALOMEDSImpl_SObject > _mapOfSO
Definition: SALOMEDSImpl_Study.hxx:77
std::string _errorCode
Definition: SALOMEDSImpl_Study.hxx:68
SALOMEDSImpl_StudyBuilder * _builder
Definition: SALOMEDSImpl_Study.hxx:71
std::vector< std::string > _lockers
Definition: SALOMEDSImpl_Study.hxx:69
Definition: SALOMEDSImpl_UseCaseBuilder.hxx:40
def Init()
Definition: salome_ComponentGUI.py:84
@ SO
component implemented as a dynamic library loadable with dlopen
Definition: SALOME_ModuleCatalog.idl:157
string name
Definition: pythfilter.py:56
def dump(filename)
Definition: pythfilter.py:368