#include <Property.h>
Public Types | |
| enum | PropertyType { String, Integer, Double, Boolean, Array, Object } |
Public Member Functions | |
| void | addSubProperty (Property *prSubProperty) |
| bool | getBoolean () |
| double | getDouble () |
| int | getInteger () |
| std::string | getString () |
| std::string | key () |
| Property * | namedSubProperty (std::string strKey) |
| void | print (int nIndentationLevel=0, bool bPrintKey=true) |
| Property (std::string strKey="", PropertyType ptType=String) | |
| Property (Property *prTemplate, bool bDeepCopy=true) | |
| void | set (PropertyType ptType) |
| void | set (std::string strValue) |
| void | set (int nValue) |
| void | set (double dValue) |
| void | set (bool bValue) |
| void | setKey (std::string strKey) |
| std::list< Property * > | subProperties () |
| PropertyType | type () |
| ~Property () | |
Private Attributes | |
| double | m_dValue |
| std::list< Property * > | m_lstSubProperties |
| PropertyType | m_ptType |
| std::string | m_strKey |
| std::string | m_strValue |
Definition at line 51 of file Property.h.
Definition at line 53 of file Property.h.
| beliefstate::Property::Property | ( | std::string | strKey = "", |
| PropertyType | ptType = String |
||
| ) |
Definition at line 44 of file Property.cpp.
| beliefstate::Property::Property | ( | Property * | prTemplate, |
| bool | bDeepCopy = true |
||
| ) |
Definition at line 52 of file Property.cpp.
Definition at line 85 of file Property.cpp.
| void beliefstate::Property::addSubProperty | ( | Property * | prSubProperty | ) |
Definition at line 141 of file Property.cpp.
| bool beliefstate::Property::getBoolean | ( | ) |
Definition at line 137 of file Property.cpp.
| double beliefstate::Property::getDouble | ( | ) |
Definition at line 129 of file Property.cpp.
Definition at line 121 of file Property.cpp.
| std::string beliefstate::Property::getString | ( | ) |
Definition at line 113 of file Property.cpp.
| std::string beliefstate::Property::key | ( | ) |
Definition at line 97 of file Property.cpp.
| Property * beliefstate::Property::namedSubProperty | ( | std::string | strKey | ) |
Definition at line 197 of file Property.cpp.
| void beliefstate::Property::print | ( | int | nIndentationLevel = 0, |
| bool | bPrintKey = true |
||
| ) |
Definition at line 149 of file Property.cpp.
| void beliefstate::Property::set | ( | Property::PropertyType | ptType | ) |
Definition at line 101 of file Property.cpp.
| void beliefstate::Property::set | ( | std::string | strValue | ) |
Definition at line 109 of file Property.cpp.
| void beliefstate::Property::set | ( | int | nValue | ) |
Definition at line 117 of file Property.cpp.
| void beliefstate::Property::set | ( | double | dValue | ) |
Definition at line 125 of file Property.cpp.
| void beliefstate::Property::set | ( | bool | bValue | ) |
Definition at line 133 of file Property.cpp.
| void beliefstate::Property::setKey | ( | std::string | strKey | ) |
Definition at line 93 of file Property.cpp.
| std::list< Property * > beliefstate::Property::subProperties | ( | ) |
Definition at line 145 of file Property.cpp.
Definition at line 105 of file Property.cpp.
double beliefstate::Property::m_dValue [private] |
Definition at line 66 of file Property.h.
std::list<Property*> beliefstate::Property::m_lstSubProperties [private] |
Definition at line 63 of file Property.h.
PropertyType beliefstate::Property::m_ptType [private] |
Definition at line 67 of file Property.h.
std::string beliefstate::Property::m_strKey [private] |
Definition at line 64 of file Property.h.
std::string beliefstate::Property::m_strValue [private] |
Definition at line 65 of file Property.h.