Back to index

salome-kernel  6.5.0
Functions
SALOMEDS_UseCaseBuilder.cxx File Reference
#include "SALOMEDS_UseCaseBuilder.hxx"
#include "SALOMEDS.hxx"
#include "SALOMEDS_SObject.hxx"
#include "SALOMEDS_UseCaseIterator.hxx"
#include "SALOMEDSImpl_SObject.hxx"
#include "SALOMEDSImpl_UseCaseIterator.hxx"
#include <string>

Go to the source code of this file.

Functions

 _PTR (SObject) SALOMEDS_UseCaseBuilder
 _PTR (UseCaseIterator) SALOMEDS_UseCaseBuilder

Function Documentation

_PTR ( SObject  )

Definition at line 142 of file SALOMEDS_UseCaseBuilder.cxx.

{
  SALOMEDS_SObject* father = NULL;
  SALOMEDS_SObject* obj = dynamic_cast<SALOMEDS_SObject*>(theObject.get());
  if (_isLocal) {
    SALOMEDS::Locker lock;
    father = new SALOMEDS_SObject(_local_impl->GetFather(*(obj->GetLocalImpl())));
  }
  else father = new SALOMEDS_SObject(_corba_impl->GetFather(obj->GetCORBAImpl()));
  return _PTR(SObject)(father);
}

Here is the call graph for this function:

_PTR ( UseCaseIterator  )

Definition at line 222 of file SALOMEDS_UseCaseBuilder.cxx.

{
  SALOMEDS_UseCaseIterator* it = NULL;
  SALOMEDS_SObject* obj = (theObject)?dynamic_cast<SALOMEDS_SObject*>(theObject.get()):NULL;
  if (_isLocal) {
    SALOMEDS::Locker lock;
    if(obj)
      it = new SALOMEDS_UseCaseIterator(_local_impl->GetUseCaseIterator(*(obj->GetLocalImpl())));
    else 
      it = new SALOMEDS_UseCaseIterator(_local_impl->GetUseCaseIterator(SALOMEDSImpl_SObject()));
  }
  else {
    if(obj)
      it = new SALOMEDS_UseCaseIterator(_corba_impl->GetUseCaseIterator(obj->GetCORBAImpl()));
    else
      it = new SALOMEDS_UseCaseIterator(_corba_impl->GetUseCaseIterator(SALOMEDS::SObject::_nil()));
  }
  return _PTR(UseCaseIterator)(it);
}

Here is the call graph for this function: