30 #ifndef _SALOMEDS_IDL_
31 #define _SALOMEDS_IDL_
98 oneway
void notifyObserverID(in
string theID, in
long event);
156 PersistentReference GetPersistentReference();
158 SalomeReference GetTransientReference();
173 SComponent FindComponent (in
string aComponentName);
177 SComponent FindComponentID(in ID aComponentID);
185 SObject FindObject (in
string anObjectName);
191 SObject FindObjectID (in ID aObjectID);
197 SObject CreateObjectID (in ID aObjectID);
203 SObject FindObjectIOR (in ID aObjectIOR);
209 ListOfSObject FindObjectByName(in
string anObjectName, in
string aComponentName);
215 SObject FindObjectByPath(in
string thePath);
218 string GetObjectPath(in Object theObject);
226 void SetContext(in
string thePath);
236 ListOfStrings GetObjectNames(in
string theContext);
241 ListOfStrings GetDirectoryNames(in
string theContext);
246 ListOfStrings GetFileNames(in
string theContext);
251 ListOfStrings GetComponentNames(in
string theContext);
276 void UpdateIORLabelMap(in
string anIOR, in
string anEntry);
293 boolean IsModified();
313 string GetLastModificationDate();
319 ListOfDates GetModificationsDate();
325 string ConvertObjectToIOR(in Object theObject);
331 Object ConvertIORToObject(in
string theIOR);
343 void EnableUseCaseAutoFilling(in
boolean isEnabled);
348 void AddPostponed(in
string theIOR);
350 void AddCreatedPostponed(in
string theIOR);
352 void RemovePostponed(in
long theUndoLimit);
354 void UndoPostponed(in
long theWay);
356 boolean DumpStudy(in
string thePath,
357 in
string theBaseName,
358 in
boolean isPublished,
359 in
boolean isMultiFile);
374 AttributeParameter GetModuleParameters(in
string theID, in
string theModuleName, in
long theSavePoint);
382 string GetDefaultScript(in
string theID, in
string theModuleName);
390 long long GetLocalImpl(in
string theHostname, in
long thePID, out
boolean isLocal);
398 void SetStudyLock(in
string theLockerID);
404 boolean IsStudyLocked();
411 void UnLockStudy(in
string theLockerID);
415 ListOfStrings GetLockerID();
423 void SetReal( in
string theVarName, in
double theValue );
431 void SetInteger( in
string theVarName, in
long theValue );
438 void SetBoolean( in
string theVarName, in
boolean theValue );
446 void SetString( in
string theVarName, in
string theValue );
450 void SetStringAsDouble( in
string theVarName, in
double theValue );
456 double GetReal( in
string theVarName );
462 long GetInteger( in
string theVarName );
468 boolean GetBoolean( in
string theVarName );
474 string GetString( in
string theVarName );
482 boolean IsReal( in
string theVarName );
489 boolean IsInteger( in
string theVarName );
496 boolean IsBoolean( in
string theVarName );
503 boolean IsString( in
string theVarName );
511 boolean IsVariable( in
string theVarName );
515 ListOfStrings GetVariableNames();
524 boolean RemoveVariable( in
string theVarName );
534 boolean RenameVariable( in
string theVarName, in
string theNewVarName );
543 boolean IsVariableUsed( in
string theVarName );
550 ListOfListOfStrings ParseVariables( in
string theVars );
673 boolean FindAttribute(in
SObject anObject,
675 in
string aTypeOfAttribute);
684 void RemoveAttribute(in
SObject anObject,
692 void Addreference(in
SObject anObject,
693 in
SObject theReferencedObject) ;
700 void RemoveReference(in
SObject anObject) ;
727 boolean IsGUID(in
SObject anObject, in
string theGUID);
750 boolean HasOpenCommand();
762 attribute
long UndoLimit;
772 void Undo() raises (LockProtection);
782 void Redo() raises (LockProtection);
789 boolean GetAvailableUndos();
796 boolean GetAvailableRedos();
803 void SetName(in
SObject theSO, in
string theValue) raises (LockProtection);
811 void SetComment(in
SObject theSO, in
string theValue) raises (LockProtection);
819 void SetIOR(in
SObject theSO, in
string theValue) raises (LockProtection);
850 oneway
void ShutdownWithExit();
861 Study NewStudy(in
string study_name);
877 void Close(in
Study aStudy);
887 boolean Save(in
Study aStudy, in
boolean theMultiFile);
893 boolean SaveASCII(in
Study aStudy, in
boolean theMultiFile);
903 boolean SaveAs(in URL aUrl,
905 in
boolean theMultiFile);
914 boolean SaveAsASCII(in URL aUrl,
916 in
boolean theMultiFile);
925 ListOfOpenStudies GetOpenStudies();
933 Study GetStudyByName (in
string aStudyName);
941 Study GetStudyByID (in
short aStudyID);
948 boolean CanCopy(in
SObject theObject);
953 boolean Copy(in
SObject theObject);
958 boolean CanPaste(in
SObject theObject);
972 string ConvertObjectToIOR(in Object theObject);
978 Object ConvertIORToObject(in
string theIOR);
986 long long GetLocalImpl(in
string theHostname, in
long thePID, out
boolean isLocal);
1047 boolean FindSubObject (in
long atag, out
SObject obj);
1056 in
string aTypeOfAttribute);
1062 boolean ReferencedObject(out
SObject obj);
1070 ListOfAttributes GetAllAttributes();
1094 string GetComment();
1107 void SetAttrString(in
string name, in
string value);
1115 long long GetLocalImpl(in
string theHostname, in
long thePID, out
boolean isLocal);
1144 string GetClassType();
1155 long long GetLocalImpl(in
string theHostname, in
long thePID, out
boolean isLocal);
1174 string ComponentDataType();
1179 boolean ComponentIOR (out ID theID);
1235 void InitEx(in
boolean allLevels);
1263 void Init(in
boolean allLevels);
1294 boolean Append(in
SObject theObject);
1301 boolean Remove(in
SObject theObject);
1313 boolean SetCurrentObject(in
SObject theObject);
1317 boolean SetRootCurrent();
1321 boolean HasChildren(in
SObject theObject);
1329 boolean SetName(in
string theName);
1337 boolean IsUseCase(in
SObject theObject);
1341 boolean IsUseCaseNode(in
SObject theObject);
1349 SObject AddUseCase(in
string theName);
1385 TMPFile Save(in
SComponent theComponent, in
string theURL, in
boolean isMultiFile);
1398 TMPFile SaveASCII(in
SComponent theComponent, in
string theURL, in
boolean isMultiFile);
1409 boolean Load(in
SComponent theComponent, in TMPFile theStream, in
string theURL, in
boolean isMultiFile);
1420 boolean LoadASCII(in
SComponent theComponent, in TMPFile theStream, in
string theURL, in
boolean isMultiFile);
1436 string ComponentDataType();
1453 string IORToLocalPersistentID (in
SObject theSObject,
1454 in
string IORString,
1455 in
boolean isMultiFile,
1456 in
boolean isASCII);
1472 string LocalPersistentIDToIOR (in
SObject theSObject,
1473 in
string aLocalPersistentID,
1474 in
boolean isMultiFile,
1497 SObject PublishInStudy(in
Study theStudy, in
SObject theSObject, in Object theObject, in
string theName);
1506 boolean CanCopy(in
SObject theObject);
1510 TMPFile CopyFrom(in
SObject theObject, out
long theObjectID);
1514 boolean CanPaste(in
string theComponentName, in
long theObjectID);
1518 SObject PasteInto(in TMPFile theStream, in
long theObjectID, in
SObject theObject);