Back to index

salome-kernel  6.5.0
Functions
SALOMEDS_Study.cxx File Reference
#include "utilities.h"
#include "SALOMEDS_Study.hxx"
#include "SALOMEDS.hxx"
#include "SALOMEDS_SComponent.hxx"
#include "SALOMEDS_SObject.hxx"
#include "SALOMEDS_StudyBuilder.hxx"
#include "SALOMEDS_ChildIterator.hxx"
#include "SALOMEDS_SComponentIterator.hxx"
#include "SALOMEDS_AttributeStudyProperties.hxx"
#include "SALOMEDS_AttributeParameter.hxx"
#include "SALOMEDS_UseCaseBuilder.hxx"
#include "SALOMEDSImpl_SComponent.hxx"
#include "SALOMEDSImpl_SObject.hxx"
#include "SALOMEDSImpl_StudyBuilder.hxx"
#include "SALOMEDSImpl_ChildIterator.hxx"
#include "SALOMEDSImpl_SComponentIterator.hxx"
#include "SALOMEDSImpl_AttributeStudyProperties.hxx"
#include "SALOMEDSImpl_AttributeParameter.hxx"
#include "SALOMEDSImpl_GenericVariable.hxx"
#include "SALOMEDSImpl_UseCaseBuilder.hxx"
#include "SALOMEDS_Driver_i.hxx"
#include "SALOMEDS_Study_i.hxx"
#include "Utils_ORB_INIT.hxx"
#include "Utils_SINGLETON.hxx"
#include "Basics_Utils.hxx"
#include <sys/types.h>
#include <unistd.h>

Go to the source code of this file.

Functions

 _PTR (SComponent) SALOMEDS_Study
 _PTR (SObject) SALOMEDS_Study
 _PTR (ChildIterator) SALOMEDS_Study
 _PTR (SComponentIterator) SALOMEDS_Study
 _PTR (StudyBuilder) SALOMEDS_Study
 _PTR (AttributeStudyProperties) SALOMEDS_Study
 _PTR (UseCaseBuilder) SALOMEDS_Study
 _PTR (AttributeParameter) SALOMEDS_Study

Function Documentation

_PTR ( SComponent  )

Definition at line 132 of file SALOMEDS_Study.cxx.

{
  SALOMEDSClient_SComponent* aSCO = NULL;
  if (_isLocal) {
    SALOMEDS::Locker lock;

    SALOMEDSImpl_SComponent aSCO_impl = _local_impl->FindComponent(aComponentName);
    if (!aSCO_impl) return _PTR(SComponent)(aSCO);
    aSCO = new SALOMEDS_SComponent(aSCO_impl);
  }
  else {
    SALOMEDS::SComponent_var aSCO_impl = _corba_impl->FindComponent((char*)aComponentName.c_str());
    if (CORBA::is_nil(aSCO_impl)) return _PTR(SComponent)(aSCO);
    aSCO = new SALOMEDS_SComponent(aSCO_impl);
  }
  return _PTR(SComponent)(aSCO);
}

Here is the call graph for this function:

_PTR ( SObject  )

Definition at line 168 of file SALOMEDS_Study.cxx.

{
  SALOMEDSClient_SObject* aSO = NULL;

  if (_isLocal) {
    SALOMEDS::Locker lock;

    SALOMEDSImpl_SObject aSO_impl = _local_impl->FindObject(anObjectName);
    if (!aSO_impl) return _PTR(SObject)(aSO);
    if(aSO_impl.IsComponent()) {
        SALOMEDSImpl_SComponent aSCO_impl = aSO_impl;
        return _PTR(SObject)(new SALOMEDS_SComponent(aSCO_impl));
    }   
    aSO = new SALOMEDS_SObject(aSO_impl);
  }
  else { 
    SALOMEDS::SObject_var aSO_impl = _corba_impl->FindObject((char*)anObjectName.c_str());
    if (CORBA::is_nil(aSO_impl)) return _PTR(SObject)(aSO);
    SALOMEDS::SComponent_var aSCO_impl = SALOMEDS::SComponent::_narrow(aSO_impl);
    if (!CORBA::is_nil(aSCO_impl)) return _PTR(SObject)(new SALOMEDS_SComponent(aSCO_impl));
    aSO = new SALOMEDS_SObject(aSO_impl);
  }

  return _PTR(SObject)(aSO);
}

Here is the call graph for this function:

_PTR ( ChildIterator  )

Definition at line 387 of file SALOMEDS_Study.cxx.

{
  SALOMEDS_SObject* aSO = dynamic_cast<SALOMEDS_SObject*>(theSO.get());
  SALOMEDSClient_ChildIterator* aCI = NULL; 
  if (_isLocal) {
    SALOMEDS::Locker lock;
    SALOMEDSImpl_ChildIterator aCIimpl = _local_impl->NewChildIterator(*(aSO->GetLocalImpl()));
    aCI = new SALOMEDS_ChildIterator(aCIimpl);
  }
  else {
    SALOMEDS::ChildIterator_var aCIimpl = _corba_impl->NewChildIterator(aSO->GetCORBAImpl());
    aCI = new SALOMEDS_ChildIterator(aCIimpl);
  }

  return _PTR(ChildIterator)(aCI);
}

Here is the call graph for this function:

_PTR ( SComponentIterator  )

Definition at line 404 of file SALOMEDS_Study.cxx.

{
  SALOMEDSClient_SComponentIterator* aCI = NULL; 
  if (_isLocal) {
    SALOMEDS::Locker lock;

    SALOMEDSImpl_SComponentIterator aCIimpl = _local_impl->NewComponentIterator();
    aCI = new SALOMEDS_SComponentIterator(aCIimpl);
  }
  else {
    SALOMEDS::SComponentIterator_var aCIimpl = _corba_impl->NewComponentIterator();
    aCI = new SALOMEDS_SComponentIterator(aCIimpl);
  }

  return _PTR(SComponentIterator)(aCI);
}

Here is the call graph for this function:

_PTR ( StudyBuilder  )

Definition at line 421 of file SALOMEDS_Study.cxx.

{
  SALOMEDSClient_StudyBuilder* aSB = NULL; 
  if (_isLocal) {
    SALOMEDS::Locker lock;

    SALOMEDSImpl_StudyBuilder* aSBimpl = _local_impl->NewBuilder();
    aSB = new SALOMEDS_StudyBuilder(aSBimpl);
  }
  else {
    SALOMEDS::StudyBuilder_var aSBimpl = _corba_impl->NewBuilder();
    aSB = new SALOMEDS_StudyBuilder(aSBimpl);
  }

  return _PTR(StudyBuilder)(aSB);
}

Here is the call graph for this function:

_PTR ( AttributeStudyProperties  )

Definition at line 562 of file SALOMEDS_Study.cxx.

{
  SALOMEDSClient_AttributeStudyProperties* aProp;
  if (_isLocal) {
    SALOMEDS::Locker lock;
    aProp = new SALOMEDS_AttributeStudyProperties(_local_impl->GetProperties());
  }
  else aProp = new SALOMEDS_AttributeStudyProperties((SALOMEDS::AttributeStudyProperties_var)_corba_impl->GetProperties());
  return _PTR(AttributeStudyProperties)(aProp);
}

Here is the call graph for this function:

_PTR ( UseCaseBuilder  )

Definition at line 600 of file SALOMEDS_Study.cxx.

{
  SALOMEDSClient_UseCaseBuilder* aUB = NULL;
  if (_isLocal) {
    SALOMEDS::Locker lock;

    SALOMEDSImpl_UseCaseBuilder* aUBimpl = _local_impl->GetUseCaseBuilder();
    aUB = new SALOMEDS_UseCaseBuilder(aUBimpl);
  }
  else {
    SALOMEDS::UseCaseBuilder_var aUBimpl = _corba_impl->GetUseCaseBuilder();
    aUB = new SALOMEDS_UseCaseBuilder(aUBimpl);
  }

  return _PTR(UseCaseBuilder)(aUB);
}

Here is the call graph for this function:

_PTR ( AttributeParameter  )

Definition at line 975 of file SALOMEDS_Study.cxx.

{
  SALOMEDSClient_AttributeParameter* AP = NULL;
  if(theSavePoint >= 0) {
    if (_isLocal) {
      SALOMEDS::Locker lock;
      AP = new SALOMEDS_AttributeParameter(_local_impl->GetCommonParameters(theID.c_str(), theSavePoint));
    }
    else {
      AP = new SALOMEDS_AttributeParameter(_corba_impl->GetCommonParameters(theID.c_str(), theSavePoint));
    }
  }
  return _PTR(AttributeParameter)(AP);
}

Here is the call graph for this function: