Version: 8.3.0
SALOMEDSImpl_SObject Class Reference

#include <SALOMEDSImpl_SObject.hxx>

Inheritance diagram for SALOMEDSImpl_SObject:

Public Member Functions

 SALOMEDSImpl_SObject ()
 Function : empty constructor Purpose : More...
 
 SALOMEDSImpl_SObject (const DF_Label &theLabel)
 Function : constructor Purpose : More...
 
 SALOMEDSImpl_SObject (const SALOMEDSImpl_SObject &theSObject)
 Function : copy constructor Purpose : More...
 
virtual ~SALOMEDSImpl_SObject ()
 Function : Desctructor Purpose : More...
 
virtual std::string GetID () const
 Function : GetID Purpose : More...
 
virtual SALOMEDSImpl_SComponent GetFatherComponent () const
 Function : GetFatherComponent Purpose : More...
 
virtual SALOMEDSImpl_SObject GetFather () const
 Function : GetFather Purpose : More...
 
virtual int GetLastChildTag () const
 Function : GetLastChild Purpose : More...
 
virtual bool FindAttribute (DF_Attribute *&theAttribute, const std::string &theTypeOfAttribute) const
 Function : FindAttribute Purpose : Find attribute of given type on this SObject. More...
 
virtual bool ReferencedObject (SALOMEDSImpl_SObject &theObject) const
 Function : ReferencedObject Purpose : More...
 
virtual bool FindSubObject (int theTag, SALOMEDSImpl_SObject &theObject)
 Function : FindSubObject Purpose : More...
 
virtual SALOMEDSImpl_StudyGetStudy () const
 Function : GetStudy Purpose : More...
 
virtual std::string Name () const
 
virtual void Name (const std::string &theName)
 
virtual std::vector
< DF_Attribute * > 
GetAllAttributes () const
 Function : GetAllAttributes Purpose : Returns list of all attributes for this sobject. More...
 
virtual std::string GetName () const
 Function : GetName Purpose : More...
 
virtual std::string GetComment () const
 Function : GetComment Purpose : More...
 
virtual std::string GetIOR () const
 Function : GetIOR Purpose : More...
 
virtual void SetAttrString (const std::string &name, const std::string &value)
 
virtual int Tag () const
 
virtual int Depth () const
 
virtual DF_Label GetLabel () const
 
bool IsNull () const
 
bool IsComponent () const
 Function : IsComponent Purpose : More...
 
 operator SALOMEDSImpl_SComponent () const
 Function : SALOMEDSImpl_SComponent Purpose : More...
 
 operator bool () const
 
SALOMEDSImpl_SObjectGetPersistentCopy () const
 Function : GetPersistentCopy Purpose : More...
 

Static Public Member Functions

static std::string GetGUID (const std::string &theTypeOfAttribute)
 

Protected Attributes

DF_Label _lab
 
std::string _name
 
std::string _value
 
std::string _type
 

Constructor & Destructor Documentation

SALOMEDSImpl_SObject::SALOMEDSImpl_SObject ( )

Function : empty constructor Purpose :

Referenced by GetPersistentCopy().

SALOMEDSImpl_SObject::SALOMEDSImpl_SObject ( const DF_Label theLabel)

Function : constructor Purpose :

References _name, _type, and _value.

SALOMEDSImpl_SObject::SALOMEDSImpl_SObject ( const SALOMEDSImpl_SObject theSObject)

Function : copy constructor Purpose :

References _lab, _name, _type, and _value.

SALOMEDSImpl_SObject::~SALOMEDSImpl_SObject ( )
virtual

Function : Desctructor Purpose :

Member Function Documentation

virtual int SALOMEDSImpl_SObject::Depth ( ) const
virtual
bool SALOMEDSImpl_SObject::FindAttribute ( DF_Attribute *&  theAttribute,
const std::string &  theTypeOfAttribute 
) const
virtual

Function : FindAttribute Purpose : Find attribute of given type on this SObject.

References _lab, DF_Label::FindAttribute(), GetGUID(), and DF_Label::IsNull().

Referenced by SALOMEDS_SObject::FindAttribute(), SALOMEDS_SObject_i::FindAttribute(), and SALOMEDSImpl_Study::GetAttribute().

bool SALOMEDSImpl_SObject::FindSubObject ( int  theTag,
SALOMEDSImpl_SObject theObject 
)
virtual
std::vector< DF_Attribute * > SALOMEDSImpl_SObject::GetAllAttributes ( ) const
virtual

Function : GetAllAttributes Purpose : Returns list of all attributes for this sobject.

References _lab, DF_Label::GetAttributes(), and SALOMEDSImpl_GenericAttribute::Type().

Referenced by SALOMEDS_SObject::GetAllAttributes(), SALOMEDS_SObject_i::GetAllAttributes(), and main().

SALOMEDSImpl_SObject SALOMEDSImpl_SObject::GetFather ( ) const
virtual
std::string SALOMEDSImpl_SObject::GetGUID ( const std::string &  theTypeOfAttribute)
static
std::string SALOMEDSImpl_SObject::GetIOR ( ) const
virtual
virtual DF_Label SALOMEDSImpl_SObject::GetLabel ( ) const
virtual

Referenced by SALOMEDSImpl_Study::_FindObject(), SALOMEDSImpl_Study::_FindObjectIOR(), SALOMEDSImpl_AttributeTarget::Add(), SALOMEDSImpl_StudyBuilder::AddDirectory(), SALOMEDSImpl_StudyBuilder::Addreference(), SALOMEDSImpl_UseCaseBuilder::Append(), SALOMEDSImpl_UseCaseBuilder::AppendTo(), SALOMEDSImpl_StudyManager::CanCopy(), SALOMEDSImpl_StudyManager::Copy(), SALOMEDSImpl_StudyBuilder::DefineComponentInstance(), dumpSO(), SALOMEDSImpl_StudyBuilder::FindAttribute(), SALOMEDSImpl_Study::FindDependances(), SALOMEDSImpl_Study::FindObjectIOR(), SALOMEDSImpl_StudyBuilder::FindOrCreateAttribute(), SALOMEDSImpl_Study::GetCommonParameters(), SALOMEDSImpl_UseCaseBuilder::GetFather(), SALOMEDSImpl_UseCaseBuilder::GetUseCaseIterator(), SALOMEDSImpl_UseCaseBuilder::HasChildren(), SALOMEDSImpl_StudyManager::Impl_SaveObject(), SALOMEDSImpl_ChildIterator::Init(), SALOMEDSImpl_ChildIterator::InitEx(), SALOMEDSImpl_UseCaseBuilder::InsertBefore(), SALOMEDSImpl_StudyBuilder::IsGUID(), SALOMEDSImpl_UseCaseBuilder::IsUseCase(), SALOMEDSImpl_UseCaseBuilder::IsUseCaseNode(), SALOMEDSImpl_StudyBuilder::LoadWith(), main(), SALOMEDSImpl_StudyBuilder::NewObject(), SALOMEDSImpl_StudyBuilder::NewObjectToTag(), SALOMEDSImpl_AttributeTarget::Remove(), SALOMEDSImpl_UseCaseBuilder::Remove(), SALOMEDSImpl_StudyBuilder::RemoveAttribute(), SALOMEDSImpl_StudyBuilder::RemoveObject(), SALOMEDSImpl_StudyBuilder::RemoveObjectWithChildren(), SALOMEDSImpl_StudyBuilder::RemoveReference(), SALOMEDSImpl_ChildIterator::SALOMEDSImpl_ChildIterator(), SaveAttributes(), SetAttrString(), SALOMEDSImpl_StudyBuilder::SetComment(), SALOMEDSImpl_Study::SetContext(), SALOMEDSImpl_UseCaseBuilder::SetCurrentObject(), SALOMEDSImpl_StudyBuilder::SetGUID(), SALOMEDSImpl_StudyBuilder::SetIOR(), SALOMEDSImpl_StudyBuilder::SetName(), SALOMEDSImpl_UseCaseBuilder::SortChildren(), and Translate_IOR_to_persistentID().

int SALOMEDSImpl_SObject::GetLastChildTag ( ) const
virtual

Function : GetLastChild Purpose :

References _lab, and DF_Label::LastChildTag().

Referenced by SALOMEDS_SObject_i::GetLastChildTag().

SALOMEDSImpl_SObject * SALOMEDSImpl_SObject::GetPersistentCopy ( ) const

Function : GetPersistentCopy Purpose :

References _lab, _name, _type, _value, and SALOMEDSImpl_SObject().

Referenced by SALOMEDS_SObject::SALOMEDS_SObject(), and SALOMEDS_SObject_i::SALOMEDS_SObject_i().

bool SALOMEDSImpl_SObject::IsComponent ( ) const
virtual std::string SALOMEDSImpl_SObject::Name ( ) const
virtual
virtual void SALOMEDSImpl_SObject::Name ( const std::string &  theName)
virtual
SALOMEDSImpl_SObject::operator bool ( ) const
SALOMEDSImpl_SObject::operator SALOMEDSImpl_SComponent ( ) const

Function : SALOMEDSImpl_SComponent Purpose :

References _lab, _name, _type, and _value.

void SALOMEDSImpl_SObject::SetAttrString ( const std::string &  name,
const std::string &  value 
)
virtual
virtual int SALOMEDSImpl_SObject::Tag ( ) const
virtual

Field Documentation