Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4495 in orxonox.OLD


Ignore:
Timestamp:
Jun 3, 2005, 2:32:28 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: more confortable loading-macro

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/util/loading/load_param.h

    r4492 r4495  
    2828// Forward Declaration //
    2929template<class T> class tList;
     30
     31//! macro that makes it even more easy to load a Parameter
     32/**
     33   \param className the name of the class to load
     34   \param parameterName the name of the parameter to load as written in the XML-file
     35   \param function the function to call
     36*/
     37#define LOAD_PARAM(className, parameterName, paramFunction) \
     38        LoadParam<className>(root, #parameterName, this, &className::paramFunction)
    3039
    3140/**
Note: See TracChangeset for help on using the changeset viewer.