#include <DF_Container.hxx>
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_Attribute * | NewEmpty () const |
virtual void | Paste (DF_Attribute *theIntoAttribute) |
DF_Label | Label () const |
DF_Attribute * | FindAttribute (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_Container * | Set (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 |
DF_Container::DF_Container | ( | ) |
|
virtualinherited |
Reimplemented in SALOMEDSImpl_AttributeTreeNode.
Referenced by DF_Label::AddAttribute().
|
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().
|
virtualinherited |
Reimplemented in SALOMEDSImpl_AttributeTreeNode.
Referenced by DF_Label::ForgetAttribute().
void DF_Container::Clear | ( | ) |
|
inherited |
References DF_Attribute::_node, DF_Label::FindAttribute(), and DF_Attribute::Label().
Referenced by SALOMEDSImpl_UseCaseBuilder::AddUseCase(), SALOMEDSImpl_UseCaseBuilder::Append(), SALOMEDSImpl_UseCaseBuilder::GetCurrentObject(), SALOMEDSImpl_Study::GetModuleParameters(), SALOMEDSImpl_UseCaseBuilder::GetName(), SALOMEDSImpl_UseCaseBuilder::Remove(), SALOMEDSImpl_UseCaseBuilder::SALOMEDSImpl_UseCaseBuilder(), SALOMEDSImpl_UseCaseBuilder::SetCurrentObject(), SALOMEDSImpl_UseCaseBuilder::SetName(), and SALOMEDSImpl_UseCaseBuilder::SetRootCurrent().
bool DF_Container::GetBool | ( | const std::string & | theID | ) |
References _bools, and HasBoolID().
double DF_Container::GetDouble | ( | const std::string & | theID | ) |
References _doubles, and HasDoubleID().
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 | ) |
bool DF_Container::HasDoubleID | ( | const std::string & | theID | ) |
References _doubles.
Referenced by GetDouble().
bool DF_Container::HasStringID | ( | const std::string & | theID | ) |
References _strings.
Referenced by GetString().
|
virtual |
Implements DF_Attribute.
References GetID().
|
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().
|
virtualinherited |
Reimplemented in SALOMEDSImpl_AttributeParameter, SALOMEDSImpl_AttributeTreeNode, SALOMEDSImpl_AttributeComment, SALOMEDSImpl_AttributeExternalFileDef, SALOMEDSImpl_AttributeFileType, SALOMEDSImpl_AttributeName, SALOMEDSImpl_AttributeString, SALOMEDSImpl_AttributeStudyProperties, SALOMEDSImpl_AttributeReference, SALOMEDSImpl_AttributeReal, SALOMEDSImpl_AttributeInteger, SALOMEDSImpl_AttributeTableOfInteger, SALOMEDSImpl_AttributeTableOfReal, SALOMEDSImpl_AttributeTableOfString, SALOMEDSImpl_AttributeExpandable, SALOMEDSImpl_AttributePersistentRef, SALOMEDSImpl_AttributePythonObject, SALOMEDSImpl_AttributeTextHighlightColor, SALOMEDSImpl_AttributeLocalID, SALOMEDSImpl_AttributeOpened, SALOMEDSImpl_AttributePixMap, SALOMEDSImpl_AttributeSelectable, SALOMEDSImpl_AttributeSequenceOfReal, SALOMEDSImpl_AttributeTextColor, SALOMEDSImpl_AttributeDrawable, and SALOMEDSImpl_AttributeSequenceOfInteger.
Referenced by ReadAttributes().
|
virtual |
Implements DF_Attribute.
References DF_Container().
|
virtual |
|
virtual |
|
virtualinherited |
Reimplemented in SALOMEDSImpl_AttributeParameter, SALOMEDSImpl_AttributeTreeNode, SALOMEDSImpl_AttributeComment, SALOMEDSImpl_AttributeExternalFileDef, SALOMEDSImpl_AttributeFileType, SALOMEDSImpl_AttributeName, SALOMEDSImpl_AttributeString, SALOMEDSImpl_AttributeStudyProperties, SALOMEDSImpl_AttributeReference, SALOMEDSImpl_AttributeReal, SALOMEDSImpl_AttributeInteger, SALOMEDSImpl_AttributeTableOfInteger, SALOMEDSImpl_AttributeTableOfReal, SALOMEDSImpl_AttributeTableOfString, SALOMEDSImpl_AttributeExpandable, SALOMEDSImpl_AttributePersistentRef, SALOMEDSImpl_AttributePythonObject, SALOMEDSImpl_AttributeTextHighlightColor, SALOMEDSImpl_AttributeLocalID, SALOMEDSImpl_AttributeOpened, SALOMEDSImpl_AttributePixMap, SALOMEDSImpl_AttributeSelectable, SALOMEDSImpl_AttributeSequenceOfReal, SALOMEDSImpl_AttributeTextColor, SALOMEDSImpl_AttributeDrawable, and SALOMEDSImpl_AttributeSequenceOfInteger.
Referenced by main(), and SaveAttributes().
|
static |
References DF_Label::AddAttribute(), DF_Container(), DF_Label::FindAttribute(), and GetID().
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.
|
protected |
Referenced by Clear(), DF_Container(), GetBool(), HasBoolID(), Paste(), Restore(), SetBool(), and ~DF_Container().
|
protected |
Referenced by Clear(), DF_Container(), GetDouble(), HasDoubleID(), Paste(), Restore(), SetDouble(), and ~DF_Container().
|
protected |
Referenced by Clear(), DF_Container(), GetInt(), HasIntID(), Paste(), Restore(), SetInt(), and ~DF_Container().
|
protectedinherited |
|
protected |
Referenced by Clear(), DF_Container(), GetString(), HasStringID(), Paste(), Restore(), SetString(), and ~DF_Container().