SObject interface More...
Public Member Functions | |
boolean | IsNull () |
ID | GetID () |
SComponent | GetFatherComponent () |
SObject | GetFather () |
short | Tag () |
short | GetLastChildTag () |
short | Depth () |
boolean | FindSubObject (in long atag, out SObject obj) |
boolean | FindAttribute (out GenericAttribute anAttribute, in string aTypeOfAttribute) |
boolean | ReferencedObject (out SObject obj) |
ListOfAttributes | GetAllAttributes () |
Study | GetStudy () |
Object | GetObject () |
string | GetName () |
string | GetComment () |
string | GetIOR () |
void | SetAttrString (in string name, in string value) |
long long | GetLocalImpl (in string theHostname, in long thePID, out boolean isLocal) |
void | Register () |
Increase the reference count (mark as used by another object). More... | |
void | UnRegister () |
Decrease the reference count (release by another object). More... | |
void | Destroy () |
Obsolete, left for compatibility reasons only. Use UnRegister() instead. More... | |
Data Fields | |
attribute string | Name |
SObject interface
The objects in the study are built by the StudyBuilder. The SObject interface provides methods for elementary inquiries, like getting an object ID or its attribuites.
Tag of an item in SALOME application is an integer value uniquely defining an item in the tree-type data structure.
ID of an item is a description of item's position in the tree-type data structure. ID is a list of tags and it has the following form: 0:2:1:1
.
boolean SALOMEDS::SObject::IsNull | ( | ) |
Returns true if the SObject does not belong to any Study
ID SALOMEDS::SObject::GetID | ( | ) |
Gets an object ID
SComponent SALOMEDS::SObject::GetFatherComponent | ( | ) |
Acquisition of the father Component of the SObject
SObject SALOMEDS::SObject::GetFather | ( | ) |
Acquisition of the father SObject of the SObject
short SALOMEDS::SObject::Tag | ( | ) |
Gets the tag of a SObject
short SALOMEDS::SObject::GetLastChildTag | ( | ) |
Returns a tag of the last child SObject (if any) of this SObject. Returns zero if this SObject has no children.
short SALOMEDS::SObject::Depth | ( | ) |
Gets the depth of a SObject
boolean SALOMEDS::SObject::FindSubObject | ( | in long | atag, |
out SObject | obj | ||
) |
Looks for subobjects of a given SObject.
atag | Tag of the given SObject |
boolean SALOMEDS::SObject::FindAttribute | ( | out GenericAttribute | anAttribute, |
in string | aTypeOfAttribute | ||
) |
Looks for attributes of a given SObject
aTypeOfAttribute | String value defining the type of the required attribute of the given SObject. |
See example1 for an example of this method usage in batchmode of SALOME application.
boolean SALOMEDS::SObject::ReferencedObject | ( | out SObject | obj | ) |
Looks for a SObject which the given SObject refers to.
ListOfAttributes SALOMEDS::SObject::GetAllAttributes | ( | ) |
Gets all attributes of a given SObject
See example17 for an example of this method usage in batchmode of SALOME application.
Study SALOMEDS::SObject::GetStudy | ( | ) |
Gets the study of a given SObject.
Object SALOMEDS::SObject::GetObject | ( | ) |
Gets the CORBA object by its own IOR attribute. Returns nil, if can't.
string SALOMEDS::SObject::GetName | ( | ) |
Returns the name attribute value of this SObject. Returns empty string if there is no name attribute.
string SALOMEDS::SObject::GetComment | ( | ) |
Returns the comment attribute value of this SObject. Returns empty string if there is no comment attribute.
string SALOMEDS::SObject::GetIOR | ( | ) |
Returns the IOR attribute value of this SObject. Returns empty string if there is no IOR attribute.
void SALOMEDS::SObject::SetAttrString | ( | in string | name, |
in string | value | ||
) |
Set an attribute value (of type string)
name | the name of the attribute |
value | the value of the attribute |
long long SALOMEDS::SObject::GetLocalImpl | ( | in string | theHostname, |
in long | thePID, | ||
out boolean | isLocal | ||
) |
|
inherited |
Increase the reference count (mark as used by another object).
|
inherited |
Decrease the reference count (release by another object).
|
inherited |
Obsolete, left for compatibility reasons only. Use UnRegister() instead.
attribute string SALOMEDS::SObject::Name |
Name of the SObject