27 #ifndef __SALOMEDS_STUDY_I_H__
28 #define __SALOMEDS_STUDY_I_H__
34 #include <SALOMEconfig.h>
35 #include CORBA_SERVER_HEADER(SALOME_GenericObj)
36 #include CORBA_SERVER_HEADER(SALOMEDS)
73 virtual char* GetPersistentReference();
80 virtual char* GetTransientReference();
86 virtual CORBA::Boolean IsEmpty();
93 virtual SALOMEDS::SComponent_ptr FindComponent (
const char* aComponentName);
100 virtual SALOMEDS::SComponent_ptr FindComponentID(
const char* aComponentID);
107 virtual SALOMEDS::SObject_ptr FindObject(
const char* anObjectName);
124 virtual SALOMEDS::SObject_ptr FindObjectID(
const char* anObjectID);
131 virtual SALOMEDS::SObject_ptr CreateObjectID(
const char* anObjectID);
138 virtual SALOMEDS::SObject_ptr FindObjectIOR(
const char* anObjectIOR);
145 virtual SALOMEDS::SObject_ptr FindObjectByPath(
const char* thePath);
152 virtual char* GetObjectPath(CORBA::Object_ptr theObject);
157 virtual void SetContext(
const char* thePath);
162 virtual char* GetContext();
189 virtual SALOMEDS::ChildIterator_ptr NewChildIterator(SALOMEDS::SObject_ptr aSO);
195 virtual SALOMEDS::SComponentIterator_ptr NewComponentIterator();
201 virtual SALOMEDS::StudyBuilder_ptr NewBuilder();
207 virtual char* Name();
213 virtual void Name(
const char* name);
219 virtual CORBA::Boolean IsSaved();
225 virtual void IsSaved(CORBA::Boolean save);
231 virtual CORBA::Boolean IsModified();
234 virtual void Modified();
246 virtual void URL(
const char* url);
248 virtual CORBA::Short StudyId();
249 virtual void StudyId(CORBA::Short
id);
251 static SALOMEDS::Study_ptr GetStudy(
const DF_Label& theLabel, CORBA::ORB_ptr orb);
256 virtual void UpdateIORLabelMap(
const char* anIOR,
const char* aLabel);
260 virtual SALOMEDS::AttributeStudyProperties_ptr GetProperties();
262 virtual char* GetLastModificationDate();
266 virtual char*
ConvertObjectToIOR(CORBA::Object_ptr theObject) {
return _orb->object_to_string(theObject); }
267 virtual CORBA::Object_ptr
ConvertIORToObject(
const char* theIOR) {
return _orb->string_to_object(theIOR); };
269 virtual SALOMEDS::UseCaseBuilder_ptr GetUseCaseBuilder();
271 virtual void Close();
273 void EnableUseCaseAutoFilling(CORBA::Boolean isEnabled);
276 virtual void AddPostponed(
const char* theIOR);
278 virtual void AddCreatedPostponed(
const char* theIOR);
280 virtual void RemovePostponed(CORBA::Long theUndoLimit);
282 virtual void UndoPostponed(CORBA::Long theWay);
285 virtual SALOMEDS::AttributeParameter_ptr GetCommonParameters(
const char* theID, CORBA::Long theSavePoint);
286 virtual SALOMEDS::AttributeParameter_ptr GetModuleParameters(
const char* theID,
287 const char* theModuleName,
288 CORBA::Long theSavePoint);
290 virtual void SetStudyLock(
const char* theLockerID);
292 virtual bool IsStudyLocked();
294 virtual void UnLockStudy(
const char* theLockerID);
298 virtual void SetReal(
const char* theVarName, CORBA::Double theValue);
300 virtual void SetInteger(
const char* theVarName, CORBA::Long theValue);
302 virtual void SetBoolean(
const char* theVarName, CORBA::Boolean theValue);
304 virtual void SetString(
const char* theVarName,
const char* theValue);
306 virtual void SetStringAsDouble(
const char* theVarName, CORBA::Double theValue);
308 virtual CORBA::Double GetReal(
const char* theVarName);
310 virtual CORBA::Long GetInteger(
const char* theVarName);
312 virtual CORBA::Boolean GetBoolean(
const char* theVarName);
314 virtual char* GetString(
const char* theVarName);
316 virtual CORBA::Boolean IsReal(
const char* theVarName);
318 virtual CORBA::Boolean IsInteger(
const char* theVarName);
320 virtual CORBA::Boolean IsBoolean(
const char* theVarName);
322 virtual CORBA::Boolean IsString(
const char* theVarName);
324 virtual CORBA::Boolean IsVariable(
const char* theVarName);
328 virtual CORBA::Boolean RemoveVariable(
const char* theVarName);
330 virtual CORBA::Boolean RenameVariable(
const char* theVarName,
const char* theNewVarName);
332 virtual CORBA::Boolean IsVariableUsed(
const char* theVarName);
336 virtual char* GetDefaultScript(
const char* theModuleName,
const char* theShift);
338 virtual CORBA::Boolean
DumpStudy(
const char* thePath,
339 const char* theBaseName,
340 CORBA::Boolean isPublished,
341 CORBA::Boolean isMultiFile);
345 virtual CORBA::LongLong GetLocalImpl(
const char* theHostname, CORBA::Long thePID, CORBA::Boolean& isLocal);
347 virtual void attach(SALOMEDS::Observer_ptr theObs, CORBA::Boolean modify);
348 virtual void detach(SALOMEDS::Observer_ptr theObs);