Back to index

salome-kernel  6.5.0
Functions
SALOMEDS_AttributeParameter.cxx File Reference
#include "SALOMEDS_AttributeParameter.hxx"
#include "SALOMEDS.hxx"
#include <string>

Go to the source code of this file.

Functions

 _PTR (AttributeParameter) SALOMEDS_AttributeParameter
 Function : GetFather Purpose : Returns a father attribute for this attribute.

Function Documentation

_PTR ( AttributeParameter  )

Function : GetFather Purpose : Returns a father attribute for this attribute.

Definition at line 392 of file SALOMEDS_AttributeParameter.cxx.

{
  SALOMEDSClient_AttributeParameter* AP = NULL;
  if(_isLocal) {
    SALOMEDS::Locker lock; 
    SALOMEDSImpl_AttributeParameter* AP_impl = dynamic_cast<SALOMEDSImpl_AttributeParameter*>(_local_impl)->GetFather();
    if(!AP_impl) return _PTR(AttributeParameter)(AP);
    AP = new SALOMEDS_AttributeParameter(AP_impl);
  }
  else {
    SALOMEDS::AttributeParameter_var AP_impl = SALOMEDS::AttributeParameter::_narrow(_corba_impl)->GetFather();
    if(CORBA::is_nil(AP_impl)) return _PTR(AttributeParameter)(AP);
    AP = new SALOMEDS_AttributeParameter(AP_impl);
  }
  
  return _PTR(AttributeParameter)(AP);
}

Here is the call graph for this function: