Back to index

salome-kernel  6.5.0
Defines | Functions
SALOMEDSImpl_AttributeIOR.cxx File Reference
#include "SALOMEDSImpl_AttributeIOR.hxx"
#include "SALOMEDSImpl_Study.hxx"
#include "SALOME_GenericObj_i.hh"

Go to the source code of this file.

Defines

#define WITHGENERICOBJ

Functions

static CORBA::ORB_var getORB ()
void IORGenericObjDecref (const std::string &anIOR)
void IORGenericObjIncref (const std::string &anIOR)

Define Documentation

#define WITHGENERICOBJ

Definition at line 31 of file SALOMEDSImpl_AttributeIOR.cxx.


Function Documentation

static CORBA::ORB_var getORB ( ) [static]

Definition at line 36 of file SALOMEDSImpl_AttributeIOR.cxx.

{
  int argc=0;
  return CORBA::ORB_init(argc,0);
}

Here is the caller graph for this function:

void IORGenericObjDecref ( const std::string &  anIOR)

Definition at line 42 of file SALOMEDSImpl_AttributeIOR.cxx.

{
  if(anIOR=="")return;
  CORBA::Object_var obj;
  SALOME::GenericObj_var gobj;
  try
    {
      obj = getORB()->string_to_object(anIOR.c_str());
      if(obj->_non_existent())return;
      gobj = SALOME::GenericObj::_narrow(obj);
      if(! CORBA::is_nil(gobj) )
        {
          gobj->UnRegister();
        }
    }
  catch(const CORBA::Exception& e)
    {
    }
}

Here is the call graph for this function:

void IORGenericObjIncref ( const std::string &  anIOR)

Definition at line 62 of file SALOMEDSImpl_AttributeIOR.cxx.

{
  CORBA::Object_var obj;
  SALOME::GenericObj_var gobj;
  try
    {
      obj = getORB()->string_to_object(anIOR.c_str());
      if(obj->_non_existent())return;
      gobj = SALOME::GenericObj::_narrow(obj);
      if(! CORBA::is_nil(gobj) )
        {
          gobj->Register();
        }
    }
  catch(const CORBA::Exception& e)
    {
    }
}

Here is the call graph for this function: