27 #ifndef __SALOMEDSIMPL_STUDY_I_H__
28 #define __SALOMEDSIMPL_STUDY_I_H__
76 std::map<std::string, SALOMEDSImpl_SObject>
_mapOfSO;
77 std::map<std::string, SALOMEDSImpl_SComponent>
_mapOfSCO;
82 const std::string& anObjectName,
86 const std::string& anObjectIOR,
89 std::string _GetStudyVariablesScript();
90 std::string _GetNoteBookAccessor();
91 std::string _GetNoteBookAccess(
const std::string& theStudyVar);
107 virtual std::string GetPersistentReference();
110 virtual std::string GetTransientReference();
112 virtual void SetTransientReference(
const std::string& theIOR);
115 virtual bool IsEmpty();
128 virtual std::vector<SALOMEDSImpl_SObject> FindObjectByName(
const std::string& anObjectName,
129 const std::string& aComponentName ) ;
146 std::string GetObjectPathByIOR(
const std::string& theIOR);
149 virtual bool SetContext(
const std::string& thePath);
152 virtual std::string GetContext();
155 virtual std::vector<std::string> GetObjectNames(
const std::string& theContext);
158 virtual std::vector<std::string> GetDirectoryNames(
const std::string& theContext);
161 virtual std::vector<std::string> GetFileNames(
const std::string& theContext);
164 virtual std::vector<std::string> GetComponentNames(
const std::string& theContext);
176 virtual std::string Name();
179 virtual void Name(
const std::string& name);
182 virtual bool IsSaved();
185 virtual void IsSaved(
bool save);
188 virtual bool IsModified();
191 virtual std::string
URL();
194 virtual void URL(
const std::string& url);
196 virtual bool IsLocked();
198 virtual int StudyId();
200 virtual void StudyId(
int id);
202 virtual void DeleteIORLabelMapItem(
const std::string& anIOR);
203 virtual void UpdateIORLabelMap(
const std::string& anIOR,
const std::string& aLabel);
205 virtual std::vector<SALOMEDSImpl_SObject> FindDependances(
const SALOMEDSImpl_SObject& anObject);
209 virtual std::string GetLastModificationDate();
211 virtual std::vector<std::string> GetModificationsDate();
215 virtual void Close();
217 void EnableUseCaseAutoFilling(
bool isEnabled);
220 virtual bool IsError() {
return _errorCode !=
""; }
226 virtual DF_Attribute* GetAttribute(
const std::string& theEntry,
227 const std::string& theType);
231 virtual bool DumpStudy(
const std::string& thePath,
232 const std::string& theBaseName,
237 static std::string GetDumpStudyComment(
const char* theComponentName = 0);
242 void dump(
const std::string& theFileName);
250 const char* theModuleName,
254 void SetStudyLock(
const char* theLockerID);
257 bool IsStudyLocked();
260 void UnLockStudy(
const char* theLockerID);
263 std::vector<std::string> GetLockerID();
266 void SetVariable(
const std::string& theVarName,
267 const double theValue,
270 void SetStringVariable(
const std::string& theVarName,
271 const std::string& theValue,
274 void SetStringVariableAsDouble(
const std::string& theVarName,
275 const double theValue,
278 double GetVariableValue(
const std::string& theVarName);
280 std::string GetStringVariableValue(
const std::string& theVarName);
282 bool IsTypeOf(
const std::string& theVarName,
285 bool IsVariable(
const std::string& theVarName)
const;
288 std::vector<std::string> GetVariableNames()
const;
294 bool RemoveVariable(
const std::string& theVarName);
296 bool RenameVariable(
const std::string& theVarName,
const std::string& theNewVarName);
298 bool IsVariableUsed(
const std::string& theVarName);
302 const std::string& theName);
303 bool FindVariableAttribute(
const std::string& theName);
307 const std::string& theSource,
308 const std::string& theDest);
309 void ReplaceVariableAttribute(
const std::string& theSource,
const std::string& theDest);
311 std::vector< std::vector<std::string> > ParseVariables(
const std::string& theVariables)
const;
317 std::vector<std::string> GetIORs();
325 static void RegisterGenObj (
const std::string& theIOR,
DF_Label label);
326 static void UnRegisterGenObj(
const std::string& theIOR,
DF_Label label);