Orxonox  0.0.5 Codename: Arcturus
Public Member Functions | Static Public Attributes | Private Attributes | List of all members
orxonox::XMLPortVariableHelperClass Class Reference

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

#include </home/jenkins/workspace/orxonox_doxygen_trunk/src/libraries/core/XMLPort.h>

Public Member Functions

 XMLPortVariableHelperClass (void *var)
 
virtual ~XMLPortVariableHelperClass ()
 
template<class T >
void load (const T &value)
 
template<class T >
const T & save ()
 

Static Public Attributes

template<class T >
static void(XMLPortVariableHelperClass::*)(const T &value) getLoader (const T &var)
 
template<class T >
static const T &(XMLPortVariableHelperClass::*)() getSaver (const T &var)
 

Private Attributes

voidvariable_
 

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
virtual orxonox::XMLPortVariableHelperClass::~XMLPortVariableHelperClass ( )
inlinevirtual

Member Function Documentation

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

Member Data Documentation

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: