Back to index

salome-kernel  6.5.0
Public Member Functions | Protected Member Functions | Protected Attributes | Friends
DF_Attribute Class Reference

#include <DF_Attribute.hxx>

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

List of all members.

Public Member Functions

Standard_EXPORT DF_Attribute ()
virtual Standard_EXPORT ~DF_Attribute ()
Standard_EXPORT DF_Label Label () const
Standard_EXPORT DF_AttributeFindAttribute (const std::string &theID) const
virtual Standard_EXPORT std::string Save ()
virtual Standard_EXPORT void Load (const std::string &)
virtual Standard_EXPORT const
std::string & 
ID () const =0
virtual Standard_EXPORT void Restore (DF_Attribute *theAttribute)=0
virtual Standard_EXPORT
DF_Attribute
NewEmpty () const =0
virtual Standard_EXPORT void Paste (DF_Attribute *theIntoAttribute)=0
virtual Standard_EXPORT void AfterAddition ()
virtual Standard_EXPORT void BeforeForget ()

Protected Member Functions

void Backup ()

Protected Attributes

DF_LabelNode_node

Friends

class DF_Label

Detailed Description

Definition at line 30 of file DF_Attribute.hxx.


Constructor & Destructor Documentation

Definition at line 27 of file DF_Attribute.cxx.

{
  _node = NULL;
}

Definition at line 32 of file DF_Attribute.cxx.

{
  //Remove an attribute from a map of the node's attributes to 
  //avoid double deletion on the node destruction
  if(_node) {
         std::map<std::string, DF_Attribute*>::iterator mi;
    for(mi =_node->_attributes.begin(); mi != _node->_attributes.end(); mi++) {
       if(mi->second == this) {
         _node->_attributes.erase(mi);
         return;
       } 
    }
  }
}

Member Function Documentation

virtual Standard_EXPORT void DF_Attribute::AfterAddition ( ) [inline, virtual]

Reimplemented in SALOMEDSIMPL_EXPORT.

Definition at line 68 of file DF_Attribute.hxx.

{}

Here is the caller graph for this function:

void DF_Attribute::Backup ( ) [inline, protected]

Definition at line 72 of file DF_Attribute.hxx.

{}
virtual Standard_EXPORT void DF_Attribute::BeforeForget ( ) [inline, virtual]

Reimplemented in SALOMEDSIMPL_EXPORT.

Definition at line 69 of file DF_Attribute.hxx.

{}

Here is the caller graph for this function:

DF_Attribute * DF_Attribute::FindAttribute ( const std::string &  theID) const

Definition at line 54 of file DF_Attribute.cxx.

{
  if(!_node) return NULL;
  return Label().FindAttribute(theID);
}

Here is the call graph for this function:

virtual Standard_EXPORT const std::string& DF_Attribute::ID ( ) const [pure virtual]

Definition at line 48 of file DF_Attribute.cxx.

{
   return DF_Label(_node);
}

Here is the caller graph for this function:

virtual Standard_EXPORT void DF_Attribute::Load ( const std::string &  ) [inline, virtual]
virtual Standard_EXPORT DF_Attribute* DF_Attribute::NewEmpty ( ) const [pure virtual]
virtual Standard_EXPORT void DF_Attribute::Paste ( DF_Attribute theIntoAttribute) [pure virtual]
virtual Standard_EXPORT void DF_Attribute::Restore ( DF_Attribute theAttribute) [pure virtual]
virtual Standard_EXPORT std::string DF_Attribute::Save ( ) [inline, virtual]

Friends And Related Function Documentation

friend class DF_Label [friend]

Definition at line 75 of file DF_Attribute.hxx.


Member Data Documentation

Reimplemented in SALOMEDSIMPL_EXPORT.

Definition at line 32 of file DF_Attribute.hxx.


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