Back to index

salome-kernel  6.5.0
Public Member Functions
SALOMEDS_AttributeFlags Class Reference

#include <SALOMEDS_AttributeFlags.hxx>

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

List of all members.

Public Member Functions

 SALOMEDS_AttributeFlags (SALOMEDSImpl_AttributeFlags *theAttr)
 SALOMEDS_AttributeFlags (SALOMEDS::AttributeFlags_ptr theAttr)
 ~SALOMEDS_AttributeFlags ()
virtual int GetFlags ()
virtual void SetFlags (int theFlags)
virtual bool Get (int theFlag)
virtual void Set (int theFlag, bool theValue)
virtual void CheckLocked ()=0
virtual std::string Type ()=0
virtual std::string GetClassType ()=0
virtual _PTR (SObject) GetSObject()=0

Detailed Description

Definition at line 39 of file SALOMEDS_AttributeFlags.hxx.


Constructor & Destructor Documentation

SALOMEDS_AttributeFlags::SALOMEDS_AttributeFlags ( SALOMEDSImpl_AttributeFlags *  theAttr)

Definition at line 30 of file SALOMEDS_AttributeFlags.cxx.

:SALOMEDS_GenericAttribute(theAttr)
{}
SALOMEDS_AttributeFlags::SALOMEDS_AttributeFlags ( SALOMEDS::AttributeFlags_ptr  theAttr)

Definition at line 34 of file SALOMEDS_AttributeFlags.cxx.

:SALOMEDS_GenericAttribute(theAttr)
{}

Definition at line 38 of file SALOMEDS_AttributeFlags.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:

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

Implemented in Standard_EXPORT, and Standard_EXPORT.

bool SALOMEDS_AttributeFlags::Get ( int  theFlag) [virtual]

Implements SALOMEDSClient_AttributeFlags.

Definition at line 61 of file SALOMEDS_AttributeFlags.cxx.

{
  return (GetFlags() & theFlag) ? true : false;
}

Here is the call graph for this function:

Here is the caller graph for this function:

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

Implemented in Standard_EXPORT, and Standard_EXPORT.

Implements SALOMEDSClient_AttributeFlags.

Definition at line 41 of file SALOMEDS_AttributeFlags.cxx.

{
  int aValue;
  if (_isLocal) {
    SALOMEDS::Locker lock;
    aValue = dynamic_cast<SALOMEDSImpl_AttributeFlags*>(_local_impl)->Get();
  }
  else aValue = SALOMEDS::AttributeFlags::_narrow(_corba_impl)->GetFlags();
  return aValue;
}

Here is the call graph for this function:

Here is the caller graph for this function:

void SALOMEDS_AttributeFlags::Set ( int  theFlag,
bool  theValue 
) [virtual]

Implements SALOMEDSClient_AttributeFlags.

Definition at line 66 of file SALOMEDS_AttributeFlags.cxx.

{
  if (_isLocal) {
    SALOMEDS::Locker lock;
    SALOMEDSImpl_AttributeFlags* anAttr = dynamic_cast<SALOMEDSImpl_AttributeFlags*>(_local_impl);
    if (theValue)
      anAttr->Set(anAttr->Get() | theFlag);
    else
      anAttr->Set(anAttr->Get() & ~theFlag);    
  }
  else SALOMEDS::AttributeFlags::_narrow(_corba_impl)->Set(theFlag, theValue);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void SALOMEDS_AttributeFlags::SetFlags ( int  theFlags) [virtual]

Implements SALOMEDSClient_AttributeFlags.

Definition at line 52 of file SALOMEDS_AttributeFlags.cxx.

{
  if (_isLocal) {
    SALOMEDS::Locker lock;
    dynamic_cast<SALOMEDSImpl_AttributeFlags*>(_local_impl)->Set(theFlags);
  }
  else SALOMEDS::AttributeFlags::_narrow(_corba_impl)->SetFlags(theFlags);
}

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: