Version: 8.3.0
SALOMEDSImpl_AttributeParameter Class Reference

Class: SALOMEDSImpl_AttributeParameter Description : AttributeParameter is a universal container of basic types. More...

#include <SALOMEDSImpl_AttributeParameter.hxx>

Inheritance diagram for SALOMEDSImpl_AttributeParameter:

Public Member Functions

 SALOMEDSImpl_AttributeParameter ()
 
void SetInt (const std::string &theID, const int &theValue)
 Function : SetInt Purpose : Associates a integer value with the ID. More...
 
int GetInt (const std::string &theID)
 Function : GetInt Purpose : Returns a int value associated with the given ID. More...
 
void SetReal (const std::string &theID, const double &theValue)
 Function : SetReal Purpose : Associates a double value with the ID. More...
 
double GetReal (const std::string &theID)
 Function : GetReal Purpose : Returns a double value associated with the given ID. More...
 
void SetString (const std::string &theID, const std::string &theValue)
 Function : SetString Purpose : Associates a string with the ID. More...
 
std::string GetString (const std::string &theID)
 Function : GetString Purpose : Returns a string associated with the given ID. More...
 
void SetBool (const std::string &theID, const bool &theValue)
 Function : SetBool Purpose : Associates a bool value with the ID. More...
 
bool GetBool (const std::string &theID)
 Function : GetBool Purpose : Returns a bool value associated with the ID. More...
 
void SetRealArray (const std::string &theID, const std::vector< double > &theArray)
 Function : SetRealArray Purpose : Associates an array of double values with the given ID. More...
 
std::vector< double > GetRealArray (const std::string &theID)
 Function : GetRealArray Purpose : Returns double values associated with the ID. More...
 
void SetIntArray (const std::string &theID, const std::vector< int > &theArray)
 Function : SetIntArray Purpose : Associates an array of int values with the given ID. More...
 
std::vector< int > GetIntArray (const std::string &theID)
 Function : GetIntArray Purpose : Returns int values associated with the ID. More...
 
void SetStrArray (const std::string &theID, const std::vector< std::string > &theArray)
 Function : SetStrArray Purpose : Associates an array of string values with the given ID. More...
 
std::vector< std::string > GetStrArray (const std::string &theID)
 Function : GetStrArray Purpose : Returns string values associated with the ID. More...
 
bool IsSet (const std::string &theID, const Parameter_Types theType)
 Function : IsSet Purpose : Returns true if for the ID of given type was assigned
a value in the attribute. More...
 
bool RemoveID (const std::string &theID, const Parameter_Types theType)
 Function : RemoveID Purpose : Removes a parameter with given ID. More...
 
SALOMEDSImpl_AttributeParameterGetFather ()
 Function : GetFather Purpose : Returns a father attribute for this attribute. More...
 
bool HasFather ()
 Function : HasFather Purpose : Returns True if the attribute has a father attribute. More...
 
bool IsRoot ()
 Function : IsRoot Purpose : Returns True is the attribute is highest in an hierachy. More...
 
std::vector< std::string > GetIDs (const Parameter_Types theType)
 Function : GetIDs Purpose : Returns an array of all ID's of the given type. More...
 
void Clear ()
 Function : Clear Purpose : Clears the content of the attribute. More...
 
virtual std::string Save ()
 Function : Save Purpose : Saves a content of the attribute as a string. More...
 
virtual void Load (const std::string &theValue)
 Function : Load Purpose : Restores the attribute from the string. More...
 
const std::string & ID () const
 Function : ID Purpose : Rteurns an GUID of the attribute. More...
 
void Restore (DF_Attribute *with)
 Function : Restore Purpose : Restors the content of the attribute from another. More...
 
DF_AttributeNewEmpty () const
 
void Paste (DF_Attribute *into)
 Function : Paste Purpose : Pastes the content of attribute to another. More...
 
 ~SALOMEDSImpl_AttributeParameter ()
 
virtual std::string Type ()
 
virtual void CheckLocked ()
 
std::string GetClassType ()
 
SALOMEDSImpl_SObject GetSObject ()
 
void SetModifyFlag (int reason=0)
 Set modification flag of the Attribute. More...
 
DF_Label Label () const
 
DF_AttributeFindAttribute (const std::string &theID) const
 
virtual void AfterAddition ()
 
virtual void BeforeForget ()
 

Static Public Member Functions

static const std::string & GetID ()
 Function : GetID Purpose : Returns GUID of the attribute. More...
 
static
SALOMEDSImpl_AttributeParameter
Set (const DF_Label &L)
 Function : Set Purpose : Adds an attribute to the label. More...
 
static std::string Impl_GetType (DF_Attribute *theAttr)
 
static std::string Impl_GetClassType (DF_Attribute *theAttr)
 
static void Impl_CheckLocked (DF_Attribute *theAttr)
 

Protected Member Functions

void Backup ()
 

Protected Attributes

std::string _type
 
DF_LabelNode_node
 

Private Attributes

std::map< std::string, int > _ints
 
std::map< std::string, double > _reals
 
std::map< std::string,
std::string > 
_strings
 
std::map< std::string, bool_bools
 
std::map< std::string,
std::vector< double > > 
_realarrays
 
std::map< std::string,
std::vector< int > > 
_intarrays
 
std::map< std::string,
std::vector< std::string > > 
_strarrays
 

Detailed Description

Class: SALOMEDSImpl_AttributeParameter Description : AttributeParameter is a universal container of basic types.

Constructor & Destructor Documentation

SALOMEDSImpl_AttributeParameter::SALOMEDSImpl_AttributeParameter ( )

Referenced by NewEmpty(), and Set().

SALOMEDSImpl_AttributeParameter::~SALOMEDSImpl_AttributeParameter ( )

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(), Clear(), SALOMEDSImpl_AttributeTableOfString::Load(), SALOMEDSImpl_AttributeTableOfReal::Load(), SALOMEDSImpl_AttributeTableOfInteger::Load(), Load(), SALOMEDSImpl_AttributeTarget::Remove(), SALOMEDSImpl_AttributeSequenceOfInteger::Remove(), SALOMEDSImpl_AttributeSequenceOfReal::Remove(), RemoveID(), SALOMEDSImpl_AttributeReference::Set(), SALOMEDSImpl_AttributeFlags::Set(), 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(), SetInt(), 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(), SetReal(), 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(), SetStrArray(), 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_AttributeLocalID::SetValue(), SALOMEDSImpl_AttributeUserID::SetValue(), SALOMEDSImpl_AttributeString::SetValue(), SALOMEDSImpl_AttributeName::SetValue(), SALOMEDSImpl_AttributeComment::SetValue(), SALOMEDSImpl_AttributeIOR::SetValue(), SALOMEDSImpl_AttributePersistentRef::SetValue(), and SALOMEDSImpl_AttributeGraphic::SetVisibility().

virtual void DF_Attribute::BeforeForget ( )
virtualinherited
void SALOMEDSImpl_GenericAttribute::CheckLocked ( )
virtualinherited

References SALOMEDSImpl_Study::_errorCode, SALOMEDSImpl_Study::GetStudy(), SALOMEDSImpl_Study::IsLocked(), DF_Label::IsNull(), and DF_Attribute::Label().

Referenced by SALOMEDSImpl_AttributeSequenceOfInteger::Add(), SALOMEDSImpl_AttributeSequenceOfReal::Add(), SALOMEDSImpl_AttributeTreeNode::Append(), SALOMEDSImpl_AttributeSequenceOfInteger::Assign(), SALOMEDSImpl_AttributeSequenceOfReal::Assign(), SALOMEDSImpl_AttributeStudyProperties::ChangeCreatorName(), SALOMEDSImpl_AttributeSequenceOfInteger::ChangeValue(), SALOMEDSImpl_AttributeSequenceOfReal::ChangeValue(), SALOMEDS_GenericAttribute::CheckLocked(), SALOMEDSImpl_GenericAttribute::Impl_CheckLocked(), SALOMEDSImpl_AttributeTreeNode::InsertAfter(), SALOMEDSImpl_AttributeTreeNode::InsertBefore(), SALOMEDSImpl_AttributeTreeNode::Prepend(), SALOMEDSImpl_AttributeTableOfString::PutValue(), SALOMEDSImpl_AttributeTableOfReal::PutValue(), SALOMEDSImpl_AttributeTableOfInteger::PutValue(), SALOMEDSImpl_AttributeTreeNode::Remove(), SALOMEDSImpl_AttributeSequenceOfInteger::Remove(), SALOMEDSImpl_AttributeSequenceOfReal::Remove(), SALOMEDSImpl_AttributeTableOfString::RemoveValue(), SALOMEDSImpl_AttributeTableOfReal::RemoveValue(), SALOMEDSImpl_AttributeTableOfInteger::RemoveValue(), SALOMEDSImpl_AttributeReference::Set(), 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(), SetInt(), SetIntArray(), SALOMEDSImpl_AttributeStudyProperties::SetModification(), SALOMEDSImpl_AttributeTableOfString::SetNbColumns(), SALOMEDSImpl_AttributeTableOfReal::SetNbColumns(), SALOMEDSImpl_AttributeTableOfInteger::SetNbColumns(), SALOMEDSImpl_AttributeTreeNode::SetNext(), SALOMEDSImpl_AttributePythonObject::SetObject(), SALOMEDSImpl_AttributePixMap::SetPixMap(), SALOMEDSImpl_AttributeTreeNode::SetPrevious(), SetReal(), 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(), SetStrArray(), SetString(), SALOMEDSImpl_AttributeTextColor::SetTextColor(), SALOMEDSImpl_AttributeTextHighlightColor::SetTextHighlightColor(), SALOMEDSImpl_AttributeTableOfString::SetTitle(), SALOMEDSImpl_AttributeTableOfReal::SetTitle(), SALOMEDSImpl_AttributeTableOfInteger::SetTitle(), SALOMEDSImpl_AttributeStudyProperties::SetUnits(), SALOMEDSImpl_AttributeFileType::SetValue(), SALOMEDSImpl_AttributeExternalFileDef::SetValue(), SALOMEDSImpl_AttributeReal::SetValue(), SALOMEDSImpl_AttributeLocalID::SetValue(), SALOMEDSImpl_AttributeUserID::SetValue(), SALOMEDSImpl_AttributeName::SetValue(), SALOMEDSImpl_AttributeString::SetValue(), SALOMEDSImpl_AttributeComment::SetValue(), SALOMEDSImpl_AttributeIOR::SetValue(), SALOMEDSImpl_AttributePersistentRef::SetValue(), SALOMEDSImpl_AttributeTableOfString::SortByColumn(), SALOMEDSImpl_AttributeTableOfReal::SortByColumn(), SALOMEDSImpl_AttributeTableOfInteger::SortByColumn(), SALOMEDSImpl_AttributeTableOfString::SortByRow(), SALOMEDSImpl_AttributeTableOfReal::SortByRow(), SALOMEDSImpl_AttributeTableOfInteger::SortByRow(), SALOMEDSImpl_AttributeTableOfString::SortColumn(), SALOMEDSImpl_AttributeTableOfReal::SortColumn(), SALOMEDSImpl_AttributeTableOfInteger::SortColumn(), SALOMEDSImpl_AttributeTableOfString::SortRow(), SALOMEDSImpl_AttributeTableOfReal::SortRow(), SALOMEDSImpl_AttributeTableOfInteger::SortRow(), SALOMEDSImpl_AttributeTableOfString::SwapCells(), SALOMEDSImpl_AttributeTableOfReal::SwapCells(), SALOMEDSImpl_AttributeTableOfInteger::SwapCells(), SALOMEDSImpl_AttributeTableOfString::SwapColumns(), SALOMEDSImpl_AttributeTableOfReal::SwapColumns(), SALOMEDSImpl_AttributeTableOfInteger::SwapColumns(), SALOMEDSImpl_AttributeTableOfString::SwapRows(), SALOMEDSImpl_AttributeTableOfReal::SwapRows(), and SALOMEDSImpl_AttributeTableOfInteger::SwapRows().

void SALOMEDSImpl_AttributeParameter::Clear ( )

Function : Clear Purpose : Clears the content of the attribute.

References _bools, _intarrays, _ints, _realarrays, _reals, _strarrays, _strings, DF_Attribute::Backup(), and SALOMEDSImpl_GenericAttribute::SetModifyFlag().

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

Function : GetBool Purpose : Returns a bool value associated with the ID.

References _bools, IsSet(), and PT_BOOLEAN.

Referenced by SALOMEDSImpl_IParameters::isDumpPython(), main(), and SALOMEDSImplTest::testAttributeParameter().

std::string SALOMEDSImpl_GenericAttribute::GetClassType ( )
inherited
SALOMEDSImpl_AttributeParameter * SALOMEDSImpl_AttributeParameter::GetFather ( )

Function : GetFather Purpose : Returns a father attribute for this attribute.

References DF_Label::Father(), DF_Label::FindAttribute(), GetID(), DF_Label::IsRoot(), and DF_Attribute::Label().

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

Function : GetID Purpose : Returns GUID of the attribute.

Referenced by GetFather(), SALOMEDSImpl_Study::GetModuleParameters(), HasFather(), ID(), and Set().

std::vector< std::string > SALOMEDSImpl_AttributeParameter::GetIDs ( const Parameter_Types  theType)

Function : GetIDs Purpose : Returns an array of all ID's of the given type.

References _bools, _intarrays, _ints, _realarrays, _reals, _strarrays, _strings, PT_BOOLEAN, PT_INTARRAY, PT_INTEGER, PT_REAL, PT_REALARRAY, PT_STRARRAY, and PT_STRING.

Referenced by SALOMEDS_AttributeParameter::GetIDs().

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

Function : GetInt Purpose : Returns a int value associated with the given ID.

References _ints, IsSet(), and PT_INTEGER.

Referenced by main(), and SALOMEDSImplTest::testAttributeParameter().

std::vector< int > SALOMEDSImpl_AttributeParameter::GetIntArray ( const std::string &  theID)

Function : GetIntArray Purpose : Returns int values associated with the ID.

References _intarrays, IsSet(), and PT_INTARRAY.

Referenced by main(), and SALOMEDSImplTest::testAttributeParameter().

double SALOMEDSImpl_AttributeParameter::GetReal ( const std::string &  theID)

Function : GetReal Purpose : Returns a double value associated with the given ID.

References _reals, IsSet(), and PT_REAL.

Referenced by main(), and SALOMEDSImplTest::testAttributeParameter().

std::vector< double > SALOMEDSImpl_AttributeParameter::GetRealArray ( const std::string &  theID)

Function : GetRealArray Purpose : Returns double values associated with the ID.

References _realarrays, IsSet(), and PT_REALARRAY.

Referenced by main(), and SALOMEDSImplTest::testAttributeParameter().

std::string SALOMEDSImpl_AttributeParameter::GetString ( const std::string &  theID)
bool SALOMEDSImpl_AttributeParameter::HasFather ( )

Function : HasFather Purpose : Returns True if the attribute has a father attribute.

References DF_Label::Father(), GetID(), DF_Label::IsAttribute(), DF_Label::IsRoot(), and DF_Attribute::Label().

Referenced by IsRoot().

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

Function : ID Purpose : Rteurns an GUID of the attribute.

Implements DF_Attribute.

References GetID().

void SALOMEDSImpl_GenericAttribute::Impl_CheckLocked ( DF_Attribute theAttr)
staticinherited
std::string SALOMEDSImpl_GenericAttribute::Impl_GetClassType ( DF_Attribute theAttr)
staticinherited
std::string SALOMEDSImpl_GenericAttribute::Impl_GetType ( DF_Attribute theAttr)
staticinherited
bool SALOMEDSImpl_AttributeParameter::IsRoot ( )

Function : IsRoot Purpose : Returns True is the attribute is highest in an hierachy.

References HasFather().

DF_Label DF_Attribute::Label ( ) const
inherited
void SALOMEDSImpl_AttributeParameter::Load ( const std::string &  theValue)
virtual

Function : Load Purpose : Restores the attribute from the string.

Reimplemented from DF_Attribute.

References _bools, _intarrays, _ints, _realarrays, _reals, _strarrays, _strings, DF_Attribute::Backup(), and restoreString().

Referenced by main().

DF_Attribute * SALOMEDSImpl_AttributeParameter::NewEmpty ( ) const
virtual
void SALOMEDSImpl_AttributeParameter::Paste ( DF_Attribute into)
virtual

Function : Paste Purpose : Pastes the content of attribute to another.

Implements DF_Attribute.

References DF_Attribute::Restore().

bool SALOMEDSImpl_AttributeParameter::RemoveID ( const std::string &  theID,
const Parameter_Types  theType 
)
void SALOMEDSImpl_AttributeParameter::Restore ( DF_Attribute with)
virtual

Function : Restore Purpose : Restors the content of the attribute from another.

Implements DF_Attribute.

References _bools, _intarrays, _ints, _realarrays, _reals, _strarrays, and _strings.

std::string SALOMEDSImpl_AttributeParameter::Save ( )
virtual

Function : Save Purpose : Saves a content of the attribute as a string.

Reimplemented from DF_Attribute.

References _bools, _intarrays, _ints, _realarrays, _reals, _strarrays, _strings, and convertString().

Referenced by main().

SALOMEDSImpl_AttributeParameter * SALOMEDSImpl_AttributeParameter::Set ( const DF_Label L)
static

Function : Set Purpose : Adds an attribute to the label.

References DF_Label::AddAttribute(), DF_Label::FindAttribute(), GetID(), and SALOMEDSImpl_AttributeParameter().

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

Function : SetBool Purpose : Associates a bool value with the ID.

References _bools, DF_Attribute::Backup(), SALOMEDSImpl_GenericAttribute::CheckLocked(), and SALOMEDSImpl_GenericAttribute::SetModifyFlag().

Referenced by main(), and SALOMEDSImplTest::testAttributeParameter().

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

Function : SetInt Purpose : Associates a integer value with the ID.

References _ints, DF_Attribute::Backup(), SALOMEDSImpl_GenericAttribute::CheckLocked(), and SALOMEDSImpl_GenericAttribute::SetModifyFlag().

Referenced by main(), and SALOMEDSImplTest::testAttributeParameter().

void SALOMEDSImpl_AttributeParameter::SetIntArray ( const std::string &  theID,
const std::vector< int > &  theArray 
)

Function : SetIntArray Purpose : Associates an array of int values with the given ID.

References _intarrays, DF_Attribute::Backup(), SALOMEDSImpl_GenericAttribute::CheckLocked(), and SALOMEDSImpl_GenericAttribute::SetModifyFlag().

Referenced by main(), and SALOMEDSImplTest::testAttributeParameter().

void SALOMEDSImpl_GenericAttribute::SetModifyFlag ( int  reason = 0)
inherited

Set modification flag of the Attribute.

param reason reason of the modification (by default equal to 0)

References SALOMEDSImpl_GenericAttribute::GetSObject(), SALOMEDSImpl_Study::GetStudy(), DF_Label::IsNull(), DF_Attribute::Label(), SALOMEDSImpl_Study::Modify(), and SALOMEDSImpl_Study::modifySO_Notification().

Referenced by SALOMEDSImpl_AttributeTarget::Add(), SALOMEDSImpl_AttributeSequenceOfInteger::Add(), SALOMEDSImpl_AttributeSequenceOfReal::Add(), SALOMEDSImpl_AttributeTreeNode::Append(), SALOMEDSImpl_AttributeSequenceOfInteger::Assign(), SALOMEDSImpl_AttributeSequenceOfReal::Assign(), SALOMEDSImpl_AttributeTextColor::ChangeArray(), SALOMEDSImpl_AttributeTextHighlightColor::ChangeArray(), SALOMEDSImpl_AttributeSequenceOfInteger::ChangeValue(), SALOMEDSImpl_AttributeSequenceOfReal::ChangeValue(), Clear(), SALOMEDSImpl_AttributeTreeNode::InsertAfter(), SALOMEDSImpl_AttributeTreeNode::InsertBefore(), SALOMEDSImpl_AttributeTreeNode::Prepend(), SALOMEDSImpl_AttributeTableOfString::PutValue(), SALOMEDSImpl_AttributeTableOfReal::PutValue(), SALOMEDSImpl_AttributeTableOfInteger::PutValue(), SALOMEDSImpl_AttributeTarget::Remove(), SALOMEDSImpl_AttributeTreeNode::Remove(), SALOMEDSImpl_AttributeSequenceOfInteger::Remove(), SALOMEDSImpl_AttributeSequenceOfReal::Remove(), RemoveID(), SALOMEDSImpl_AttributeTableOfString::RemoveValue(), SALOMEDSImpl_AttributeTableOfReal::RemoveValue(), SALOMEDSImpl_AttributeTableOfInteger::RemoveValue(), SALOMEDSImpl_AttributeReference::Set(), SetBool(), SALOMEDSImpl_AttributeTableOfString::SetColumnData(), SALOMEDSImpl_AttributeTableOfReal::SetColumnData(), SALOMEDSImpl_AttributeTableOfInteger::SetColumnData(), SALOMEDSImpl_AttributeTableOfString::SetColumnTitle(), SALOMEDSImpl_AttributeTableOfReal::SetColumnTitle(), SALOMEDSImpl_AttributeTableOfInteger::SetColumnTitle(), SALOMEDSImpl_AttributeTableOfString::SetColumnTitles(), SALOMEDSImpl_AttributeTableOfReal::SetColumnTitles(), SALOMEDSImpl_AttributeTableOfInteger::SetColumnTitles(), SALOMEDSImpl_AttributeDrawable::SetDrawable(), SALOMEDSImpl_AttributeExpandable::SetExpandable(), SALOMEDSImpl_AttributeTreeNode::SetFather(), SALOMEDSImpl_AttributeTreeNode::SetFirst(), SetInt(), SetIntArray(), SALOMEDSImpl_AttributeTableOfString::SetNbColumns(), SALOMEDSImpl_AttributeTableOfReal::SetNbColumns(), SALOMEDSImpl_AttributeTableOfInteger::SetNbColumns(), SALOMEDSImpl_AttributeTreeNode::SetNext(), SALOMEDSImpl_AttributePythonObject::SetObject(), SALOMEDSImpl_AttributePixMap::SetPixMap(), SALOMEDSImpl_AttributeTreeNode::SetPrevious(), SetReal(), SetRealArray(), SALOMEDSImpl_AttributeTarget::SetRelation(), SALOMEDSImpl_AttributeTableOfString::SetRowData(), SALOMEDSImpl_AttributeTableOfReal::SetRowData(), SALOMEDSImpl_AttributeTableOfInteger::SetRowData(), SALOMEDSImpl_AttributeTableOfString::SetRowTitle(), SALOMEDSImpl_AttributeTableOfReal::SetRowTitle(), SALOMEDSImpl_AttributeTableOfInteger::SetRowTitle(), SALOMEDSImpl_AttributeTableOfString::SetRowTitles(), SALOMEDSImpl_AttributeTableOfReal::SetRowTitles(), SALOMEDSImpl_AttributeTableOfInteger::SetRowTitles(), SALOMEDSImpl_AttributeTableOfString::SetRowUnit(), SALOMEDSImpl_AttributeTableOfReal::SetRowUnit(), SALOMEDSImpl_AttributeTableOfInteger::SetRowUnit(), SALOMEDSImpl_AttributeTableOfReal::SetRowUnits(), SALOMEDSImpl_AttributeTableOfInteger::SetRowUnits(), SetStrArray(), SetString(), SALOMEDSImpl_AttributeTextColor::SetTextColor(), SALOMEDSImpl_AttributeTextHighlightColor::SetTextHighlightColor(), SALOMEDSImpl_AttributeTableOfString::SetTitle(), SALOMEDSImpl_AttributeTableOfReal::SetTitle(), SALOMEDSImpl_AttributeTableOfInteger::SetTitle(), SALOMEDSImpl_AttributeTreeNode::SetTreeID(), SALOMEDSImpl_AttributeExternalFileDef::SetValue(), SALOMEDSImpl_AttributeFileType::SetValue(), SALOMEDSImpl_AttributeInteger::SetValue(), SALOMEDSImpl_AttributeReal::SetValue(), SALOMEDSImpl_AttributeUserID::SetValue(), SALOMEDSImpl_AttributeLocalID::SetValue(), SALOMEDSImpl_AttributeString::SetValue(), SALOMEDSImpl_AttributeName::SetValue(), SALOMEDSImpl_AttributeComment::SetValue(), SALOMEDSImpl_AttributeIOR::SetValue(), SALOMEDSImpl_AttributePersistentRef::SetValue(), SALOMEDSImpl_AttributeTableOfString::SwapCells(), SALOMEDSImpl_AttributeTableOfReal::SwapCells(), and SALOMEDSImpl_AttributeTableOfInteger::SwapCells().

void SALOMEDSImpl_AttributeParameter::SetReal ( const std::string &  theID,
const double &  theValue 
)

Function : SetReal Purpose : Associates a double value with the ID.

References _reals, DF_Attribute::Backup(), SALOMEDSImpl_GenericAttribute::CheckLocked(), and SALOMEDSImpl_GenericAttribute::SetModifyFlag().

Referenced by main(), and SALOMEDSImplTest::testAttributeParameter().

void SALOMEDSImpl_AttributeParameter::SetRealArray ( const std::string &  theID,
const std::vector< double > &  theArray 
)

Function : SetRealArray Purpose : Associates an array of double values with the given ID.

References _realarrays, DF_Attribute::Backup(), SALOMEDSImpl_GenericAttribute::CheckLocked(), and SALOMEDSImpl_GenericAttribute::SetModifyFlag().

Referenced by main(), and SALOMEDSImplTest::testAttributeParameter().

void SALOMEDSImpl_AttributeParameter::SetStrArray ( const std::string &  theID,
const std::vector< std::string > &  theArray 
)
void SALOMEDSImpl_AttributeParameter::SetString ( const std::string &  theID,
const std::string &  theValue 
)

Field Documentation

std::map<std::string, bool> SALOMEDSImpl_AttributeParameter::_bools
private
std::map< std::string, std::vector<int> > SALOMEDSImpl_AttributeParameter::_intarrays
private
std::map<std::string, int> SALOMEDSImpl_AttributeParameter::_ints
private
std::map< std::string, std::vector<double> > SALOMEDSImpl_AttributeParameter::_realarrays
private
std::map<std::string, double> SALOMEDSImpl_AttributeParameter::_reals
private
std::map< std::string, std::vector<std::string> > SALOMEDSImpl_AttributeParameter::_strarrays
private
std::map<std::string, std::string> SALOMEDSImpl_AttributeParameter::_strings
private
std::string SALOMEDSImpl_GenericAttribute::_type
protectedinherited