Version: 9.12.0
SALOMEDS::SComponent Interface Reference

SComponent interface More...

import"SALOMEDS.idl";

Inheritance diagram for SALOMEDS::SComponent:

Public Member Functions

string ComponentDataType ()
 Gets the data type of the given SComponent. More...
 
boolean ComponentIOR (out ID theID)
 Gets the IOR of the given component. More...
 
boolean IsNull ()
 Returns true if the SObject does not belong to any Study. More...
 
ID GetID ()
 Gets an object ID. More...
 
SComponent GetFatherComponent ()
 Acquisition of the father Component of the SObject. More...
 
SObject GetFather ()
 Acquisition of the father SObject of the SObject. More...
 
short Tag ()
 Gets the tag of a SObject. More...
 
short GetLastChildTag ()
 Returns a tag of the last child SObject (if any) of this SObject. More...
 
short Depth ()
 Gets the depth of a SObject. More...
 
boolean FindSubObject (in long atag, out SObject obj)
 Looks for subobjects of a given SObject. More...
 
boolean FindAttribute (out GenericAttribute anAttribute, in string aTypeOfAttribute)
 Looks for attributes of a given SObject. More...
 
boolean ReferencedObject (out SObject obj)
 Looks for a SObject which the given SObject refers to. More...
 
ListOfAttributes GetAllAttributes ()
 Gets all attributes of a given SObject. More...
 
Object GetObject ()
 Gets the CORBA object by its own IOR attribute. More...
 
string GetName ()
 Returns the name attribute value of this SObject. More...
 
string GetComment ()
 Returns the comment attribute value of this SObject. More...
 
string GetIOR ()
 Returns the IOR attribute value of this SObject. More...
 
void SetAttrString (in string name, in string value)
 Set an attribute value (of type string) More...
 
long long GetLocalImpl (in string theHostname, in long thePID, out boolean isLocal)
 Private method, returns an implementation of this SObject. More...
 
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. More...
 

Data Fields

attribute string Name
 Name of the SObject. More...
 

Detailed Description

SComponent interface

The SComponent interface establishes in the study a permanent assocition to the Components integrated into SALOME platform. The SComponent interface is a specialization of the SObject interface. It inherits the most of its methods from the SObject interface.

Member Function Documentation

◆ ComponentDataType()

string SALOMEDS::SComponent::ComponentDataType ( )

Gets the data type of the given SComponent.

Returns
The data type of this SComponent.

◆ ComponentIOR()

boolean SALOMEDS::SComponent::ComponentIOR ( out ID  theID)

Gets the IOR of the given component.

Returns
True (if there is an instance of the given component) and its IOR.

◆ Depth()

short SALOMEDS::SObject::Depth ( )
inherited

Gets the depth of a SObject.

Returns
the depth of a SObject.

◆ Destroy()

void SALOME::GenericObj::Destroy ( )
inherited

Obsolete, left for compatibility reasons only.

Use UnRegister() instead.

◆ FindAttribute()

boolean SALOMEDS::SObject::FindAttribute ( out GenericAttribute  anAttribute,
in string  aTypeOfAttribute 
)
inherited

Looks for attributes of a given SObject.

Parameters
aTypeOfAttributeString value defining the type of the required attribute of the given SObject.
Returns
True if it finds an attribute of a definite type of the given SObject as well as the discovered attribute.

See example1 for an example of this method usage in batchmode of SALOME application.

◆ FindSubObject()

boolean SALOMEDS::SObject::FindSubObject ( in long  atag,
out SObject  obj 
)
inherited

Looks for subobjects of a given SObject.

Parameters
atagTag of the given SObject
Returns
True if it finds a subobject of the SObject with a definite tag as well as the required subobject.

◆ GetAllAttributes()

ListOfAttributes SALOMEDS::SObject::GetAllAttributes ( )
inherited

Gets all attributes of a given SObject.

Returns
The list of all attributes of the given SObject.

See example17 for an example of this method usage in batchmode of SALOME application.

◆ GetComment()

string SALOMEDS::SObject::GetComment ( )
inherited

Returns the comment attribute value of this SObject.

Returns empty string if there is no comment attribute.

◆ GetFather()

SObject SALOMEDS::SObject::GetFather ( )
inherited

Acquisition of the father SObject of the SObject.

Returns
the father SObject of the given SObject.

◆ GetFatherComponent()

SComponent SALOMEDS::SObject::GetFatherComponent ( )
inherited

Acquisition of the father Component of the SObject.

Returns
The father Component of the SObject.

◆ GetID()

ID SALOMEDS::SObject::GetID ( )
inherited

Gets an object ID.

Returns
ID of the SObject.

◆ GetIOR()

string SALOMEDS::SObject::GetIOR ( )
inherited

Returns the IOR attribute value of this SObject.

Returns empty string if there is no IOR attribute.

◆ GetLastChildTag()

short SALOMEDS::SObject::GetLastChildTag ( )
inherited

Returns a tag of the last child SObject (if any) of this SObject.

Returns zero if this SObject has no children.

◆ GetLocalImpl()

long long SALOMEDS::SObject::GetLocalImpl ( in string  theHostname,
in long  thePID,
out boolean  isLocal 
)
inherited

Private method, returns an implementation of this SObject.

Parameters
theHostnameis a hostname of the caller
thePIDis a process ID of the caller
isLocalis set True if the SObject is launched locally with the caller

◆ GetName()

string SALOMEDS::SObject::GetName ( )
inherited

Returns the name attribute value of this SObject.

Returns empty string if there is no name attribute.

◆ GetObject()

Object SALOMEDS::SObject::GetObject ( )
inherited

Gets the CORBA object by its own IOR attribute.

Returns nil, if can't.

Returns
The CORBA object of the SObject.

◆ IsNull()

boolean SALOMEDS::SObject::IsNull ( )
inherited

Returns true if the SObject does not belong to any Study.

◆ ReferencedObject()

boolean SALOMEDS::SObject::ReferencedObject ( out SObject  obj)
inherited

Looks for a SObject which the given SObject refers to.

Returns
The object which the given SObject refers to as well as True if it finds this object.

◆ Register()

void SALOME::GenericObj::Register ( )
inherited

Increase the reference count (mark as used by another object).

◆ SetAttrString()

void SALOMEDS::SObject::SetAttrString ( in string  name,
in string  value 
)
inherited

Set an attribute value (of type string)

Parameters
namethe name of the attribute
valuethe value of the attribute

◆ Tag()

short SALOMEDS::SObject::Tag ( )
inherited

Gets the tag of a SObject.

Returns
the tag of a SObject.

◆ UnRegister()

void SALOME::GenericObj::UnRegister ( )
inherited

Decrease the reference count (release by another object).

Referenced by SALOME_PyNode.Generic::Destroy().

Field Documentation

◆ Name

attribute string SALOMEDS::SObject::Name
inherited

Name of the SObject.