Version: 9.12.0
DF_Container Class Reference

#include <DF_Container.hxx>

Inheritance diagram for DF_Container:

Public Member Functions

 DF_Container ()
 
 ~DF_Container ()
 
void SetInt (const std::string &theID, int theValue)
 
int GetInt (const std::string &theID)
 
bool HasIntID (const std::string &theID)
 
void SetDouble (const std::string &theID, const double &theValue)
 
double GetDouble (const std::string &theID)
 
bool HasDoubleID (const std::string &theID)
 
void SetString (const std::string &theID, const std::string &theValue)
 
std::string GetString (const std::string &theID)
 
bool HasStringID (const std::string &theID)
 
void SetBool (const std::string &theID, bool theValue)
 
bool GetBool (const std::string &theID)
 
bool HasBoolID (const std::string &theID)
 
void Clear ()
 
virtual const std::string & ID () const
 
virtual void Restore (DF_Attribute *theAttribute)
 
virtual DF_AttributeNewEmpty () const
 
virtual void Paste (DF_Attribute *theIntoAttribute)
 
DF_Label Label () const
 
DF_AttributeFindAttribute (const std::string &theID) const
 
virtual std::string Save ()
 
virtual void Load (const std::string &)
 
virtual void AfterAddition ()
 
virtual void BeforeForget ()
 

Static Public Member Functions

static const std::string & GetID ()
 
static DF_ContainerSet (DF_Label &theLabel)
 

Protected Member Functions

void Backup ()
 

Protected Attributes

std::map< std::string, int > _ints
 
std::map< std::string, double > _doubles
 
std::map< std::string, std::string > _strings
 
std::map< std::string, bool_bools
 
DF_LabelNode_node
 

Constructor & Destructor Documentation

◆ DF_Container()

DF_Container::DF_Container ( )

References _bools, _doubles, _ints, and _strings.

Referenced by NewEmpty(), and Set().

◆ ~DF_Container()

DF_Container::~DF_Container ( )

References _bools, _doubles, _ints, and _strings.

Member Function Documentation

◆ AfterAddition()

virtual void DF_Attribute::AfterAddition ( )
virtualinherited

Reimplemented in SALOMEDSImpl_AttributeTreeNode.

Referenced by DF_Label::AddAttribute().

◆ Backup()

void DF_Attribute::Backup ( )
protectedinherited

Referenced by SALOMEDSImpl_AttributeSequenceOfReal::Add(), SALOMEDSImpl_AttributeSequenceOfInteger::Add(), SALOMEDSImpl_AttributeTarget::Add(), SALOMEDSImpl_AttributeSequenceOfReal::Assign(), SALOMEDSImpl_AttributeSequenceOfInteger::Assign(), SALOMEDSImpl_AttributeTextColor::ChangeArray(), SALOMEDSImpl_AttributeTextHighlightColor::ChangeArray(), SALOMEDSImpl_AttributeStudyProperties::ChangeCreatorName(), SALOMEDSImpl_AttributeSequenceOfReal::ChangeValue(), SALOMEDSImpl_AttributeSequenceOfInteger::ChangeValue(), SALOMEDSImpl_AttributeParameter::Clear(), SALOMEDSImpl_AttributeTableOfInteger::Load(), SALOMEDSImpl_AttributeTableOfReal::Load(), SALOMEDSImpl_AttributeTableOfString::Load(), SALOMEDSImpl_AttributeParameter::Load(), SALOMEDSImpl_AttributeSequenceOfInteger::Remove(), SALOMEDSImpl_AttributeSequenceOfReal::Remove(), SALOMEDSImpl_AttributeTarget::Remove(), SALOMEDSImpl_AttributeParameter::RemoveID(), SALOMEDSImpl_AttributeReference::Set(), SALOMEDSImpl_AttributeFlags::Set(), SALOMEDSImpl_AttributeParameter::SetBool(), SALOMEDSImpl_AttributeTableOfReal::SetColumnData(), SALOMEDSImpl_AttributeTableOfInteger::SetColumnData(), SALOMEDSImpl_AttributeTableOfString::SetColumnData(), SALOMEDSImpl_AttributeTableOfInteger::SetColumnTitle(), SALOMEDSImpl_AttributeTableOfReal::SetColumnTitle(), SALOMEDSImpl_AttributeTableOfString::SetColumnTitle(), SALOMEDSImpl_AttributeStudyProperties::SetComment(), SALOMEDSImpl_AttributeStudyProperties::SetComponentVersion(), SALOMEDSImpl_AttributeStudyProperties::SetCreationMode(), SALOMEDSImpl_AttributeDrawable::SetDrawable(), SALOMEDSImpl_AttributeExpandable::SetExpandable(), SALOMEDSImpl_AttributeTreeNode::SetFather(), SALOMEDSImpl_AttributeTreeNode::SetFirst(), SALOMEDSImpl_AttributeParameter::SetInt(), SALOMEDSImpl_AttributeParameter::SetIntArray(), SALOMEDSImpl_AttributeStudyProperties::SetModification(), SALOMEDSImpl_AttributeTableOfInteger::SetNbColumns(), SALOMEDSImpl_AttributeTableOfReal::SetNbColumns(), SALOMEDSImpl_AttributeTableOfString::SetNbColumns(), SALOMEDSImpl_AttributeTreeNode::SetNext(), SALOMEDSImpl_AttributePythonObject::SetObject(), SALOMEDSImpl_AttributeOpened::SetOpened(), SALOMEDSImpl_AttributePixMap::SetPixMap(), SALOMEDSImpl_AttributeTreeNode::SetPrevious(), SALOMEDSImpl_AttributeParameter::SetReal(), SALOMEDSImpl_AttributeParameter::SetRealArray(), SALOMEDSImpl_AttributeTarget::SetRelation(), SALOMEDSImpl_AttributeTableOfReal::SetRowData(), SALOMEDSImpl_AttributeTableOfInteger::SetRowData(), SALOMEDSImpl_AttributeTableOfString::SetRowData(), SALOMEDSImpl_AttributeTableOfInteger::SetRowTitle(), SALOMEDSImpl_AttributeTableOfReal::SetRowTitle(), SALOMEDSImpl_AttributeTableOfString::SetRowTitle(), SALOMEDSImpl_AttributeTableOfInteger::SetRowUnit(), SALOMEDSImpl_AttributeTableOfReal::SetRowUnit(), SALOMEDSImpl_AttributeTableOfString::SetRowUnit(), SALOMEDSImpl_AttributeSelectable::SetSelectable(), SALOMEDSImpl_AttributeParameter::SetStrArray(), SALOMEDSImpl_AttributeParameter::SetString(), SALOMEDSImpl_AttributeTextColor::SetTextColor(), SALOMEDSImpl_AttributeTextHighlightColor::SetTextHighlightColor(), SALOMEDSImpl_AttributeTableOfInteger::SetTitle(), SALOMEDSImpl_AttributeTableOfReal::SetTitle(), SALOMEDSImpl_AttributeTableOfString::SetTitle(), SALOMEDSImpl_AttributeStudyProperties::SetUnits(), SALOMEDSImpl_AttributeReal::SetValue(), SALOMEDSImpl_AttributeInteger::SetValue(), SALOMEDSImpl_AttributeLocalID::SetValue(), SALOMEDSImpl_AttributeComment::SetValue(), SALOMEDSImpl_AttributeString::SetValue(), SALOMEDSImpl_AttributeName::SetValue(), SALOMEDSImpl_AttributeIOR::SetValue(), SALOMEDSImpl_AttributeExternalFileDef::SetValue(), SALOMEDSImpl_AttributeFileType::SetValue(), SALOMEDSImpl_AttributePersistentRef::SetValue(), SALOMEDSImpl_AttributeUserID::SetValue(), and SALOMEDSImpl_AttributeGraphic::SetVisibility().

◆ BeforeForget()

virtual void DF_Attribute::BeforeForget ( )
virtualinherited

◆ Clear()

void DF_Container::Clear ( )

References _bools, _doubles, _ints, and _strings.

Referenced by Paste(), and Restore().

◆ FindAttribute()

◆ GetBool()

bool DF_Container::GetBool ( const std::string &  theID)

References _bools, and HasBoolID().

◆ GetDouble()

double DF_Container::GetDouble ( const std::string &  theID)

References _doubles, and HasDoubleID().

◆ GetID()

const std::string & DF_Container::GetID ( )
static

Referenced by ID(), and Set().

◆ GetInt()

int DF_Container::GetInt ( const std::string &  theID)

References _ints, and HasIntID().

◆ GetString()

std::string DF_Container::GetString ( const std::string &  theID)

References _strings, and HasStringID().

◆ HasBoolID()

bool DF_Container::HasBoolID ( const std::string &  theID)

References _bools.

Referenced by GetBool().

◆ HasDoubleID()

bool DF_Container::HasDoubleID ( const std::string &  theID)

References _doubles.

Referenced by GetDouble().

◆ HasIntID()

bool DF_Container::HasIntID ( const std::string &  theID)

References _ints.

Referenced by GetInt().

◆ HasStringID()

bool DF_Container::HasStringID ( const std::string &  theID)

References _strings.

Referenced by GetString().

◆ ID()

const std::string & DF_Container::ID ( ) const
virtual

Implements DF_Attribute.

References GetID().

◆ Label()

DF_Label DF_Attribute::Label ( ) const
inherited

References DF_Attribute::_node, and DF_Attribute::DF_Label.

Referenced by SALOMEDS_AttributeTarget_i::Add(), SALOMEDSImpl_UseCaseBuilder::Append(), SALOMEDSImpl_AttributeTreeNode::Append(), SALOMEDSImpl_GenericAttribute::CheckLocked(), DF_Attribute::FindAttribute(), SALOMEDSImpl_UseCaseBuilder::GetCurrentObject(), SALOMEDSImpl_AttributeParameter::GetFather(), GetNode(), SALOMEDS_GenericAttribute_i::GetSObject(), SALOMEDSImpl_GenericAttribute::GetSObject(), SALOMEDSImpl_UseCaseBuilder::GetSObject(), SALOMEDSImpl_UseCaseBuilder::HasChildren(), SALOMEDSImpl_AttributeParameter::HasFather(), SALOMEDSImpl_AttributeTreeNode::InsertAfter(), SALOMEDSImpl_AttributeTreeNode::InsertBefore(), SALOMEDSImpl_Study::IORUpdated(), SALOMEDSImpl_UseCaseBuilder::IsUseCaseNode(), SALOMEDS_AttributeTreeNode::Label(), SALOMEDS_AttributeTreeNode_i::Label(), SALOMEDSImpl_AttributeTreeNode::Load(), SALOMEDSImpl_AttributeReference::Load(), SALOMEDSImpl_AttributeTreeNode::Prepend(), SALOMEDSImpl_UseCaseBuilder::Remove(), SALOMEDS_AttributeTarget_i::Remove(), SALOMEDSImpl_UseCaseBuilder::SALOMEDSImpl_UseCaseBuilder(), SALOMEDSImpl_AttributeTreeNode::Save(), SALOMEDSImpl_UseCaseBuilder::SetCurrentObject(), SALOMEDSImpl_GenericAttribute::SetModifyFlag(), SALOMEDSImpl_UseCaseBuilder::SetName(), SALOMEDSImpl_UseCaseBuilder::SetRootCurrent(), SALOMEDSImpl_AttributeIOR::SetValue(), SALOMEDSImpl_UseCaseBuilder::SortChildren(), Translate_persistentID_to_IOR(), SALOMEDSImpl_UseCaseIterator::Value(), and SALOMEDSImpl_AttributeIOR::~SALOMEDSImpl_AttributeIOR().

◆ Load()

◆ NewEmpty()

DF_Attribute * DF_Container::NewEmpty ( ) const
virtual

Implements DF_Attribute.

References DF_Container().

◆ Paste()

void DF_Container::Paste ( DF_Attribute theIntoAttribute)
virtual

Implements DF_Attribute.

References _bools, _doubles, _ints, _strings, and Clear().

◆ Restore()

void DF_Container::Restore ( DF_Attribute theAttribute)
virtual

Implements DF_Attribute.

References _bools, _doubles, _ints, _strings, and Clear().

◆ Save()

◆ Set()

DF_Container * DF_Container::Set ( DF_Label theLabel)
static

◆ SetBool()

void DF_Container::SetBool ( const std::string &  theID,
bool  theValue 
)

References _bools.

◆ SetDouble()

void DF_Container::SetDouble ( const std::string &  theID,
const double &  theValue 
)

References _doubles.

◆ SetInt()

void DF_Container::SetInt ( const std::string &  theID,
int  theValue 
)

References _ints.

◆ SetString()

void DF_Container::SetString ( const std::string &  theID,
const std::string &  theValue 
)

References _strings.

Field Documentation

◆ _bools

std::map<std::string, bool> DF_Container::_bools
protected

◆ _doubles

std::map<std::string, double> DF_Container::_doubles
protected

◆ _ints

std::map<std::string, int> DF_Container::_ints
protected

◆ _node

◆ _strings

std::map<std::string, std::string> DF_Container::_strings
protected