#include <gui_object.h>
Definition at line 29 of file gui_object.h.
◆ GUIObjectState() [1/2]
GUIObjectState::GUIObjectState |
( |
| ) |
|
◆ GUIObjectState() [2/2]
◆ all_ids()
std::list<std::string> GUIObjectState::all_ids |
( |
| ) |
const |
◆ get_node()
static XMLNode* GUIObjectState::get_node |
( |
const XMLNode * |
, |
|
|
const std::string & |
|
|
) |
| |
|
static |
◆ get_or_add_node() [1/2]
XMLNode* GUIObjectState::get_or_add_node |
( |
const std::string & |
| ) |
|
◆ get_or_add_node() [2/2]
static XMLNode* GUIObjectState::get_or_add_node |
( |
XMLNode * |
, |
|
|
const std::string & |
|
|
) |
| |
|
static |
◆ get_state()
XMLNode& GUIObjectState::get_state |
( |
| ) |
const |
◆ get_string()
std::string GUIObjectState::get_string |
( |
const std::string & |
id, |
|
|
const std::string & |
prop_name, |
|
|
bool * |
empty = 0 |
|
) |
| |
Get a string from our state.
- Parameters
-
id | property of Object node to look for. |
prop_name | name of the Object property to return. |
empty | if non-0, filled in with true if the property is currently non-existent, otherwise false. |
- Returns
- value of property ‘prop_name’, or empty.
◆ load()
void GUIObjectState::load |
( |
const XMLNode & |
| ) |
|
◆ remove_node()
void GUIObjectState::remove_node |
( |
const std::string & |
id | ) |
|
Remove node with provided id.
- Parameters
-
id | property of Object node to look for. |
◆ remove_property()
void GUIObjectState::remove_property |
( |
const std::string & |
id, |
|
|
const std::string & |
prop_name |
|
) |
| |
◆ set_property()
template<typename T >
void GUIObjectState::set_property |
( |
const std::string & |
id, |
|
|
const std::string & |
prop_name, |
|
|
const T & |
val |
|
) |
| |
|
inline |
◆ set_state()
int GUIObjectState::set_state |
( |
const XMLNode & |
| ) |
|
◆ _state
◆ object_map
std::map<std::string, XMLNode*> GUIObjectState::object_map |
|
private |
◆ xml_node_name
const std::string GUIObjectState::xml_node_name |
|
static |
The documentation for this class was generated from the following file: