30 #ifndef _SALOMEDS_IDL_
31 #define _SALOMEDS_IDL_
98 oneway
void notifyObserverID(in
string theID, in
long event);
160 SalomeReference GetTransientReference() raises(StudyInvalidReference);
166 boolean IsEmpty() raises(StudyInvalidReference);
175 SComponent FindComponent (in
string aComponentName) raises(StudyInvalidReference);
179 SComponent FindComponentID(in ID aComponentID) raises(StudyInvalidReference);
187 SObject FindObject (in
string anObjectName) raises(StudyInvalidReference);
193 SObject FindObjectID (in ID aObjectID) raises(StudyInvalidReference);
199 SObject CreateObjectID (in ID aObjectID) raises(StudyInvalidReference);
205 SObject FindObjectIOR (in ID aObjectIOR) raises(StudyInvalidReference);
211 ListOfSObject FindObjectByName(in
string anObjectName, in
string aComponentName) raises(StudyInvalidReference);
217 SObject FindObjectByPath(in
string thePath) raises(StudyInvalidReference);
220 string GetObjectPath(in Object theObject) raises(StudyInvalidReference);
233 string GetContext() raises (StudyInvalidReference, StudyInvalidContext);
238 ListOfStrings GetObjectNames(in
string theContext) raises (StudyInvalidReference, StudyInvalidContext);
243 ListOfStrings GetDirectoryNames(in
string theContext) raises (StudyInvalidReference, StudyInvalidContext);
248 ListOfStrings GetFileNames(in
string theContext) raises (StudyInvalidReference, StudyInvalidContext);
253 ListOfStrings GetComponentNames(in
string theContext) raises(StudyInvalidReference);
273 StudyBuilder NewBuilder() raises(StudyInvalidReference);
278 void UpdateIORLabelMap(in
string anIOR, in
string anEntry) raises(StudyInvalidReference);
290 attribute
boolean IsSaved;
295 boolean IsModified() raises(StudyInvalidReference);
299 void Modified() raises(StudyInvalidReference);
303 attribute
string URL;
315 string GetLastModificationDate() raises(StudyInvalidReference);
321 ListOfDates GetModificationsDate() raises(StudyInvalidReference);
327 string ConvertObjectToIOR(in Object theObject);
333 Object ConvertIORToObject(in
string theIOR);
341 void Close() raises(StudyInvalidReference);
345 void EnableUseCaseAutoFilling(in
boolean isEnabled) raises(StudyInvalidReference);
350 void AddPostponed(in
string theIOR) raises(StudyInvalidReference);
352 void AddCreatedPostponed(in
string theIOR) raises(StudyInvalidReference);
354 void RemovePostponed(in
long theUndoLimit) raises(StudyInvalidReference);
356 void UndoPostponed(in
long theWay) raises(StudyInvalidReference);
358 boolean DumpStudy(in
string thePath,
359 in
string theBaseName,
360 in
boolean isPublished,
361 in
boolean isMultiFile) raises(StudyInvalidReference);
368 AttributeParameter GetCommonParameters(in
string theID, in
long theSavePoint) raises(StudyInvalidReference);
376 AttributeParameter GetModuleParameters(in
string theID, in
string theModuleName, in
long theSavePoint) raises(StudyInvalidReference);
384 string GetDefaultScript(in
string theModuleName, in
string indent) raises(StudyInvalidReference);
392 long long GetLocalImpl(in
string theHostname, in
long thePID, out
boolean isLocal);
400 void SetStudyLock(in
string theLockerID) raises(StudyInvalidReference);
406 boolean IsStudyLocked() raises(StudyInvalidReference);
413 void UnLockStudy(in
string theLockerID) raises(StudyInvalidReference);
417 ListOfStrings GetLockerID() raises(StudyInvalidReference);
425 void SetReal( in
string theVarName, in
double theValue ) raises(StudyInvalidReference);
433 void SetInteger( in
string theVarName, in
long theValue ) raises(StudyInvalidReference);
440 void SetBoolean( in
string theVarName, in
boolean theValue ) raises(StudyInvalidReference);
448 void SetString( in
string theVarName, in
string theValue ) raises(StudyInvalidReference);
452 void SetStringAsDouble( in
string theVarName, in
double theValue ) raises(StudyInvalidReference);
458 double GetReal( in
string theVarName ) raises(StudyInvalidReference);
464 long GetInteger( in
string theVarName ) raises(StudyInvalidReference);
470 boolean GetBoolean( in
string theVarName ) raises(StudyInvalidReference);
476 string GetString( in
string theVarName ) raises(StudyInvalidReference);
484 boolean IsReal( in
string theVarName ) raises(StudyInvalidReference);
491 boolean IsInteger( in
string theVarName ) raises(StudyInvalidReference);
498 boolean IsBoolean( in
string theVarName ) raises(StudyInvalidReference);
505 boolean IsString( in
string theVarName ) raises(StudyInvalidReference);
513 boolean IsVariable( in
string theVarName ) raises(StudyInvalidReference);
517 ListOfStrings GetVariableNames() raises(StudyInvalidReference);
526 boolean RemoveVariable( in
string theVarName ) raises(StudyInvalidReference);
536 boolean RenameVariable( in
string theVarName, in
string theNewVarName ) raises(StudyInvalidReference);
545 boolean IsVariableUsed( in
string theVarName ) raises(StudyInvalidReference);
552 ListOfListOfStrings ParseVariables( in
string theVars ) raises(StudyInvalidReference);
561 void attach(in SALOMEDS::
Observer theObserver, in
boolean modify);
567 void detach(in SALOMEDS::
Observer theObserver);
683 boolean FindAttribute(in
SObject anObject,
685 in
string aTypeOfAttribute);
694 void RemoveAttribute(in
SObject anObject,
702 void Addreference(in
SObject anObject,
703 in
SObject theReferencedObject) ;
710 void RemoveReference(in
SObject anObject) ;
737 boolean IsGUID(in
SObject anObject, in
string theGUID);
760 boolean HasOpenCommand();
772 attribute
long UndoLimit;
782 void Undo() raises (LockProtection);
792 void Redo() raises (LockProtection);
799 boolean GetAvailableUndos();
806 boolean GetAvailableRedos();
813 void SetName(in
SObject theSO, in
string theValue) raises (LockProtection);
821 void SetComment(in
SObject theSO, in
string theValue) raises (LockProtection);
829 void SetIOR(in
SObject theSO, in
string theValue) raises (LockProtection);
860 oneway
void ShutdownWithExit();
887 void Close(in
Study aStudy);
897 boolean Save(in
Study aStudy, in
boolean theMultiFile);
903 boolean SaveASCII(in
Study aStudy, in
boolean theMultiFile);
913 boolean SaveAs(in URL aUrl,
915 in
boolean theMultiFile);
924 boolean SaveAsASCII(in URL aUrl,
926 in
boolean theMultiFile);
935 ListOfOpenStudies GetOpenStudies();
943 Study GetStudyByName (in
string aStudyName);
951 Study GetStudyByID (in
short aStudyID);
958 boolean CanCopy(in
SObject theObject);
963 boolean Copy(in
SObject theObject);
968 boolean CanPaste(in
SObject theObject);
982 string ConvertObjectToIOR(in Object theObject);
988 Object ConvertIORToObject(in
string theIOR);
996 long long GetLocalImpl(in
string theHostname, in
long thePID, out
boolean isLocal);
1048 short GetLastChildTag();
1059 boolean FindSubObject (in
long atag, out
SObject obj);
1068 in
string aTypeOfAttribute);
1074 boolean ReferencedObject(out
SObject obj);
1082 ListOfAttributes GetAllAttributes();
1105 string GetComment();
1118 void SetAttrString(in
string name, in
string value);
1126 long long GetLocalImpl(in
string theHostname, in
long thePID, out
boolean isLocal);
1155 string GetClassType();
1166 long long GetLocalImpl(in
string theHostname, in
long thePID, out
boolean isLocal);
1185 string ComponentDataType();
1190 boolean ComponentIOR (out ID theID);
1246 void InitEx(in
boolean allLevels);
1274 void Init(in
boolean allLevels);
1305 boolean Append(in
SObject theObject);
1312 boolean Remove(in
SObject theObject);
1324 boolean SetCurrentObject(in
SObject theObject);
1328 boolean SetRootCurrent();
1332 boolean HasChildren(in
SObject theObject);
1336 boolean SortChildren(in
SObject theObject, in
boolean theAscendingOrder);
1344 boolean SetName(in
string theName);
1352 boolean IsUseCase(in
SObject theObject);
1356 boolean IsUseCaseNode(in
SObject theObject);
1364 SObject AddUseCase(in
string theName);
1400 TMPFile Save(in
SComponent theComponent, in
string theURL, in
boolean isMultiFile);
1413 TMPFile SaveASCII(in
SComponent theComponent, in
string theURL, in
boolean isMultiFile);
1424 boolean Load(in
SComponent theComponent, in TMPFile theStream, in
string theURL, in
boolean isMultiFile);
1435 boolean LoadASCII(in
SComponent theComponent, in TMPFile theStream, in
string theURL, in
boolean isMultiFile);
1451 string ComponentDataType();
1468 string IORToLocalPersistentID (in
SObject theSObject,
1469 in
string IORString,
1470 in
boolean isMultiFile,
1471 in
boolean isASCII);
1487 string LocalPersistentIDToIOR (in
SObject theSObject,
1488 in
string aLocalPersistentID,
1489 in
boolean isMultiFile,
1512 SObject PublishInStudy(in
Study theStudy, in
SObject theSObject, in Object theObject, in
string theName);
1521 boolean CanCopy(in
SObject theObject);
1525 TMPFile CopyFrom(in
SObject theObject, out
long theObjectID);
1529 boolean CanPaste(in
string theComponentName, in
long theObjectID);
1533 SObject PasteInto(in TMPFile theStream, in
long theObjectID, in
SObject theObject);