Version: 8.3.0
DF_Label Class Reference

#include <DF_Label.hxx>

Public Member Functions

 DF_Label ()
 
 DF_Label (const DF_Label &theLabel)
 
 DF_Label (DF_LabelNode *theNode)
 
DF_Labeloperator= (const DF_Label &theLabel)
 
 ~DF_Label ()
 
DF_DocumentGetDocument () const
 
bool operator== (const DF_Label &theLabel)
 
bool operator!= (const DF_Label &theLabel)
 
int Tag () const
 
bool IsAttached ()
 
DF_AttributeFindAttribute (const std::string &theID) const
 
bool IsAttribute (const std::string &theID) const
 
bool AddAttribute (DF_Attribute *theAttribute) const
 
bool ForgetAttribute (const std::string &theID) const
 
bool ForgetAllAttributes (bool clearChildren=true) const
 
DF_Label Father () const
 
bool IsNull () const
 
bool IsRoot () const
 
bool HasAttributes () const
 
std::vector< DF_Attribute * > GetAttributes () const
 
bool HasChild () const
 
int NbChildren () const
 
int Depth () const
 
bool IsDescendant (const DF_Label &theLabel)
 
DF_Label Root () const
 
DF_Label FindChild (int theTag, bool isCreate=true)
 
DF_Label NewChild ()
 
int LastChildTag () const
 
std::string Entry () const
 
bool IsEqual (const DF_Label &theLabel)
 
void dump ()
 

Static Public Member Functions

static DF_Label Label (const DF_Label &theLabel, const std::string &theEntry, bool isCreated=true)
 

Private Member Functions

void Nullify ()
 

Private Attributes

DF_LabelNode_node
 

Friends

class DF_Document
 
class DF_ChildIterator
 

Constructor & Destructor Documentation

DF_Label::DF_Label ( )
DF_Label::DF_Label ( const DF_Label theLabel)

References _node.

DF_Label::DF_Label ( DF_LabelNode theNode)
DF_Label::~DF_Label ( )

References _node.

Member Function Documentation

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

References DF_LabelNode::_attributes, and _node.

Referenced by SALOMEDSImpl_AttributeTarget::Add(), SALOMEDSImpl_UseCaseBuilder::AddUseCase(), SALOMEDSImpl_UseCaseBuilder::Append(), SALOMEDSImpl_UseCaseBuilder::AppendTo(), SALOMEDSImpl_StudyManager::CanPaste(), SALOMEDSImpl_SComponent::ComponentDataType(), SALOMEDSImpl_SComponent::ComponentIOR(), SALOMEDSImpl_StudyManager::CopyLabel(), DF_Attribute::FindAttribute(), SALOMEDSImpl_SObject::FindAttribute(), SALOMEDSImpl_StudyBuilder::FindAttribute(), SALOMEDSImpl_Study::FindDependances(), SALOMEDSImpl_Study::FindObjectByPath(), SALOMEDSImpl_StudyBuilder::FindOrCreateAttribute(), SALOMEDS_AttReal_i::Get(), SALOMEDS_AttLong_i::Get(), SALOMEDSImpl_SObject::GetComment(), SALOMEDSImpl_Study::GetComponentNames(), SALOMEDSImpl_Study::GetDirectoryNames(), SALOMEDSImpl_UseCaseBuilder::GetFather(), SALOMEDSImpl_AttributeParameter::GetFather(), SALOMEDSImpl_Study::GetFileNames(), SALOMEDSImpl_SObject::GetIOR(), SALOMEDSImpl_SObject::GetName(), GetNode(), SALOMEDSImpl_Study::GetObjectNames(), SALOMEDSImpl_Study::GetStudy(), SALOMEDS_Study_i::GetStudy(), SALOMEDSImpl_Study::GetTransientReference(), SALOMEDSImpl_UseCaseBuilder::HasChildren(), SALOMEDSImpl_UseCaseBuilder::InsertBefore(), SALOMEDSImpl_UseCaseBuilder::IsUseCaseNode(), SALOMEDSImpl_AttributeTreeNode::Load(), SALOMEDSImpl_StudyBuilder::LoadWith(), SALOMEDSImpl_StudyManager::Paste(), SALOMEDSImpl_StudyManager::PasteLabel(), SALOMEDSImpl_SObject::ReferencedObject(), SALOMEDSImpl_UseCaseBuilder::Remove(), SALOMEDSImpl_StudyBuilder::RemoveAttribute(), SALOMEDSImpl_StudyBuilder::RemoveObject(), SALOMEDSImpl_StudyBuilder::RemoveObjectWithChildren(), SALOMEDSImpl_StudyBuilder::RemoveReference(), SALOMEDSImpl_UseCaseBuilder::SALOMEDSImpl_UseCaseBuilder(), SALOMEDSImpl_UseCaseIterator::SALOMEDSImpl_UseCaseIterator(), DF_Container::Set(), SALOMEDSImpl_AttributeTreeNode::Set(), SALOMEDSImpl_AttributeExternalFileDef::Set(), SALOMEDSImpl_AttributeFileType::Set(), SALOMEDSImpl_AttributeInteger::Set(), SALOMEDSImpl_AttributeUserID::Set(), SALOMEDSImpl_AttributeReal::Set(), SALOMEDSImpl_AttributeDrawable::Set(), SALOMEDSImpl_AttributeReference::Set(), SALOMEDSImpl_AttributeSequenceOfInteger::Set(), SALOMEDSImpl_AttributeStudyProperties::Set(), SALOMEDSImpl_AttributeTarget::Set(), SALOMEDSImpl_AttributeName::Set(), SALOMEDSImpl_AttributeSequenceOfReal::Set(), SALOMEDSImpl_AttributeOpened::Set(), SALOMEDSImpl_AttributeString::Set(), SALOMEDSImpl_AttributeSelectable::Set(), SALOMEDSImpl_AttributeIOR::Set(), SALOMEDSImpl_AttributeLocalID::Set(), SALOMEDSImpl_AttributePixMap::Set(), SALOMEDSImpl_AttributeExpandable::Set(), SALOMEDSImpl_AttributePythonObject::Set(), SALOMEDSImpl_StudyHandle::Set(), SALOMEDSImpl_AttributeComment::Set(), SALOMEDSImpl_AttributeFlags::Set(), SALOMEDSImpl_AttributeTableOfReal::Set(), SALOMEDSImpl_AttributeTableOfString::Set(), SALOMEDSImpl_AttributePersistentRef::Set(), SALOMEDSImpl_AttributeTableOfInteger::Set(), SALOMEDSImpl_AttributeParameter::Set(), SALOMEDSImpl_UseCaseBuilder::SetCurrentObject(), SALOMEDSImpl_UseCaseBuilder::SortChildren(), Translate_IOR_to_persistentID(), and Translate_persistentID_to_IOR().

bool DF_Label::HasAttributes ( ) const

References DF_LabelNode::_attributes, and _node.

bool DF_Label::HasChild ( ) const

References DF_LabelNode::_firstChild, and _node.

bool DF_Label::IsAttached ( )

References DF_LabelNode::_document, and _node.

bool DF_Label::IsDescendant ( const DF_Label theLabel)
bool DF_Label::IsEqual ( const DF_Label theLabel)

References Entry(), and IsNull().

int DF_Label::LastChildTag ( ) const
int DF_Label::NbChildren ( ) const
void DF_Label::Nullify ( )
private

References _node.

Referenced by DF_Document::Clear().

bool DF_Label::operator!= ( const DF_Label theLabel)

References Entry(), and IsNull().

DF_Label & DF_Label::operator= ( const DF_Label theLabel)

References _node.

bool DF_Label::operator== ( const DF_Label theLabel)

References Entry(), and IsNull().

int DF_Label::Tag ( ) const

Friends And Related Function Documentation

friend class DF_ChildIterator
friend
friend class DF_Document
friend

Field Documentation