OpenStructure
|
#include <generic_property.hh>
Inherited by GenericPropContainer< H >.
Public Member Functions | |
bool | HasProp (const String &key) const |
String | GetPropAsString (const String &key) const |
String | GetStringProp (const String &key) const |
Real | GetFloatProp (const String &key) const |
int | GetIntProp (const String &key) const |
bool | GetBoolProp (const String &key) const |
String | GetStringProp (const String &key, const String &def) const |
Real | GetFloatProp (const String &key, Real def) const |
int | GetIntProp (const String &key, int def) const |
bool | GetBoolProp (const String &key, bool def) const |
std::map< String, GenericPropValue > | GetPropMap () const |
std::vector< String > | GetPropList () const |
Protected Member Functions | |
template<typename T > | |
T | gp_get (const String &key) const |
template<typename T > | |
T | gp_get (const String &key, const T &def) const |
GenericPropContainerImpl * | GetImpl () |
const GenericPropContainerImpl * | GetImpl () const |
Definition at line 152 of file generic_property.hh.
|
inline |
returns boolean property, raises an exception if it does not exist
Definition at line 244 of file generic_property.hh.
|
inline |
returns boolean property, or the given default if it does not exist
Definition at line 285 of file generic_property.hh.
returns floating point property, raises an exception if it does not exist
Definition at line 215 of file generic_property.hh.
returns floating point property, or the given default if it does not exist
Definition at line 259 of file generic_property.hh.
|
inlineprotected |
Definition at line 173 of file generic_property.hh.
|
inlineprotected |
Definition at line 178 of file generic_property.hh.
|
inline |
returns integer property, raises an exception if it does not exist
Definition at line 237 of file generic_property.hh.
|
inline |
returns integer property, or the given default if it does not exist
Definition at line 278 of file generic_property.hh.
returns a String representation of stored value
returns the String representation of this property, or the empty String if the property addressed by key does not exist. Note that this is not the same as trying to get a generic float/int/bool property as a String type; the latter will result in a boost:get exception. Use this method to obtain a representation suitable for output.
Definition at line 197 of file generic_property.hh.
|
inline |
Definition at line 297 of file generic_property.hh.
|
inline |
Definition at line 291 of file generic_property.hh.
returns String property, raises an exception if it does not exist
Definition at line 207 of file generic_property.hh.
returns String property, or the given default if it does not exist
Definition at line 251 of file generic_property.hh.
|
inlineprotected |
Definition at line 156 of file generic_property.hh.
|
inlineprotected |
Definition at line 167 of file generic_property.hh.
|
inline |
checks existence of property
Definition at line 185 of file generic_property.hh.