{
SALOMEDS::Locker lock;
if(!_impl || theObject->_is_nil()) return 0;
- return _impl->Append(_impl->GetSObject(theObject->GetID()));
+ CORBA::String_var id = theObject->GetID();
+ return _impl->Append(_impl->GetSObject( id.in() ));
}
//============================================================================
{
SALOMEDS::Locker lock;
if(!_impl || theObject->_is_nil()) return 0;
- return _impl->Remove(_impl->GetSObject(theObject->GetID()));
+ CORBA::String_var id = theObject->GetID();
+ return _impl->Remove(_impl->GetSObject( id.in() ));
}
{
SALOMEDS::Locker lock;
if(!_impl || theFather->_is_nil() || theObject->_is_nil()) return 0;
- return _impl->AppendTo(_impl->GetSObject(theFather->GetID()), _impl->GetSObject(theObject->GetID()));
+ CORBA::String_var idF = theFather->GetID();
+ CORBA::String_var idO = theObject->GetID();
+ return _impl->AppendTo(_impl->GetSObject(idF.in()), _impl->GetSObject( idO.in()));
}
//============================================================================
{
SALOMEDS::Locker lock;
if(!_impl || theFirst->_is_nil() || theNext->_is_nil()) return 0;
- return _impl->InsertBefore(_impl->GetSObject(theFirst->GetID()), _impl->GetSObject(theNext->GetID()));
+ CORBA::String_var idF = theFirst->GetID();
+ CORBA::String_var idN = theNext->GetID();
+ return _impl->InsertBefore(_impl->GetSObject(idF.in()), _impl->GetSObject(idN.in()));
}
{
SALOMEDS::Locker lock;
if(!_impl || theObject->_is_nil()) return 0;
- return _impl->SetCurrentObject(_impl->GetSObject(theObject->GetID()));
+ CORBA::String_var id = theObject->GetID();
+ return _impl->SetCurrentObject(_impl->GetSObject( id.in()));
}
//============================================================================
{
SALOMEDS::Locker lock;
if(!_impl) return 0;
- return _impl->HasChildren(_impl->GetSObject(theObject->GetID()));
+ CORBA::String_var id = theObject->GetID();
+ return _impl->HasChildren(_impl->GetSObject( id.in()));
}
//============================================================================
{
SALOMEDS::Locker lock;
if(!_impl) return 0;
- return _impl->SortChildren(_impl->GetSObject(theObject->GetID()), theAscendingOrder);
+ CORBA::String_var id = theObject->GetID();
+ return _impl->SortChildren(_impl->GetSObject( id.in()), theAscendingOrder);
}
//============================================================================
SALOMEDS::Locker lock;
if(!_impl) return NULL;
- SALOMEDSImpl_SObject aSO = _impl->GetFather(_impl->GetSObject(theObject->GetID()));
+ CORBA::String_var id = theObject->GetID();
+ SALOMEDSImpl_SObject aSO = _impl->GetFather(_impl->GetSObject( id.in()));
SALOMEDS::SObject_var so = SALOMEDS_SObject_i::New (aSO, _orb);
return so._retn();
}
{
SALOMEDS::Locker lock;
if(!_impl) return 0;
- return _impl->SetName((char*)theName);
+ return _impl->SetName(theName);
}
SALOMEDS::Locker lock;
if(!_impl || theObject->_is_nil()) return false;
- return _impl->IsUseCase(_impl->GetSObject(theObject->GetID()));
+ CORBA::String_var id = theObject->GetID();
+ return _impl->IsUseCase(_impl->GetSObject( id.in() ));
}
//============================================================================
SALOMEDS::Locker lock;
if(!_impl || theObject->_is_nil()) return false;
- return _impl->IsUseCaseNode(_impl->GetSObject(theObject->GetID()));
+ CORBA::String_var id = theObject->GetID();
+ return _impl->IsUseCaseNode(_impl->GetSObject( id.in() ));
}
//============================================================================
if(!_impl) return SALOMEDS::UseCaseIterator::_nil();
SALOMEDSImpl_UseCaseIterator anItr;
- if(!CORBA::is_nil(theObject)) anItr = _impl->GetUseCaseIterator(_impl->GetSObject(theObject->GetID()));
+ if(!CORBA::is_nil(theObject)) {
+ CORBA::String_var id = theObject->GetID();
+ anItr = _impl->GetUseCaseIterator(_impl->GetSObject( id.in()));
+ }
else anItr = _impl->GetUseCaseIterator(SALOMEDSImpl_SObject());
SALOMEDS_UseCaseIterator_i* aServant = new SALOMEDS_UseCaseIterator_i(anItr, _orb);
- SALOMEDS::UseCaseIterator_var anIterator = SALOMEDS::UseCaseIterator::_narrow(aServant->_this());
+ SALOMEDS::UseCaseIterator_var anIterator = aServant->_this();
return anIterator._retn();
}