41 #ifndef __OPENFLUID_CORE_ATTRIBUTES_HPP__ 42 #define __OPENFLUID_CORE_ATTRIBUTES_HPP__ 47 #include <openfluid/core/TypeDefs.hpp> 61 typedef std::map<AttributeName_t,std::shared_ptr<Value>> AttributesMap_t;
63 AttributesMap_t m_Data;
75 [[deprecated]]
bool setValue(
const AttributeName_t& aName,
const std::string& aValue);
77 bool setValueFromRawString(
const AttributeName_t& aName,
const std::string& aValue);
81 [[deprecated]]
bool getValue(
const AttributeName_t& aName, std::string& aValue)
const;
85 [[deprecated]]
bool getValueAsDouble(
const AttributeName_t& aName,
double& aValue)
const;
87 [[deprecated]]
bool getValueAsLong(
const AttributeName_t& aName,
long& aValue)
const;
91 std::vector<AttributeName_t> getAttributesNames()
const;
95 bool replaceValue(
const AttributeName_t& aName,
const std::string& aValue);
Definition: Attributes.hpp:57
Definition: StringValue.hpp:76
Definition: ApplicationException.hpp:47
std::string AttributeName_t
Definition: TypeDefs.hpp:117
#define OPENFLUID_API
Definition: dllexport.hpp:86
~Attributes()
Definition: Attributes.hpp:70