#include <DF_Label.hxx>
Public Member Functions | |
DF_Label () | |
DF_Label (const DF_Label &theLabel) | |
DF_Label (DF_LabelNode *theNode) | |
DF_Label & | operator= (const DF_Label &theLabel) |
~DF_Label () | |
DF_Document * | GetDocument () const |
bool | operator== (const DF_Label &theLabel) |
bool | operator!= (const DF_Label &theLabel) |
int | Tag () const |
bool | IsAttached () |
DF_Attribute * | FindAttribute (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 |
DF_Label::DF_Label | ( | ) |
References _node.
Referenced by dump(), Father(), FindChild(), Label(), NewChild(), Root(), and DF_ChildIterator::Value().
DF_Label::DF_Label | ( | DF_LabelNode * | theNode | ) |
DF_Label::~DF_Label | ( | ) |
References _node.
bool DF_Label::AddAttribute | ( | DF_Attribute * | theAttribute | ) | const |
References DF_LabelNode::_attributes, DF_Attribute::_node, _node, DF_Attribute::AfterAddition(), and DF_Attribute::ID().
Referenced by SALOMEDSImpl_StudyManager::CopyLabel(), SALOMEDSImpl_StudyManager::PasteLabel(), DF_Container::Set(), SALOMEDSImpl_AttributeTreeNode::Set(), SALOMEDSImpl_AttributeExternalFileDef::Set(), SALOMEDSImpl_AttributeFileType::Set(), SALOMEDSImpl_AttributeInteger::Set(), SALOMEDSImpl_AttributeUserID::Set(), SALOMEDSImpl_AttributeReal::Set(), SALOMEDSImpl_AttributeReference::Set(), SALOMEDSImpl_AttributeSequenceOfInteger::Set(), SALOMEDSImpl_AttributeStudyProperties::Set(), SALOMEDSImpl_AttributeDrawable::Set(), SALOMEDSImpl_AttributeTarget::Set(), SALOMEDSImpl_AttributeIOR::Set(), SALOMEDSImpl_AttributeSelectable::Set(), SALOMEDSImpl_AttributeName::Set(), SALOMEDSImpl_AttributeLocalID::Set(), SALOMEDSImpl_AttributeString::Set(), SALOMEDSImpl_AttributeSequenceOfReal::Set(), SALOMEDSImpl_AttributeOpened::Set(), SALOMEDSImpl_StudyHandle::Set(), SALOMEDSImpl_AttributePythonObject::Set(), SALOMEDSImpl_AttributeExpandable::Set(), SALOMEDSImpl_AttributePixMap::Set(), SALOMEDSImpl_AttributeFlags::Set(), SALOMEDSImpl_AttributeTableOfReal::Set(), SALOMEDSImpl_AttributePersistentRef::Set(), SALOMEDSImpl_AttributeComment::Set(), SALOMEDSImpl_AttributeTableOfString::Set(), SALOMEDSImpl_AttributeTableOfInteger::Set(), and SALOMEDSImpl_AttributeParameter::Set().
int DF_Label::Depth | ( | ) | const |
References DF_LabelNode::_depth, and _node.
Referenced by SALOMEDSImpl_StudyManager::Copy(), SALOMEDSImpl_StudyManager::CopyLabel(), SALOMEDSImpl_SComponent::IsA(), and SALOMEDSImpl_StudyManager::PasteLabel().
void DF_Label::dump | ( | ) |
References DF_LabelNode::_father, DF_LabelNode::_firstChild, DF_LabelNode::_lastChild, DF_LabelNode::_next, _node, DF_LabelNode::_previous, DF_Label(), Entry(), and Father().
Referenced by main().
std::string DF_Label::Entry | ( | ) | const |
References DF_LabelNode::_father, _node, and DF_LabelNode::_tag.
Referenced by SALOMEDSImpl_AttributeTarget::Add(), SALOMEDSImpl_StudyManager::CopyLabel(), dump(), SALOMEDSImpl_SObject::GetID(), SALOMEDSImpl_Study::IORUpdated(), IsEqual(), SALOMEDS_AttributeTreeNode::Label(), SALOMEDS_AttributeTreeNode_i::Label(), main(), operator!=(), operator==(), SALOMEDSImpl_StudyManager::PasteLabel(), SALOMEDSImpl_AttributeTarget::Remove(), SALOMEDSImpl_AttributeReference::Save(), and SALOMEDSImpl_AttributeTreeNode::Save().
DF_Label DF_Label::Father | ( | ) | const |
References DF_LabelNode::_father, _node, and DF_Label().
Referenced by SALOMEDSImpl_StudyManager::CanPaste(), SALOMEDSImpl_StudyManager::CopyLabel(), dump(), SALOMEDSImpl_SObject::GetFather(), SALOMEDSImpl_AttributeParameter::GetFather(), SALOMEDSImpl_SObject::GetFatherComponent(), SALOMEDSImpl_AttributeParameter::HasFather(), IsRoot(), SALOMEDSImpl_UseCaseBuilder::IsUseCase(), SALOMEDSImpl_StudyManager::PasteLabel(), and Root().
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().
References DF_LabelNode::_depth, DF_LabelNode::_document, DF_LabelNode::_father, DF_LabelNode::_firstChild, DF_LabelNode::_lastChild, DF_LabelNode::_next, _node, DF_LabelNode::_previous, DF_LabelNode::_tag, DF_Label(), and IsNull().
Referenced by SALOMEDSImpl_UseCaseBuilder::AddUseCase(), SALOMEDSImpl_StudyManager::CanPaste(), SALOMEDSImpl_StudyManager::CopyLabel(), SALOMEDSImpl_SObject::FindSubObject(), SALOMEDSImpl_Study::GetCommonParameters(), SALOMEDSImpl_UseCaseBuilder::GetUseCaseIterator(), SALOMEDSImpl_UseCaseBuilder::IsUseCase(), Label(), DF_Document::Main(), main(), NewChild(), SALOMEDSImpl_StudyBuilder::NewObjectToTag(), SALOMEDSImpl_StudyManager::PasteLabel(), and SALOMEDSImpl_UseCaseBuilder::SALOMEDSImpl_UseCaseBuilder().
References DF_LabelNode::_attributes, _node, ForgetAllAttributes(), GetAttributes(), DF_ChildIterator::More(), DF_ChildIterator::Next(), and DF_ChildIterator::Value().
Referenced by SALOMEDSImpl_StudyManager::Copy(), ForgetAllAttributes(), SALOMEDSImpl_StudyBuilder::RemoveObject(), and SALOMEDSImpl_StudyBuilder::RemoveObjectWithChildren().
bool DF_Label::ForgetAttribute | ( | const std::string & | theID | ) | const |
std::vector< DF_Attribute * > DF_Label::GetAttributes | ( | ) | const |
DF_Document * DF_Label::GetDocument | ( | ) | const |
References DF_LabelNode::_document, and _node.
Referenced by Label(), SALOMEDSImpl_Study::RegisterGenObj(), and SALOMEDSImpl_Study::UnRegisterGenObj().
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::IsAttribute | ( | const std::string & | theID | ) | const |
References DF_LabelNode::_attributes, and _node.
Referenced by SALOMEDSImpl_StudyManager::Copy(), SALOMEDSImpl_Study::FindObjectIOR(), SALOMEDS_AttLong_i::GetPtr(), SALOMEDS_AttReal_i::GetPtr(), SALOMEDSImpl_AttributeParameter::HasFather(), SALOMEDSImpl_SComponent::IsA(), and SALOMEDSImpl_StudyBuilder::IsGUID().
References DF_LabelNode::_father, and _node.
Referenced by SALOMEDSImpl_StudyBuilder::Addreference().
bool DF_Label::IsNull | ( | ) | const |
References DF_LabelNode::_document, and _node.
Referenced by SALOMEDSImpl_StudyBuilder::AddDirectory(), SALOMEDSImpl_UseCaseBuilder::Append(), SALOMEDSImpl_UseCaseBuilder::AppendTo(), SALOMEDSImpl_GenericAttribute::CheckLocked(), DF_Document::Clear(), SALOMEDSImpl_Study::CreateObjectID(), SALOMEDSImpl_SObject::FindAttribute(), FindChild(), SALOMEDSImpl_Study::FindObjectByPath(), SALOMEDSImpl_Study::FindObjectID(), SALOMEDSImpl_StudyBuilder::FindOrCreateAttribute(), SALOMEDSImpl_SObject::FindSubObject(), SALOMEDSImpl_Study::GetCommonParameters(), SALOMEDSImpl_Study::GetContext(), SALOMEDSImpl_UseCaseBuilder::GetCurrentObject(), SALOMEDSImpl_Study::GetDirectoryNames(), SALOMEDSImpl_UseCaseBuilder::GetFather(), SALOMEDSImpl_Study::GetFileNames(), GetNode(), SALOMEDSImpl_Study::GetObjectNames(), SALOMEDSImpl_GenericAttribute::GetSObject(), SALOMEDS_GenericAttribute_i::GetSObject(), SALOMEDSImpl_UseCaseBuilder::HasChildren(), SALOMEDSImpl_UseCaseBuilder::InsertBefore(), DF_Document::IsEmpty(), IsEqual(), IsRoot(), SALOMEDSImpl_UseCaseBuilder::IsUseCaseNode(), Label(), DF_Document::Main(), NewChild(), operator!=(), operator==(), SALOMEDSImpl_UseCaseBuilder::Remove(), DF_Document::Root(), SALOMEDSImpl_Study::SetContext(), SALOMEDSImpl_UseCaseBuilder::SetCurrentObject(), SALOMEDSImpl_GenericAttribute::SetModifyFlag(), and SALOMEDSImpl_UseCaseBuilder::SortChildren().
bool DF_Label::IsRoot | ( | ) | const |
References Father(), and IsNull().
Referenced by SALOMEDSImpl_AttributeParameter::GetFather(), SALOMEDSImpl_SObject::GetFatherComponent(), and SALOMEDSImpl_AttributeParameter::HasFather().
|
static |
References DF_Label(), FindChild(), GetDocument(), IsNull(), DF_Document::Main(), and Root().
Referenced by SALOMEDS_AttributeTarget_i::Add(), SALOMEDSImpl_Study::CreateObjectID(), SALOMEDSImpl_Study::FindObjectID(), GetNode(), SALOMEDSImpl_Study::GetSComponent(), SALOMEDSImpl_UseCaseBuilder::GetSObject(), SALOMEDSImpl_Study::GetSObject(), SALOMEDSImpl_AttributeReference::Load(), SALOMEDSImpl_AttributeTreeNode::Load(), SALOMEDSImpl_StudyManager::Paste(), SALOMEDSImpl_StudyManager::PasteLabel(), SALOMEDS_AttributeTarget_i::Remove(), and SALOMEDSImpl_Study::UpdateIORLabelMap().
int DF_Label::LastChildTag | ( | ) | const |
References DF_LabelNode::_lastChild, _node, and DF_LabelNode::_tag.
Referenced by SALOMEDSImpl_SObject::GetLastChildTag().
int DF_Label::NbChildren | ( | ) | const |
References DF_LabelNode::_firstChild, DF_LabelNode::_next, and _node.
DF_Label DF_Label::NewChild | ( | ) |
References DF_LabelNode::_lastChild, _node, DF_LabelNode::_tag, DF_Label(), FindChild(), and IsNull().
Referenced by main(), SALOMEDSImpl_StudyBuilder::NewComponent(), and SALOMEDSImpl_StudyBuilder::NewObject().
|
private |
References _node.
Referenced by DF_Document::Clear().
DF_Label DF_Label::Root | ( | ) | const |
References DF_LabelNode::_document, _node, DF_Label(), Father(), and DF_Document::Main().
Referenced by SALOMEDSImpl_UseCaseBuilder::AddUseCase(), SALOMEDSImpl_StudyManager::CanPaste(), SALOMEDSImpl_StudyManager::Copy(), SALOMEDSImpl_Study::GetStudy(), SALOMEDS_Study_i::GetStudy(), SALOMEDSImpl_UseCaseBuilder::GetUseCaseIterator(), SALOMEDSImpl_UseCaseBuilder::IsUseCase(), Label(), SALOMEDSImpl_StudyManager::Paste(), SALOMEDSImpl_StudyManager::PasteLabel(), SALOMEDSImpl_Study::SALOMEDSImpl_Study(), SALOMEDSImpl_UseCaseBuilder::SALOMEDSImpl_UseCaseBuilder(), and SALOMEDSImpl_Study::SetTransientReference().
int DF_Label::Tag | ( | ) | const |
References _node, and DF_LabelNode::_tag.
Referenced by SALOMEDSImpl_StudyManager::CopyLabel(), and SALOMEDSImpl_StudyManager::PasteLabel().
|
friend |
|
friend |
|
private |
Referenced by AddAttribute(), DF_Document::Clear(), Depth(), DF_Label(), dump(), Entry(), Father(), FindAttribute(), FindChild(), ForgetAllAttributes(), ForgetAttribute(), GetAttributes(), GetDocument(), HasAttributes(), HasChild(), DF_ChildIterator::Init(), IsAttached(), IsAttribute(), IsDescendant(), DF_Document::IsEmpty(), IsNull(), LastChildTag(), DF_Document::Main(), NbChildren(), NewChild(), Nullify(), operator=(), DF_Document::Root(), Root(), Tag(), and ~DF_Label().