Version: 8.3.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 ( )

References _bools, _doubles, _ints, and _strings.

Referenced by NewEmpty(), and Set().

DF_Container::~DF_Container ( )

References _bools, _doubles, _ints, and _strings.

Member Function Documentation

virtual void DF_Attribute::AfterAddition ( )
virtualinherited

Reimplemented in SALOMEDSImpl_AttributeTreeNode.

Referenced by DF_Label::AddAttribute().

void DF_Attribute::Backup ( )
protectedinherited

Referenced by SALOMEDSImpl_AttributeTarget::Add(), SALOMEDSImpl_AttributeSequenceOfInteger::Add(), SALOMEDSImpl_AttributeSequenceOfReal::Add(), SALOMEDSImpl_AttributeSequenceOfInteger::Assign(), SALOMEDSImpl_AttributeSequenceOfReal::Assign(), SALOMEDSImpl_AttributeTextColor::ChangeArray(), SALOMEDSImpl_AttributeTextHighlightColor::ChangeArray(), SALOMEDSImpl_AttributeStudyProperties::ChangeCreatorName(), SALOMEDSImpl_AttributeSequenceOfInteger::ChangeValue(), SALOMEDSImpl_AttributeSequenceOfReal::ChangeValue(), SALOMEDSImpl_AttributeParameter::Clear(), SALOMEDSImpl_AttributeTableOfString::Load(), SALOMEDSImpl_AttributeTableOfReal::Load(), SALOMEDSImpl_AttributeTableOfInteger::Load(), SALOMEDSImpl_AttributeParameter::Load(), SALOMEDSImpl_AttributeTarget::Remove(), SALOMEDSImpl_AttributeSequenceOfInteger::Remove(), SALOMEDSImpl_AttributeSequenceOfReal::Remove(), SALOMEDSImpl_AttributeParameter::RemoveID(), SALOMEDSImpl_AttributeReference::Set(), SALOMEDSImpl_AttributeFlags::Set(), SALOMEDSImpl_AttributeParameter::SetBool(), SALOMEDSImpl_AttributeTableOfString::SetColumnData(), SALOMEDSImpl_AttributeTableOfReal::SetColumnData(), SALOMEDSImpl_AttributeTableOfInteger::SetColumnData(), SALOMEDSImpl_AttributeTableOfString::SetColumnTitle(), SALOMEDSImpl_AttributeTableOfReal::SetColumnTitle(), SALOMEDSImpl_AttributeTableOfInteger::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_AttributeTableOfString::SetNbColumns(), SALOMEDSImpl_AttributeTableOfReal::SetNbColumns(), SALOMEDSImpl_AttributeTableOfInteger::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_AttributeTableOfString::SetRowData(), SALOMEDSImpl_AttributeTableOfReal::SetRowData(), SALOMEDSImpl_AttributeTableOfInteger::SetRowData(), SALOMEDSImpl_AttributeTableOfString::SetRowTitle(), SALOMEDSImpl_AttributeTableOfReal::SetRowTitle(), SALOMEDSImpl_AttributeTableOfInteger::SetRowTitle(), SALOMEDSImpl_AttributeTableOfString::SetRowUnit(), SALOMEDSImpl_AttributeTableOfReal::SetRowUnit(), SALOMEDSImpl_AttributeTableOfInteger::SetRowUnit(), SALOMEDSImpl_AttributeSelectable::SetSelectable(), SALOMEDSImpl_AttributeParameter::SetStrArray(), SALOMEDSImpl_AttributeParameter::SetString(), SALOMEDSImpl_AttributeTextColor::SetTextColor(), SALOMEDSImpl_AttributeTextHighlightColor::SetTextHighlightColor(), SALOMEDSImpl_AttributeTableOfString::SetTitle(), SALOMEDSImpl_AttributeTableOfReal::SetTitle(), SALOMEDSImpl_AttributeTableOfInteger::SetTitle(), SALOMEDSImpl_AttributeStudyProperties::SetUnits(), SALOMEDSImpl_AttributeExternalFileDef::SetValue(), SALOMEDSImpl_AttributeFileType::SetValue(), SALOMEDSImpl_AttributeInteger::SetValue(), SALOMEDSImpl_AttributeReal::SetValue(), SALOMEDSImpl_AttributeUserID::SetValue(), SALOMEDSImpl_AttributeString::SetValue(), SALOMEDSImpl_AttributeLocalID::SetValue(), SALOMEDSImpl_AttributeName::SetValue(), SALOMEDSImpl_AttributeIOR::SetValue(), SALOMEDSImpl_AttributeComment::SetValue(), SALOMEDSImpl_AttributePersistentRef::SetValue(), and SALOMEDSImpl_AttributeGraphic::SetVisibility().

virtual void DF_Attribute::BeforeForget ( )
virtualinherited
void DF_Container::Clear ( )

References _bools, _doubles, _ints, and _strings.

Referenced by Paste(), and Restore().

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

References _bools, and HasBoolID().

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

References _doubles, and HasDoubleID().

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

Referenced by ID(), and Set().

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

References _ints, and HasIntID().

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

References _strings, and HasStringID().

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

References _bools.

Referenced by GetBool().

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

References _doubles.

Referenced by GetDouble().

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

References _ints.

Referenced by GetInt().

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

References _strings.

Referenced by GetString().

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

Implements DF_Attribute.

References GetID().

DF_Label DF_Attribute::Label ( ) const
inherited

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

Referenced by SALOMEDS_AttributeTarget_i::Add(), SALOMEDSImpl_AttributeTreeNode::Append(), SALOMEDSImpl_UseCaseBuilder::Append(), SALOMEDSImpl_GenericAttribute::CheckLocked(), DF_Attribute::FindAttribute(), SALOMEDSImpl_UseCaseBuilder::GetCurrentObject(), SALOMEDSImpl_AttributeParameter::GetFather(), GetNode(), SALOMEDSImpl_GenericAttribute::GetSObject(), SALOMEDS_GenericAttribute_i::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_AttributeReference::Load(), SALOMEDSImpl_AttributeTreeNode::Load(), SALOMEDSImpl_AttributeTreeNode::Prepend(), SALOMEDS_AttributeTarget_i::Remove(), SALOMEDSImpl_UseCaseBuilder::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().

DF_Attribute * DF_Container::NewEmpty ( ) const
virtual

Implements DF_Attribute.

References DF_Container().

void DF_Container::Paste ( DF_Attribute theIntoAttribute)
virtual

Implements DF_Attribute.

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

void DF_Container::Restore ( DF_Attribute theAttribute)
virtual

Implements DF_Attribute.

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

DF_Container * DF_Container::Set ( DF_Label theLabel)
static
void DF_Container::SetBool ( const std::string &  theID,
bool  theValue 
)

References _bools.

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

References _doubles.

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

References _ints.

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

References _strings.

Field Documentation

std::map<std::string, bool> DF_Container::_bools
protected
std::map<std::string, double> DF_Container::_doubles
protected
std::map<std::string, int> DF_Container::_ints
protected
std::map<std::string, std::string> DF_Container::_strings
protected