Version: 9.12.0
SALOMEDSImpl_UseCaseBuilder Class Reference

#include <SALOMEDSImpl_UseCaseBuilder.hxx>

Public Member Functions

 SALOMEDSImpl_UseCaseBuilder (DF_Document *theDocument)
 standard constructor
More...
 
virtual ~SALOMEDSImpl_UseCaseBuilder ()
 standard destructor More...
 
virtual bool Append (const SALOMEDSImpl_SObject &theObject)
 Function : Append Purpose : More...
 
virtual bool Remove (const SALOMEDSImpl_SObject &theObject)
 Function : Remove Purpose : More...
 
virtual bool AppendTo (const SALOMEDSImpl_SObject &theFather, const SALOMEDSImpl_SObject &theObject)
 Function : AppendTo Purpose : More...
 
virtual bool InsertBefore (const SALOMEDSImpl_SObject &theFirst, const SALOMEDSImpl_SObject &theNext)
 Function : InsertBefore Purpose : More...
 
int GetIndexInFather (const SALOMEDSImpl_SObject &theFather, const SALOMEDSImpl_SObject &theObject)
 Function : GetIndexInFather Purpose : More...
 
virtual bool SetCurrentObject (const SALOMEDSImpl_SObject &theObject)
 Function : SetCurrentObject Purpose : More...
 
virtual bool SetRootCurrent ()
 Function : SetRootCurrent Purpose : More...
 
virtual bool HasChildren (const SALOMEDSImpl_SObject &theObject)
 Function : HasChildren Purpose : More...
 
virtual bool SortChildren (const SALOMEDSImpl_SObject &theObject, bool theAscendingOrder)
 Function : SortChildren Purpose : More...
 
virtual SALOMEDSImpl_SObject GetFather (const SALOMEDSImpl_SObject &theObject)
 Function : GetFather Purpose : More...
 
virtual bool IsUseCase (const SALOMEDSImpl_SObject &theObject)
 Function : IsUseCase Purpose :
More...
 
virtual bool IsUseCaseNode (const SALOMEDSImpl_SObject &theObject)
 Function : IsUseCaseNode Purpose :
More...
 
virtual bool SetName (const std::string &theName)
 Function : SetName Purpose : More...
 
virtual SALOMEDSImpl_SObject GetCurrentObject ()
 Function : GetCurrentObject Purpose : More...
 
virtual std::string GetName ()
 Function : GetName Purpose : More...
 
virtual SALOMEDSImpl_SObject AddUseCase (const std::string &theName)
 Function : NewUseCase Purpose :
More...
 
virtual SALOMEDSImpl_UseCaseIterator GetUseCaseIterator (const SALOMEDSImpl_SObject &anObject)
 Function : GetUseCaseIterator Purpose : Creates a new UseCase iterator, if anObject is null all use cases are iterated. More...
 
SALOMEDSImpl_SObject GetSObject (const std::string &theEntry)
 

Private Attributes

SALOMEDSImpl_AttributeTreeNode_root
 
DF_Document_doc
 
SALOMEDSImpl_AttributeTreeNode_lastChild
 
int _childIndex
 

Constructor & Destructor Documentation

◆ SALOMEDSImpl_UseCaseBuilder()

◆ ~SALOMEDSImpl_UseCaseBuilder()

SALOMEDSImpl_UseCaseBuilder::~SALOMEDSImpl_UseCaseBuilder ( )
virtual

standard destructor

Function : destructor Purpose :

Member Function Documentation

◆ AddUseCase()

◆ Append()

◆ AppendTo()

◆ GetCurrentObject()

◆ GetFather()

◆ GetIndexInFather()

◆ GetName()

std::string SALOMEDSImpl_UseCaseBuilder::GetName ( )
virtual

◆ GetSObject()

◆ GetUseCaseIterator()

SALOMEDSImpl_UseCaseIterator SALOMEDSImpl_UseCaseBuilder::GetUseCaseIterator ( const SALOMEDSImpl_SObject anObject)
virtual

Function : GetUseCaseIterator Purpose : Creates a new UseCase iterator, if anObject is null all use cases are iterated.

References _doc, DF_Label::FindChild(), SALOMEDSImpl_SObject::GetLabel(), DF_Document::Main(), DF_Label::Root(), USE_CASE_GUID, and USE_CASE_LABEL_TAG.

Referenced by _PTR(), SALOMEDS_UseCaseBuilder_i::GetUseCaseIterator(), and main().

◆ HasChildren()

◆ InsertBefore()

◆ IsUseCase()

bool SALOMEDSImpl_UseCaseBuilder::IsUseCase ( const SALOMEDSImpl_SObject theObject)
virtual

◆ IsUseCaseNode()

◆ Remove()

◆ SetCurrentObject()

◆ SetName()

bool SALOMEDSImpl_UseCaseBuilder::SetName ( const std::string &  theName)
virtual

◆ SetRootCurrent()

◆ SortChildren()

Field Documentation

◆ _childIndex

int SALOMEDSImpl_UseCaseBuilder::_childIndex
private

◆ _doc

DF_Document* SALOMEDSImpl_UseCaseBuilder::_doc
private

◆ _lastChild

SALOMEDSImpl_AttributeTreeNode* SALOMEDSImpl_UseCaseBuilder::_lastChild
private

◆ _root