Version: 9.12.0
SALOMEDS_SObject_i Class Reference

#include <SALOMEDS_SObject_i.hxx>

Inheritance diagram for SALOMEDS_SObject_i:

Public Member Functions

 SALOMEDS_SObject_i (const SALOMEDSImpl_SObject &, CORBA::ORB_ptr)
 Function : constructor Purpose : More...
 
virtual ~SALOMEDS_SObject_i ()
 Function : destructor Purpose : More...
 
virtual PortableServer::POA_ptr _default_POA ()
 Get default POA for the servant object. More...
 
virtual CORBA::Boolean IsNull ()
 Returns true if the SObject does not belong to any Study. More...
 
virtual char * GetID ()
 Function :GetID Purpose : More...
 
virtual SALOMEDS::SComponent_ptr GetFatherComponent ()
 Function : GetFatherComponent Purpose : More...
 
virtual SALOMEDS::SObject_ptr GetFather ()
 Function : GetFather Purpose : More...
 
virtual CORBA::Boolean FindAttribute (SALOMEDS::GenericAttribute_out anAttribute, const char *aTypeOfAttribute)
 Function : FindAttribute Purpose : Find attribute of given type on this SObject. More...
 
virtual CORBA::Boolean ReferencedObject (SALOMEDS::SObject_out obj)
 Function : ReferencedObject Purpose : More...
 
virtual CORBA::Boolean FindSubObject (CORBA::Long atag, SALOMEDS::SObject_out obj)
 Function : FindSubObject Purpose : More...
 
virtual char * Name ()
 Function : Name Purpose : gets a name. More...
 
virtual void Name (const char *)
 Function : Name Purpose : sets a name. More...
 
virtual SALOMEDS::ListOfAttributesGetAllAttributes ()
 Function : GetAllAttributes Purpose : Returns list of all attributes for this sobject. More...
 
virtual CORBA::Object_ptr GetObject ()
 Function : GetObject Purpose : More...
 
virtual char * GetName ()
 Function : GetName Purpose : More...
 
virtual char * GetComment ()
 Function : GetComment Purpose : More...
 
virtual char * GetIOR ()
 Function : GetIOR Purpose : More...
 
virtual void SetAttrString (const char *, const char *)
 Function : SetAttrString Purpose : More...
 
virtual CORBA::Short Tag ()
 Function : Tag Purpose : More...
 
virtual CORBA::Short GetLastChildTag ()
 Function : GetLastChildTag Purpose : More...
 
virtual CORBA::Short Depth ()
 Function : Depth Purpose : More...
 
virtual CORBA::LongLong GetLocalImpl (const char *theHostname, CORBA::Long thePID, CORBA::Boolean &isLocal)
 
virtual void Register ()
 Increment reference counter. More...
 
virtual void UnRegister ()
 Decrement reference counter. More...
 
virtual void Destroy ()
 Decrement reference counter. More...
 

Static Public Member Functions

static SALOMEDS::SObject_ptr New (const SALOMEDSImpl_SObject &, CORBA::ORB_ptr)
 

Protected Attributes

CORBA::ORB_var _orb
 
SALOMEDSImpl_SObject_impl
 
PortableServer::POA_var myPOA
 
int myRefCounter
 

Constructor & Destructor Documentation

◆ SALOMEDS_SObject_i()

SALOMEDS_SObject_i::SALOMEDS_SObject_i ( const SALOMEDSImpl_SObject impl,
CORBA::ORB_ptr  orb 
)

◆ ~SALOMEDS_SObject_i()

SALOMEDS_SObject_i::~SALOMEDS_SObject_i ( )
virtual

Function : destructor Purpose :

References _impl.

Member Function Documentation

◆ _default_POA()

PortableServer::POA_ptr SALOMEDS_SObject_i::_default_POA ( )
virtual

Get default POA for the servant object.

This function is implicitly called from "_this()" function. Default POA can be set via the constructor.

Returns
reference to the default POA for the servant

Reimplemented from SALOME::GenericObj_i.

References SALOMEDS_Study_i::GetThePOA(), and SALOME::GenericObj_i::myPOA.

◆ Depth()

CORBA::Short SALOMEDS_SObject_i::Depth ( )
virtual

Function : Depth Purpose :

< TODO: conversion from int to CORBA::Short

References _impl, SALOMEDSImpl_SObject::Depth(), and SALOMEDS::lock().

◆ Destroy()

void SALOME::GenericObj_i::Destroy ( )
virtualinherited

Decrement reference counter.

Deprecated:
Use UnRegister() instead.

References MESSAGE, and SALOME::GenericObj_i::UnRegister().

◆ FindAttribute()

CORBA::Boolean SALOMEDS_SObject_i::FindAttribute ( SALOMEDS::GenericAttribute_out  anAttribute,
const char *  aTypeOfAttribute 
)
virtual

Function : FindAttribute Purpose : Find attribute of given type on this SObject.

References _impl, _orb, SALOMEDS_GenericAttribute_i::CreateAttribute(), SALOMEDSImpl_SObject::FindAttribute(), and SALOMEDS::lock().

◆ FindSubObject()

CORBA::Boolean SALOMEDS_SObject_i::FindSubObject ( CORBA::Long  atag,
SALOMEDS::SObject_out  obj 
)
virtual

◆ GetAllAttributes()

SALOMEDS::ListOfAttributes * SALOMEDS_SObject_i::GetAllAttributes ( )
virtual

Function : GetAllAttributes Purpose : Returns list of all attributes for this sobject.

< TODO: conversion from size_t to int

References _impl, _orb, SALOMEDS_GenericAttribute_i::CreateAttribute(), SALOMEDSImpl_SObject::GetAllAttributes(), and SALOMEDS::lock().

◆ GetComment()

char * SALOMEDS_SObject_i::GetComment ( )
virtual

Function : GetComment Purpose :

References _impl, SALOMEDSImpl_SObject::GetComment(), and SALOMEDS::lock().

◆ GetFather()

SALOMEDS::SObject_ptr SALOMEDS_SObject_i::GetFather ( )
virtual

Function : GetFather Purpose :

References _impl, _orb, SALOMEDSImpl_SObject::GetFather(), SALOMEDS::lock(), and New().

◆ GetFatherComponent()

SALOMEDS::SComponent_ptr SALOMEDS_SObject_i::GetFatherComponent ( )
virtual

Function : GetFatherComponent Purpose :

References _impl, _orb, SALOMEDSImpl_SObject::GetFatherComponent(), SALOMEDS::lock(), and SALOMEDS_SComponent_i::New().

◆ GetID()

char * SALOMEDS_SObject_i::GetID ( )
virtual

Function :GetID Purpose :

References _impl, SALOMEDSImpl_SObject::GetID(), and SALOMEDS::lock().

◆ GetIOR()

char * SALOMEDS_SObject_i::GetIOR ( )
virtual

Function : GetIOR Purpose :

References _impl, SALOMEDSImpl_SObject::GetIOR(), and SALOMEDS::lock().

◆ GetLastChildTag()

CORBA::Short SALOMEDS_SObject_i::GetLastChildTag ( )
virtual

Function : GetLastChildTag Purpose :

References _impl, SALOMEDSImpl_SObject::GetLastChildTag(), and SALOMEDS::lock().

◆ GetLocalImpl()

CORBA::LongLong SALOMEDS_SObject_i::GetLocalImpl ( const char *  theHostname,
CORBA::Long  thePID,
CORBA::Boolean &  isLocal 
)
virtual

◆ GetName()

char * SALOMEDS_SObject_i::GetName ( )
virtual

Function : GetName Purpose :

References _impl, SALOMEDSImpl_SObject::GetName(), and SALOMEDS::lock().

◆ GetObject()

CORBA::Object_ptr SALOMEDS_SObject_i::GetObject ( )
virtual

◆ IsNull()

CORBA::Boolean SALOMEDS_SObject_i::IsNull ( )
virtual

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

References _impl, SALOMEDSImpl_SObject::IsNull(), and SALOMEDS::lock().

◆ Name() [1/2]

char * SALOMEDS_SObject_i::Name ( )
virtual

Function : Name Purpose : gets a name.

References _impl, SALOMEDS::lock(), and SALOMEDSImpl_SObject::Name().

◆ Name() [2/2]

void SALOMEDS_SObject_i::Name ( const char *  name)
virtual

Function : Name Purpose : sets a name.

References _impl, SALOMEDS::lock(), pythfilter::name, and SALOMEDSImpl_SObject::Name().

◆ New()

◆ ReferencedObject()

CORBA::Boolean SALOMEDS_SObject_i::ReferencedObject ( SALOMEDS::SObject_out  obj)
virtual

◆ Register()

void SALOME::GenericObj_i::Register ( )
virtualinherited

Increment reference counter.

References IS_OBJ_IN_QUESTION, MESSAGE, and SALOME::GenericObj_i::myRefCounter.

◆ SetAttrString()

void SALOMEDS_SObject_i::SetAttrString ( const char *  name,
const char *  value 
)
virtual

Function : SetAttrString Purpose :

References _impl, SALOMEDS::lock(), pythfilter::name, and SALOMEDSImpl_SObject::SetAttrString().

◆ Tag()

CORBA::Short SALOMEDS_SObject_i::Tag ( )
virtual

Function : Tag Purpose :

< TODO: conversion from int to CORBA::Short

References _impl, SALOMEDS::lock(), and SALOMEDSImpl_SObject::Tag().

◆ UnRegister()

void SALOME::GenericObj_i::UnRegister ( )
virtualinherited

Decrement reference counter.

As soon as reference counter goes to zero, the object is automatically deactivated.

References IS_OBJ_IN_QUESTION, MESSAGE, SALOME::GenericObj_i::myPOA, and SALOME::GenericObj_i::myRefCounter.

Referenced by SALOME::GenericObj_i::Destroy(), and SALOME_PyNode.Generic::Destroy().

Field Documentation

◆ _impl

◆ _orb

◆ myPOA

◆ myRefCounter

int SALOME::GenericObj_i::myRefCounter
protectedinherited