Back to index

salome-kernel  6.5.0
Public Member Functions | Private Attributes
SALOMEDS_UseCaseBuilder_i Class Reference

#include <SALOMEDS_UseCaseBuilder_i.hxx>

Inheritance diagram for SALOMEDS_UseCaseBuilder_i:
Inheritance graph
[legend]
Collaboration diagram for SALOMEDS_UseCaseBuilder_i:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 SALOMEDS_UseCaseBuilder_i (SALOMEDSImpl_UseCaseBuilder *theDocument, CORBA::ORB_ptr)
 standard constructor
 ~SALOMEDS_UseCaseBuilder_i ()
 standard destructor
virtual CORBA::Boolean Append (SALOMEDS::SObject_ptr theObject)
 Function : Append Purpose :
virtual CORBA::Boolean Remove (SALOMEDS::SObject_ptr theObject)
 Function : Remove Purpose :
virtual CORBA::Boolean AppendTo (SALOMEDS::SObject_ptr theFather, SALOMEDS::SObject_ptr theObject)
 Function : AppendTo Purpose :
virtual CORBA::Boolean InsertBefore (SALOMEDS::SObject_ptr theFirst, SALOMEDS::SObject_ptr theNext)
 Function : InsertBefore Purpose :
virtual CORBA::Boolean SetCurrentObject (SALOMEDS::SObject_ptr theObject)
 Function : SetCurrentObject Purpose :
virtual CORBA::Boolean SetRootCurrent ()
 Function : SetRootCurrent Purpose :
virtual CORBA::Boolean HasChildren (SALOMEDS::SObject_ptr theObject)
 Function : HasChildren Purpose :
virtual SALOMEDS::SObject_ptr GetFather (SALOMEDS::SObject_ptr theObject)
 Function : GetFather Purpose :
virtual CORBA::Boolean IsUseCase (SALOMEDS::SObject_ptr theObject)
 Function : IsUseCase Purpose :
virtual CORBA::Boolean IsUseCaseNode (SALOMEDS::SObject_ptr theObject)
 Function : IsUseCaseNode Purpose :
virtual CORBA::Boolean SetName (const char *theName)
 Function : SetName Purpose :
virtual SALOMEDS::SObject_ptr GetCurrentObject ()
 Function : GetCurrentObject Purpose :
virtual char * GetName ()
 Function : GetName Purpose :
virtual SALOMEDS::SObject_ptr AddUseCase (const char *theName)
 Function : NewUseCase Purpose :
virtual
SALOMEDS::UseCaseIterator_ptr 
GetUseCaseIterator (SALOMEDS::SObject_ptr anObject)
 Function : GetUseCaseIterator Purpose : Creates a new UseCase iterator, if anObject is null all use cases are iterated.

Private Attributes

CORBA::ORB_var _orb
SALOMEDSImpl_UseCaseBuilder * _impl

Detailed Description

Definition at line 44 of file SALOMEDS_UseCaseBuilder_i.hxx.


Constructor & Destructor Documentation

SALOMEDS_UseCaseBuilder_i::SALOMEDS_UseCaseBuilder_i ( SALOMEDSImpl_UseCaseBuilder *  theDocument,
CORBA::ORB_ptr  orb 
)

standard constructor

Function : constructor Purpose :

Definition at line 39 of file SALOMEDS_UseCaseBuilder_i.cxx.

{
  _orb = CORBA::ORB::_duplicate(orb);
  _impl = theImpl;
}

standard destructor

Function : destructor Purpose :

Definition at line 51 of file SALOMEDS_UseCaseBuilder_i.cxx.

{
}

Member Function Documentation

SALOMEDS::SObject_ptr SALOMEDS_UseCaseBuilder_i::AddUseCase ( const char *  theName) [virtual]

Function : NewUseCase Purpose :

Definition at line 229 of file SALOMEDS_UseCaseBuilder_i.cxx.

{
  SALOMEDS::Locker lock;
  
  if(!_impl) return SALOMEDS::SObject::_nil();
  SALOMEDSImpl_SObject aSO = _impl->AddUseCase((char*)theName);
  SALOMEDS::SObject_var so = SALOMEDS_SObject_i::New (aSO, _orb);
  return so._retn();
}

Here is the call graph for this function:

CORBA::Boolean SALOMEDS_UseCaseBuilder_i::Append ( SALOMEDS::SObject_ptr  theObject) [virtual]

Function : Append Purpose :

Definition at line 61 of file SALOMEDS_UseCaseBuilder_i.cxx.

{
  SALOMEDS::Locker lock;
  if(!_impl || theObject->_is_nil()) return 0;
  return _impl->Append(_impl->GetSObject(theObject->GetID()));
}

Here is the call graph for this function:

CORBA::Boolean SALOMEDS_UseCaseBuilder_i::AppendTo ( SALOMEDS::SObject_ptr  theFather,
SALOMEDS::SObject_ptr  theObject 
) [virtual]

Function : AppendTo Purpose :

Definition at line 86 of file SALOMEDS_UseCaseBuilder_i.cxx.

{
  SALOMEDS::Locker lock;
  if(!_impl || theFather->_is_nil() || theObject->_is_nil()) return 0;
  return _impl->AppendTo(_impl->GetSObject(theFather->GetID()), _impl->GetSObject(theObject->GetID()));
}

Here is the call graph for this function:

SALOMEDS::SObject_ptr SALOMEDS_UseCaseBuilder_i::GetCurrentObject ( ) [virtual]

Function : GetCurrentObject Purpose :

Definition at line 177 of file SALOMEDS_UseCaseBuilder_i.cxx.

{
  SALOMEDS::Locker lock; 
  
  if(!_impl) return NULL;
  SALOMEDSImpl_SObject aSO = _impl->GetCurrentObject();
  SALOMEDS::SObject_var so = SALOMEDS_SObject_i::New (aSO, _orb);
  return so._retn();
}

Here is the call graph for this function:

SALOMEDS::SObject_ptr SALOMEDS_UseCaseBuilder_i::GetFather ( SALOMEDS::SObject_ptr  theObject) [virtual]

Function : GetFather Purpose :

Definition at line 149 of file SALOMEDS_UseCaseBuilder_i.cxx.

{
  SALOMEDS::Locker lock; 

  if(!_impl) return NULL;
  SALOMEDSImpl_SObject aSO = _impl->GetFather(_impl->GetSObject(theObject->GetID()));
  SALOMEDS::SObject_var so = SALOMEDS_SObject_i::New (aSO, _orb);
  return so._retn();
}

Here is the call graph for this function:

char * SALOMEDS_UseCaseBuilder_i::GetName ( ) [virtual]

Function : GetName Purpose :

Definition at line 192 of file SALOMEDS_UseCaseBuilder_i.cxx.

{
  SALOMEDS::Locker lock;
  return CORBA::string_dup(_impl->GetName().c_str());
}

Here is the call graph for this function:

SALOMEDS::UseCaseIterator_ptr SALOMEDS_UseCaseBuilder_i::GetUseCaseIterator ( SALOMEDS::SObject_ptr  anObject) [virtual]

Function : GetUseCaseIterator Purpose : Creates a new UseCase iterator, if anObject is null all use cases are iterated.

Definition at line 244 of file SALOMEDS_UseCaseBuilder_i.cxx.

{
  SALOMEDS::Locker lock;
  
  if(!_impl) return SALOMEDS::UseCaseIterator::_nil();
  SALOMEDSImpl_UseCaseIterator anItr;
  if(!CORBA::is_nil(theObject)) anItr = _impl->GetUseCaseIterator(_impl->GetSObject(theObject->GetID()));
  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());
  return anIterator._retn(); 
}

Here is the call graph for this function:

CORBA::Boolean SALOMEDS_UseCaseBuilder_i::HasChildren ( SALOMEDS::SObject_ptr  theObject) [virtual]

Function : HasChildren Purpose :

Definition at line 137 of file SALOMEDS_UseCaseBuilder_i.cxx.

{
  SALOMEDS::Locker lock;
  if(!_impl) return 0;
  return _impl->HasChildren(_impl->GetSObject(theObject->GetID()));
}

Here is the call graph for this function:

CORBA::Boolean SALOMEDS_UseCaseBuilder_i::InsertBefore ( SALOMEDS::SObject_ptr  theFirst,
SALOMEDS::SObject_ptr  theNext 
) [virtual]

Function : InsertBefore Purpose :

Definition at line 99 of file SALOMEDS_UseCaseBuilder_i.cxx.

{
  SALOMEDS::Locker lock;
  if(!_impl || theFirst->_is_nil() || theNext->_is_nil()) return 0;
  return _impl->InsertBefore(_impl->GetSObject(theFirst->GetID()), _impl->GetSObject(theNext->GetID()));
}

Here is the call graph for this function:

CORBA::Boolean SALOMEDS_UseCaseBuilder_i::IsUseCase ( SALOMEDS::SObject_ptr  theObject) [virtual]

Function : IsUseCase Purpose :

Definition at line 203 of file SALOMEDS_UseCaseBuilder_i.cxx.

{
  SALOMEDS::Locker lock;
  
  if(!_impl || theObject->_is_nil()) return false;
  return _impl->IsUseCase(_impl->GetSObject(theObject->GetID()));
}

Here is the call graph for this function:

CORBA::Boolean SALOMEDS_UseCaseBuilder_i::IsUseCaseNode ( SALOMEDS::SObject_ptr  theObject) [virtual]

Function : IsUseCaseNode Purpose :

Definition at line 216 of file SALOMEDS_UseCaseBuilder_i.cxx.

{
  SALOMEDS::Locker lock;
  
  if(!_impl || theObject->_is_nil()) return false;
  return _impl->IsUseCaseNode(_impl->GetSObject(theObject->GetID()));
}

Here is the call graph for this function:

CORBA::Boolean SALOMEDS_UseCaseBuilder_i::Remove ( SALOMEDS::SObject_ptr  theObject) [virtual]

Function : Remove Purpose :

Definition at line 73 of file SALOMEDS_UseCaseBuilder_i.cxx.

{
  SALOMEDS::Locker lock;
  if(!_impl || theObject->_is_nil()) return 0;
  return _impl->Remove(_impl->GetSObject(theObject->GetID()));
}

Here is the call graph for this function:

CORBA::Boolean SALOMEDS_UseCaseBuilder_i::SetCurrentObject ( SALOMEDS::SObject_ptr  theObject) [virtual]

Function : SetCurrentObject Purpose :

Definition at line 113 of file SALOMEDS_UseCaseBuilder_i.cxx.

{
  SALOMEDS::Locker lock;
  if(!_impl || theObject->_is_nil()) return 0;
  return _impl->SetCurrentObject(_impl->GetSObject(theObject->GetID()));
}

Here is the call graph for this function:

CORBA::Boolean SALOMEDS_UseCaseBuilder_i::SetName ( const char *  theName) [virtual]

Function : SetName Purpose :

Definition at line 164 of file SALOMEDS_UseCaseBuilder_i.cxx.

{
  SALOMEDS::Locker lock;
  if(!_impl) return 0;
  return _impl->SetName((char*)theName);
}

Here is the call graph for this function:

CORBA::Boolean SALOMEDS_UseCaseBuilder_i::SetRootCurrent ( ) [virtual]

Function : SetRootCurrent Purpose :

Definition at line 125 of file SALOMEDS_UseCaseBuilder_i.cxx.

{
  SALOMEDS::Locker lock;
  if(!_impl) return 0;
  return _impl->SetRootCurrent();
}

Here is the call graph for this function:


Member Data Documentation

SALOMEDSImpl_UseCaseBuilder* SALOMEDS_UseCaseBuilder_i::_impl [private]

Definition at line 51 of file SALOMEDS_UseCaseBuilder_i.hxx.

CORBA::ORB_var SALOMEDS_UseCaseBuilder_i::_orb [private]

Definition at line 50 of file SALOMEDS_UseCaseBuilder_i.hxx.


The documentation for this class was generated from the following files: