Helper class to load and save simple variables with XMLPort.
More...
#include </home/jenkins/workspace/orxonox_doxygen_trunk/src/libraries/core/XMLPort.h>
|
template<class T > |
static void(XMLPortVariableHelperClass::*)(const T &value) | getLoader (const T &var) |
|
template<class T > |
static const T &(XMLPortVariableHelperClass::*)() | getSaver (const T &var) |
|
Helper class to load and save simple variables with XMLPort.
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 |
virtual orxonox::XMLPortVariableHelperClass::~XMLPortVariableHelperClass |
( |
| ) |
|
|
inlinevirtual |
template<class T >
void orxonox::XMLPortVariableHelperClass::load |
( |
const T & |
value | ) |
|
|
inline |
template<class T >
const T& orxonox::XMLPortVariableHelperClass::save |
( |
| ) |
|
|
inline |
template<class T >
void(XMLPortVariableHelperClass::*)(const T& value) orxonox::XMLPortVariableHelperClass::getLoader(const T &var) |
|
inlinestatic |
template<class T >
const T&(XMLPortVariableHelperClass::*)() orxonox::XMLPortVariableHelperClass::getSaver(const T &var) |
|
inlinestatic |
void* orxonox::XMLPortVariableHelperClass::variable_ |
|
private |
The documentation for this class was generated from the following file: