orxonox::XMLPortVariableHelperClass Class Reference

Helper class to load and save simple variables with XMLPort. More...

#include <src/core/XMLPort.h>

List of all members.

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_


Detailed Description

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>.


Constructor & Destructor Documentation

orxonox::XMLPortVariableHelperClass::XMLPortVariableHelperClass ( void *  var  )  [inline]


Member Function Documentation

template<class T>
static void(XMLPortVariableHelperClass::* orxonox::XMLPortVariableHelperClass::getLoader ( const T &  var  )  [inline, static]

template<class T>
static const T&(XMLPortVariableHelperClass::* orxonox::XMLPortVariableHelperClass::getSaver ( const T &  var  )  [inline, static]

template<class T>
void orxonox::XMLPortVariableHelperClass::load ( const T &  value  )  [inline]

References orxonox::KeyCode::T, and variable_.

template<class T>
const T& orxonox::XMLPortVariableHelperClass::save (  )  [inline]

References orxonox::KeyCode::T, and variable_.


Member Data Documentation

Referenced by load(), and save().


The documentation for this class was generated from the following file:

Generated on Tue Jul 28 16:23:19 2009 for Orxonox by  doxygen 1.5.6