Class: SALOMEDSImpl_AttributeParameter Description : AttributeParameter is a universal container of basic types. More...
#include <SALOMEDSImpl_AttributeParameter.hxx>
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_AttributeParameter * | GetFather () |
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_Attribute * | NewEmpty () 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_Attribute * | FindAttribute (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 |
Class: SALOMEDSImpl_AttributeParameter Description : AttributeParameter is a universal container of basic types.
SALOMEDSImpl_AttributeParameter::SALOMEDSImpl_AttributeParameter | ( | ) |
Referenced by NewEmpty(), and Set().
SALOMEDSImpl_AttributeParameter::~SALOMEDSImpl_AttributeParameter | ( | ) |
|
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(), 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().
|
virtualinherited |
Reimplemented in SALOMEDSImpl_AttributeTreeNode.
Referenced by DF_Label::ForgetAttribute().
|
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().
|
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 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().
|
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().
|
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().
|
inherited |
std::vector< std::string > SALOMEDSImpl_AttributeParameter::GetStrArray | ( | const std::string & | theID | ) |
Function : GetStrArray Purpose : Returns string values associated with the ID.
References _strarrays, IsSet(), and PT_STRARRAY.
Referenced by SALOMEDSImpl_IParameters::append(), SALOMEDSImpl_IParameters::getAllParameterNames(), SALOMEDSImpl_IParameters::getAllParameterValues(), SALOMEDSImpl_IParameters::getEntries(), SALOMEDSImpl_IParameters::getIdParameter(), SALOMEDSImpl_IParameters::getLists(), SALOMEDSImpl_IParameters::getNbParameters(), SALOMEDSImpl_IParameters::getParameter(), SALOMEDSImpl_IParameters::getProperties(), SALOMEDSImpl_IParameters::getValue(), SALOMEDSImpl_IParameters::getValues(), main(), SALOMEDSImpl_IParameters::nbValues(), SALOMEDSImpl_IParameters::setIdParameter(), SALOMEDSImpl_IParameters::setParameter(), and SALOMEDSImplTest::testAttributeParameter().
std::string SALOMEDSImpl_AttributeParameter::GetString | ( | const std::string & | theID | ) |
Function : GetString Purpose : Returns a string associated with the given ID.
References _strings, IsSet(), and PT_STRING.
Referenced by SALOMEDSImpl_Study::GetModuleParameters(), SALOMEDSImpl_IParameters::getProperty(), SALOMEDS_AttributeParameter_i::GetString(), main(), and SALOMEDSImplTest::testAttributeParameter().
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().
|
virtual |
Function : ID Purpose : Rteurns an GUID of the attribute.
Implements DF_Attribute.
References GetID().
|
staticinherited |
References SALOMEDSImpl_GenericAttribute::CheckLocked().
Referenced by SALOMEDS_GenericAttribute_i::CheckLocked().
|
staticinherited |
References SALOMEDSImpl_GenericAttribute::GetClassType().
Referenced by SALOMEDS_GenericAttribute_i::GetClassType().
|
staticinherited |
References SALOMEDSImpl_GenericAttribute::Type().
Referenced by SALOMEDSImpl_StudyManager::CopyLabel(), SaveAttributes(), and SALOMEDS_GenericAttribute_i::Type().
bool SALOMEDSImpl_AttributeParameter::IsRoot | ( | ) |
Function : IsRoot Purpose : Returns True is the attribute is highest in an hierachy.
References HasFather().
bool SALOMEDSImpl_AttributeParameter::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.
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 SALOMEDSImpl_IParameters::append(), SALOMEDSImpl_IParameters::getAllParameterNames(), SALOMEDSImpl_IParameters::getAllParameterValues(), GetBool(), SALOMEDSImpl_IParameters::getEntries(), SALOMEDSImpl_IParameters::getIdParameter(), GetInt(), GetIntArray(), SALOMEDSImpl_IParameters::getLists(), SALOMEDSImpl_Study::GetModuleParameters(), SALOMEDSImpl_IParameters::getNbParameters(), SALOMEDSImpl_IParameters::getParameter(), SALOMEDSImpl_IParameters::getProperties(), SALOMEDSImpl_IParameters::getProperty(), GetReal(), GetRealArray(), GetStrArray(), GetString(), SALOMEDSImpl_IParameters::getValue(), SALOMEDSImpl_IParameters::getValues(), SALOMEDSImpl_IParameters::isDumpPython(), main(), SALOMEDSImpl_IParameters::nbValues(), SALOMEDSImpl_IParameters::setIdParameter(), SALOMEDSImpl_IParameters::setParameter(), SALOMEDSImpl_IParameters::setProperty(), and SALOMEDSImplTest::testAttributeParameter().
|
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(), GetFather(), GetNode(), SALOMEDSImpl_GenericAttribute::GetSObject(), SALOMEDS_GenericAttribute_i::GetSObject(), SALOMEDSImpl_UseCaseBuilder::GetSObject(), SALOMEDSImpl_UseCaseBuilder::HasChildren(), 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().
|
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().
|
virtual |
Implements DF_Attribute.
References SALOMEDSImpl_AttributeParameter().
|
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 | ||
) |
Function : RemoveID Purpose : Removes a parameter with given ID.
References _bools, _intarrays, _ints, _realarrays, _reals, _strarrays, _strings, DF_Attribute::Backup(), PT_BOOLEAN, PT_INTARRAY, PT_INTEGER, PT_REAL, PT_REALARRAY, PT_STRARRAY, PT_STRING, and SALOMEDSImpl_GenericAttribute::SetModifyFlag().
Referenced by main().
|
virtual |
Function : Restore Purpose : Restors the content of the attribute from another.
Implements DF_Attribute.
References _bools, _intarrays, _ints, _realarrays, _reals, _strarrays, and _strings.
|
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().
|
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().
|
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 | ||
) |
Function : SetStrArray Purpose : Associates an array of string values with the given ID.
References _strarrays, DF_Attribute::Backup(), SALOMEDSImpl_GenericAttribute::CheckLocked(), and SALOMEDSImpl_GenericAttribute::SetModifyFlag().
Referenced by SALOMEDSImpl_IParameters::append(), main(), SALOMEDSImpl_IParameters::setIdParameter(), SALOMEDSImpl_IParameters::setParameter(), and SALOMEDSImplTest::testAttributeParameter().
void SALOMEDSImpl_AttributeParameter::SetString | ( | const std::string & | theID, |
const std::string & | theValue | ||
) |
Function : SetString Purpose : Associates a string with the ID.
References _strings, DF_Attribute::Backup(), SALOMEDSImpl_GenericAttribute::CheckLocked(), and SALOMEDSImpl_GenericAttribute::SetModifyFlag().
Referenced by SALOMEDSImpl_Study::GetModuleParameters(), main(), SALOMEDSImpl_IParameters::setProperty(), SALOMEDS_AttributeParameter_i::SetString(), and SALOMEDSImplTest::testAttributeParameter().
|
virtualinherited |
Reimplemented in SALOMEDSImpl_AttributeTreeNode, and SALOMEDSImpl_AttributeUserID.
References SALOMEDSImpl_GenericAttribute::_type.
Referenced by SALOMEDSImpl_SObject::GetAllAttributes(), SALOMEDSImpl_GenericAttribute::Impl_GetType(), main(), and SALOMEDS_GenericAttribute::Type().
|
private |
|
private |
Referenced by Clear(), GetIDs(), GetIntArray(), IsSet(), Load(), RemoveID(), Restore(), Save(), and SetIntArray().
|
private |
|
protectedinherited |
|
private |
Referenced by Clear(), GetIDs(), GetRealArray(), IsSet(), Load(), RemoveID(), Restore(), Save(), and SetRealArray().
|
private |
|
private |
Referenced by Clear(), GetIDs(), GetStrArray(), IsSet(), Load(), RemoveID(), Restore(), Save(), and SetStrArray().
|
private |
Referenced by Clear(), GetIDs(), GetString(), IsSet(), Load(), RemoveID(), Restore(), Save(), and SetString().
|
protectedinherited |
Referenced by SALOMEDSImpl_GenericAttribute::Type().