Attribute for a property, can be any type available also for Property.
More...
#include <Attribute.h>
Attribute for a property, can be any type available also for Property.
- Author
- Version
- Date
- 2008-05-10 10:16:11
◆ PropertyAttribute() [1/2]
Constructor.
- Returns
- Cloned instance.
◆ PropertyAttribute() [2/2]
template<typename T >
Nice::PropertyAttribute::PropertyAttribute |
( |
const T & |
_val = T() | ) |
|
|
inline |
Constructor.
- Returns
- Cloned instance.
◆ ~PropertyAttribute()
virtual Nice::PropertyAttribute::~PropertyAttribute |
( |
| ) |
|
|
inlinevirtual |
◆ any()
◆ clone()
Constructor.
- Returns
- Cloned instance. Abstract function clones a PropertyAttribute instance.
-
Cloned instance.
◆ get()
template<typename T >
T Nice::PropertyAttribute::get |
( |
void |
| ) |
|
|
inline |
get m_o to a type T
- Returns
- Casted type.
◆ getValueOf()
std::string Nice::PropertyAttribute::getValueOf |
( |
const std::string & |
_id, |
|
|
const std::string & |
_default = "" |
|
) |
| |
|
inline |
get the second value of a map item.
This only gives back a string if the attribute is of type map<string,string> which defined a key and a value attribute e.g. "UNIT"="mm"
- Returns
- Value of attribute with _id.
◆ set()
template<typename T >
void Nice::PropertyAttribute::set |
( |
const T & |
_v | ) |
|
|
inline |
Methode to set the value of this property.
The value type has to match the current type.
- Parameters
-
◆ toString()
virtual std::string Nice::PropertyAttribute::toString |
( |
| ) |
|
|
inlinevirtual |
◆ type()
virtual std::string Nice::PropertyAttribute::type |
( |
| ) |
|
|
inlinevirtual |
Abstract function for requesting the stringified type of m_o.
- Returns
- Stringified type.
◆ m_foo
The documentation for this struct was generated from the following file: