Back to index

salome-kernel  6.5.0
Public Member Functions
SALOMEDS_AttributeTarget Class Reference

#include <SALOMEDS_AttributeTarget.hxx>

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

List of all members.

Public Member Functions

 SALOMEDS_AttributeTarget (SALOMEDSImpl_AttributeTarget *theAttr)
 SALOMEDS_AttributeTarget (SALOMEDS::AttributeTarget_ptr theAttr)
 ~SALOMEDS_AttributeTarget ()
virtual void Add (const _PTR(SObject)&theObject)
virtual std::vector< _PTR(SObject)> Get ()
virtual void Remove (const _PTR(SObject)&theObject)
virtual void CheckLocked ()=0
virtual std::string Type ()=0
virtual std::string GetClassType ()=0
virtual _PTR (SObject) GetSObject()=0

Detailed Description

Definition at line 41 of file SALOMEDS_AttributeTarget.hxx.


Constructor & Destructor Documentation

SALOMEDS_AttributeTarget::SALOMEDS_AttributeTarget ( SALOMEDSImpl_AttributeTarget *  theAttr)

Definition at line 33 of file SALOMEDS_AttributeTarget.cxx.

:SALOMEDS_GenericAttribute(theAttr)
{}
SALOMEDS_AttributeTarget::SALOMEDS_AttributeTarget ( SALOMEDS::AttributeTarget_ptr  theAttr)

Definition at line 37 of file SALOMEDS_AttributeTarget.cxx.

:SALOMEDS_GenericAttribute(theAttr)
{}

Definition at line 41 of file SALOMEDS_AttributeTarget.cxx.

{}

Member Function Documentation

virtual SALOMEDSClient_GenericAttribute::_PTR ( SObject  ) [pure virtual, inherited]

Implemented in Standard_EXPORT, and Standard_EXPORT.

Here is the caller graph for this function:

void SALOMEDS_AttributeTarget::Add ( const _PTR(SObject)&  theObject) [virtual]

Implements SALOMEDSClient_AttributeTarget.

Definition at line 44 of file SALOMEDS_AttributeTarget.cxx.

{
  SALOMEDS_SObject* aSO = dynamic_cast<SALOMEDS_SObject*>(theObject.get());

  if (_isLocal) {
    SALOMEDS::Locker lock;
    dynamic_cast<SALOMEDSImpl_AttributeTarget*>(_local_impl)->Add(*(aSO->GetLocalImpl()));
  }
  else SALOMEDS::AttributeTarget::_narrow(_corba_impl)->Add(aSO->GetCORBAImpl());
}

Here is the call graph for this function:

virtual void SALOMEDSClient_GenericAttribute::CheckLocked ( ) [pure virtual, inherited]

Implemented in Standard_EXPORT, and Standard_EXPORT.

std::vector< _PTR(SObject)> SALOMEDS_AttributeTarget::Get ( ) [virtual]

Implements SALOMEDSClient_AttributeTarget.

Definition at line 55 of file SALOMEDS_AttributeTarget.cxx.

{
  std::vector<_PTR(SObject)> aVector;
  int aLength, i;
  SALOMEDSClient_SObject* aSO = NULL;
  
  if (_isLocal) {
    SALOMEDS::Locker lock;
    std::vector<SALOMEDSImpl_SObject> aSeq = dynamic_cast<SALOMEDSImpl_AttributeTarget*>(_local_impl)->Get();
    aLength = aSeq.size();
    for (i = 0; i < aLength; i++) {
      aSO = new SALOMEDS_SObject(aSeq[i]);
      aVector.push_back(_PTR(SObject)(aSO));
    }
  }
  else {
    SALOMEDS::Study::ListOfSObject_var aSeq = SALOMEDS::AttributeTarget::_narrow(_corba_impl)->Get();
    aLength = aSeq->length();
    for (i = 0; i < aLength; i++)  {
       aSO = new SALOMEDS_SObject(aSeq[i].in());
        aVector.push_back(_PTR(SObject)(aSO));
    }
  }

  return aVector;
}

Here is the call graph for this function:

virtual std::string SALOMEDSClient_GenericAttribute::GetClassType ( ) [pure virtual, inherited]

Implemented in Standard_EXPORT, and Standard_EXPORT.

void SALOMEDS_AttributeTarget::Remove ( const _PTR(SObject)&  theObject) [virtual]

Implements SALOMEDSClient_AttributeTarget.

Definition at line 82 of file SALOMEDS_AttributeTarget.cxx.

{
  SALOMEDS_SObject* aSO = dynamic_cast<SALOMEDS_SObject*>(theObject.get());

  if (_isLocal) {
    SALOMEDS::Locker lock;
    dynamic_cast<SALOMEDSImpl_AttributeTarget*>(_local_impl)->Remove(*(aSO->GetLocalImpl()));
  }
  else SALOMEDS::AttributeTarget::_narrow(_corba_impl)->Remove(aSO->GetCORBAImpl());
}

Here is the call graph for this function:

virtual std::string SALOMEDSClient_GenericAttribute::Type ( ) [pure virtual, inherited]

Implemented in Standard_EXPORT, and Standard_EXPORT.


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