Back to index

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

#include <SALOMEDS_UseCaseBuilder.hxx>

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

List of all members.

Public Member Functions

 SALOMEDS_UseCaseBuilder (SALOMEDSImpl_UseCaseBuilder *theBuilder)
 SALOMEDS_UseCaseBuilder (SALOMEDS::UseCaseBuilder_ptr theBuilder)
 ~SALOMEDS_UseCaseBuilder ()
virtual bool Append (const _PTR(SObject)&theObject)
virtual bool Remove (const _PTR(SObject)&theObject)
virtual bool AppendTo (const _PTR(SObject)&theFather, _PTR(SObject) theObject)
virtual bool InsertBefore (const _PTR(SObject)&theFirst, _PTR(SObject) theNext)
virtual bool SetCurrentObject (const _PTR(SObject)&theObject)
virtual bool SetRootCurrent ()
virtual bool HasChildren (const _PTR(SObject)&theObject)
virtual _PTR (SObject) GetFather(const _PTR(SObject)&theObject)
virtual bool IsUseCase (const _PTR(SObject)&theObject)
virtual bool IsUseCaseNode (const _PTR(SObject)&theObject)
virtual bool SetName (const std::string &theName)
virtual _PTR (SObject) GetCurrentObject()
virtual std::string GetName ()

Private Attributes

bool _isLocal
SALOMEDSImpl_UseCaseBuilder * _local_impl
SALOMEDS::UseCaseBuilder_var _corba_impl

Detailed Description

Definition at line 37 of file SALOMEDS_UseCaseBuilder.hxx.


Constructor & Destructor Documentation

SALOMEDS_UseCaseBuilder::SALOMEDS_UseCaseBuilder ( SALOMEDSImpl_UseCaseBuilder *  theBuilder)

Definition at line 38 of file SALOMEDS_UseCaseBuilder.cxx.

{
  _isLocal = true;
  _local_impl = theBuilder;
  _corba_impl = SALOMEDS::UseCaseBuilder::_nil();
}
SALOMEDS_UseCaseBuilder::SALOMEDS_UseCaseBuilder ( SALOMEDS::UseCaseBuilder_ptr  theBuilder)

Definition at line 45 of file SALOMEDS_UseCaseBuilder.cxx.

{
  _isLocal = false;
  _local_impl = NULL;
  _corba_impl = SALOMEDS::UseCaseBuilder::_duplicate(theBuilder);
}

Definition at line 52 of file SALOMEDS_UseCaseBuilder.cxx.

{
  if(!_isLocal) _corba_impl->UnRegister(); 
}  

Member Function Documentation

virtual SALOMEDS_UseCaseBuilder::_PTR ( SObject  ) const [virtual]
virtual SALOMEDS_UseCaseBuilder::_PTR ( SObject  ) [virtual]
bool SALOMEDS_UseCaseBuilder::Append ( const _PTR(SObject)&  theObject) [virtual]

Implements SALOMEDSClient_UseCaseBuilder.

Definition at line 57 of file SALOMEDS_UseCaseBuilder.cxx.

{
  bool ret;
  SALOMEDS_SObject* obj = dynamic_cast<SALOMEDS_SObject*>(theObject.get());
  if (_isLocal) {
    SALOMEDS::Locker lock;
    ret = _local_impl->Append(*(obj->GetLocalImpl()));
  }
  else ret = _corba_impl->Append(obj->GetCORBAImpl());
  return ret;
}

Here is the call graph for this function:

bool SALOMEDS_UseCaseBuilder::AppendTo ( const _PTR(SObject)&  theFather,
_PTR(SObject)  theObject 
) [virtual]

Implements SALOMEDSClient_UseCaseBuilder.

Definition at line 81 of file SALOMEDS_UseCaseBuilder.cxx.

{
  bool ret;
  SALOMEDS_SObject* father = dynamic_cast<SALOMEDS_SObject*>(theFather.get());
  SALOMEDS_SObject* obj = dynamic_cast<SALOMEDS_SObject*>(theObject.get());
  if (_isLocal) {
    SALOMEDS::Locker lock;
    ret = _local_impl->AppendTo(*(father->GetLocalImpl()), *(obj->GetLocalImpl()));
  }
  else ret = _corba_impl->AppendTo(father->GetCORBAImpl(), obj->GetCORBAImpl());
  return ret;
}

Here is the call graph for this function:

std::string SALOMEDS_UseCaseBuilder::GetName ( ) [virtual]

Implements SALOMEDSClient_UseCaseBuilder.

Definition at line 200 of file SALOMEDS_UseCaseBuilder.cxx.

{
  std::string aName;
  if (_isLocal) {
    SALOMEDS::Locker lock;
    aName = _local_impl->GetName();
  }
  else aName = _corba_impl->GetName();
  return aName;
}

Here is the call graph for this function:

bool SALOMEDS_UseCaseBuilder::HasChildren ( const _PTR(SObject)&  theObject) [virtual]

Implements SALOMEDSClient_UseCaseBuilder.

Definition at line 130 of file SALOMEDS_UseCaseBuilder.cxx.

{
  bool ret;
  SALOMEDS_SObject* obj = dynamic_cast<SALOMEDS_SObject*>(theObject.get());
  if (_isLocal) {
    SALOMEDS::Locker lock;
    ret = _local_impl->HasChildren(*(obj->GetLocalImpl()));
  }
  else ret = _corba_impl->HasChildren(obj->GetCORBAImpl());
  return ret;
}

Here is the call graph for this function:

bool SALOMEDS_UseCaseBuilder::InsertBefore ( const _PTR(SObject)&  theFirst,
_PTR(SObject)  theNext 
) [virtual]

Implements SALOMEDSClient_UseCaseBuilder.

Definition at line 94 of file SALOMEDS_UseCaseBuilder.cxx.

{
  bool ret;
  SALOMEDS_SObject* first = dynamic_cast<SALOMEDS_SObject*>(theFirst.get());
  SALOMEDS_SObject* next = dynamic_cast<SALOMEDS_SObject*>(theNext.get());
  if (_isLocal) {
    SALOMEDS::Locker lock;
    ret = _local_impl->InsertBefore(*(first->GetLocalImpl()), *(next->GetLocalImpl()));
  }
  else ret = _corba_impl->InsertBefore(first->GetCORBAImpl(), next->GetCORBAImpl());
  return ret;
}

Here is the call graph for this function:

bool SALOMEDS_UseCaseBuilder::IsUseCase ( const _PTR(SObject)&  theObject) [virtual]

Implements SALOMEDSClient_UseCaseBuilder.

Definition at line 154 of file SALOMEDS_UseCaseBuilder.cxx.

{
  bool ret;
  SALOMEDS_SObject* obj = dynamic_cast<SALOMEDS_SObject*>(theObject.get());
  if (_isLocal) {
    SALOMEDS::Locker lock;
    ret = _local_impl->IsUseCase(*(obj->GetLocalImpl()));
  }
  else ret = _corba_impl->IsUseCase(obj->GetCORBAImpl());
  return ret;
}

Here is the call graph for this function:

bool SALOMEDS_UseCaseBuilder::IsUseCaseNode ( const _PTR(SObject)&  theObject) [virtual]

Implements SALOMEDSClient_UseCaseBuilder.

Definition at line 166 of file SALOMEDS_UseCaseBuilder.cxx.

{
  bool ret;
  SALOMEDS_SObject* obj = dynamic_cast<SALOMEDS_SObject*>(theObject.get());
  if (_isLocal) {
    SALOMEDS::Locker lock;
    ret = _local_impl->IsUseCaseNode(*(obj->GetLocalImpl()));
  }
  else ret = _corba_impl->IsUseCaseNode(obj->GetCORBAImpl());
  return ret;
}

Here is the call graph for this function:

bool SALOMEDS_UseCaseBuilder::Remove ( const _PTR(SObject)&  theObject) [virtual]

Implements SALOMEDSClient_UseCaseBuilder.

Definition at line 69 of file SALOMEDS_UseCaseBuilder.cxx.

{
  bool ret;
  SALOMEDS_SObject* obj = dynamic_cast<SALOMEDS_SObject*>(theObject.get());
  if (_isLocal) {
    SALOMEDS::Locker lock;
    ret = _local_impl->Remove(*(obj->GetLocalImpl()));
  }
  else ret = _corba_impl->Remove(obj->GetCORBAImpl());
  return ret;
}

Here is the call graph for this function:

bool SALOMEDS_UseCaseBuilder::SetCurrentObject ( const _PTR(SObject)&  theObject) [virtual]

Implements SALOMEDSClient_UseCaseBuilder.

Definition at line 107 of file SALOMEDS_UseCaseBuilder.cxx.

{
  bool ret;
  SALOMEDS_SObject* obj = dynamic_cast<SALOMEDS_SObject*>(theObject.get());
  if (_isLocal) {
    SALOMEDS::Locker lock;
    ret = _local_impl->SetCurrentObject(*(obj->GetLocalImpl()));
  }
  else ret = _corba_impl->SetCurrentObject(obj->GetCORBAImpl());
  return ret;
}

Here is the call graph for this function:

bool SALOMEDS_UseCaseBuilder::SetName ( const std::string &  theName) [virtual]

Implements SALOMEDSClient_UseCaseBuilder.

Definition at line 178 of file SALOMEDS_UseCaseBuilder.cxx.

{
  bool ret;
  if (_isLocal) {
    SALOMEDS::Locker lock;
    ret = _local_impl->SetName(theName);
  }
  else ret = _corba_impl->SetName((char*)theName.c_str());
  return ret;
}

Here is the call graph for this function:

Implements SALOMEDSClient_UseCaseBuilder.

Definition at line 119 of file SALOMEDS_UseCaseBuilder.cxx.

{
  bool ret;
  if (_isLocal) {
    SALOMEDS::Locker lock;
    ret = _local_impl->SetRootCurrent();
  }
  else ret = _corba_impl->SetRootCurrent();
  return ret;
}

Here is the call graph for this function:


Member Data Documentation

SALOMEDS::UseCaseBuilder_var SALOMEDS_UseCaseBuilder::_corba_impl [private]

Definition at line 43 of file SALOMEDS_UseCaseBuilder.hxx.

Definition at line 41 of file SALOMEDS_UseCaseBuilder.hxx.

SALOMEDSImpl_UseCaseBuilder* SALOMEDS_UseCaseBuilder::_local_impl [private]

Definition at line 42 of file SALOMEDS_UseCaseBuilder.hxx.


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