#include <src/core/XMLPort.h>
Public Member Functions | |
template<class T> | |
void | load (const T &value) |
template<class T> | |
const T & | save () |
XMLPortVariableHelperClass (void *var) | |
Static Public Member Functions | |
template<class T> | |
static void(XMLPortVariableHelperClass::* | getLoader (const T &var))(const T &value) |
template<class T> | |
static const T &(XMLPortVariableHelperClass::* | getSaver (const T &var))() |
Private Attributes | |
void * | variable_ |
getLoader and getSaver were necessary to get the type T with the help of template function type deduction (const T& is unused). These functions return the adress of save<T> or load<T>.
orxonox::XMLPortVariableHelperClass::XMLPortVariableHelperClass | ( | void * | var | ) | [inline] |
static void(XMLPortVariableHelperClass::* orxonox::XMLPortVariableHelperClass::getLoader | ( | const T & | var | ) | [inline, static] |
static const T&(XMLPortVariableHelperClass::* orxonox::XMLPortVariableHelperClass::getSaver | ( | const T & | var | ) | [inline, static] |
void orxonox::XMLPortVariableHelperClass::load | ( | const T & | value | ) | [inline] |
References orxonox::KeyCode::T, and variable_.
const T& orxonox::XMLPortVariableHelperClass::save | ( | ) | [inline] |
References orxonox::KeyCode::T, and variable_.
void* orxonox::XMLPortVariableHelperClass::variable_ [private] |