27 #ifndef _SALOMEDSImpl_AttributeParameter_HeaderFile
28 #define _SALOMEDSImpl_AttributeParameter_HeaderFile
52 std::map<std::string, int>
_ints;
53 std::map<std::string, double>
_reals;
58 std::map< std::string, std::vector<std::string> >
_strarrays;
62 static const std::string& GetID() ;
67 void SetInt(
const std::string& theID,
const int& theValue);
68 int GetInt(
const std::string& theID);
70 void SetReal(
const std::string& theID,
const double& theValue);
71 double GetReal(
const std::string& theID);
73 void SetString(
const std::string& theID,
const std::string& theValue);
74 std::string GetString(
const std::string& theID);
76 void SetBool(
const std::string& theID,
const bool& theValue);
77 bool GetBool(
const std::string& theID);
79 void SetRealArray(
const std::string& theID,
const std::vector<double>& theArray);
80 std::vector<double> GetRealArray(
const std::string& theID);
82 void SetIntArray(
const std::string& theID,
const std::vector<int>& theArray);
83 std::vector<int> GetIntArray(
const std::string& theID);
85 void SetStrArray(
const std::string& theID,
const std::vector<std::string>& theArray);
86 std::vector<std::string> GetStrArray(
const std::string& theID);
100 virtual std::string
Save();
101 virtual void Load(
const std::string& theValue);
103 const std::string&
ID()
const;
Parameter_Types
Definition: SALOMEDSImpl_AttributeParameter.hxx:39
@ PT_INTEGER
Definition: SALOMEDSImpl_AttributeParameter.hxx:39
@ PT_STRING
Definition: SALOMEDSImpl_AttributeParameter.hxx:39
@ PT_REAL
Definition: SALOMEDSImpl_AttributeParameter.hxx:39
@ PT_BOOLEAN
Definition: SALOMEDSImpl_AttributeParameter.hxx:39
@ PT_STRARRAY
Definition: SALOMEDSImpl_AttributeParameter.hxx:39
@ PT_INTARRAY
Definition: SALOMEDSImpl_AttributeParameter.hxx:39
@ PT_REALARRAY
Definition: SALOMEDSImpl_AttributeParameter.hxx:39
#define SALOMEDSIMPL_EXPORT
Definition: SALOMEDSImpl_Defines.hxx:34
Definition: DF_Attribute.hxx:30
virtual void Restore(DF_Attribute *theAttribute)=0
virtual const std::string & ID() const =0
virtual std::string Save()
Definition: DF_Attribute.hxx:47
virtual void Load(const std::string &)
Definition: DF_Attribute.hxx:48
virtual DF_Attribute * NewEmpty() const =0
virtual void Paste(DF_Attribute *theIntoAttribute)=0
Definition: DF_Label.hxx:65
Class: SALOMEDSImpl_AttributeParameter Description : AttributeParameter is a universal container of b...
Definition: SALOMEDSImpl_AttributeParameter.hxx:48
std::map< std::string, std::vector< int > > _intarrays
Definition: SALOMEDSImpl_AttributeParameter.hxx:57
~SALOMEDSImpl_AttributeParameter()
Definition: SALOMEDSImpl_AttributeParameter.hxx:108
std::map< std::string, std::vector< double > > _realarrays
Definition: SALOMEDSImpl_AttributeParameter.hxx:56
SALOMEDSImpl_AttributeParameter()
Definition: SALOMEDSImpl_AttributeParameter.hxx:64
std::map< std::string, std::string > _strings
Definition: SALOMEDSImpl_AttributeParameter.hxx:54
std::map< std::string, std::vector< std::string > > _strarrays
Definition: SALOMEDSImpl_AttributeParameter.hxx:58
std::map< std::string, double > _reals
Definition: SALOMEDSImpl_AttributeParameter.hxx:53
std::map< std::string, bool > _bools
Definition: SALOMEDSImpl_AttributeParameter.hxx:55
std::map< std::string, int > _ints
Definition: SALOMEDSImpl_AttributeParameter.hxx:52
Definition: SALOMEDSImpl_GenericAttribute.hxx:39