Back to index

salome-kernel  6.5.0
Public Member Functions
SALOMEDS_AttributeTarget_i Class Reference

#include <SALOMEDS_AttributeTarget_i.hxx>

List of all members.

Public Member Functions

 SALOMEDS_AttributeTarget_i (SALOMEDSImpl_AttributeTarget *theAttr, CORBA::ORB_ptr orb)
 ~SALOMEDS_AttributeTarget_i ()
virtual void Add (SALOMEDS::SObject_ptr anObject)
virtual
SALOMEDS::Study::ListOfSObject
Get ()
virtual void Remove (SALOMEDS::SObject_ptr anObject)

Detailed Description

Definition at line 36 of file SALOMEDS_AttributeTarget_i.hxx.


Constructor & Destructor Documentation

SALOMEDS_AttributeTarget_i::SALOMEDS_AttributeTarget_i ( SALOMEDSImpl_AttributeTarget *  theAttr,
CORBA::ORB_ptr  orb 
) [inline]

Definition at line 41 of file SALOMEDS_AttributeTarget_i.hxx.

    :SALOMEDS_GenericAttribute_i(theAttr, orb) {}; 

Definition at line 44 of file SALOMEDS_AttributeTarget_i.hxx.

{};

Member Function Documentation

void SALOMEDS_AttributeTarget_i::Add ( SALOMEDS::SObject_ptr  anObject) [virtual]

Definition at line 35 of file SALOMEDS_AttributeTarget_i.cxx.

{
  SALOMEDS::Locker lock; 
  DF_Label aLabel = DF_Label::Label(_impl->Label(), anObject->GetID(), 1);
  dynamic_cast<SALOMEDSImpl_AttributeTarget*>(_impl)->Add(SALOMEDSImpl_Study::SObject(aLabel));
}

Here is the call graph for this function:

Definition at line 42 of file SALOMEDS_AttributeTarget_i.cxx.

{
  SALOMEDS::Locker lock; 
  std::vector<SALOMEDSImpl_SObject> aSeq = dynamic_cast<SALOMEDSImpl_AttributeTarget*>(_impl)->Get();
  SALOMEDS::Study::ListOfSObject_var aSList = new SALOMEDS::Study::ListOfSObject;
  int aLength = aSeq.size(), i;
  if (aLength == 0) return aSList._retn();
  aSList->length(aLength);
  for(i=0; i <aLength; i++) {
    SALOMEDS::SObject_var anSO = SALOMEDS_SObject_i::New(aSeq[i], _orb);
    aSList[i] = anSO;
  }
  return aSList._retn();
}

Here is the call graph for this function:

void SALOMEDS_AttributeTarget_i::Remove ( SALOMEDS::SObject_ptr  anObject) [virtual]

Definition at line 57 of file SALOMEDS_AttributeTarget_i.cxx.

{
  SALOMEDS::Locker lock; 
  DF_Label aLabel = DF_Label::Label(_impl->Label(), anObject->GetID(), 1);
  dynamic_cast<SALOMEDSImpl_AttributeTarget*>(_impl)->Remove(SALOMEDSImpl_Study::SObject(aLabel));
}

Here is the call graph for this function:


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