Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4972 in orxonox.OLD for orxonox/trunk/src/util


Ignore:
Timestamp:
Aug 7, 2005, 10:32:23 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: many loadParams

File:
1 edited

Legend:

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

    r4860 r4972  
    7373#define l_BOOL_FUNC        isBool               //!< The function to call to parse BOOL
    7474#define l_BOOL_NAME        "bool"               //!< The name of an BOOL
    75 #define l_BOOL_DEFAULT     0                    //!< a default Value for an BOOL
     75#define l_BOOL_DEFAULT     false                //!< a default Value for an BOOL
    7676
    7777
     
    7979#define l_INT_FUNC         isInt                //!< The function to call to parse INT
    8080#define l_INT_NAME         "int"                //!< The name of an INT
    81 #define l_INT_DEFAULT      true                 //!< a default Value for an INT
     81#define l_INT_DEFAULT      0                    //!< a default Value for an INT
     82
     83#define l_UINT_TYPE        unsigned int         //!< The type of an UINT
     84#define l_UINT_FUNC        isInt                //!< The function to call to parse UINT
     85#define l_UINT_NAME        "unsigned int"       //!< The name of an UINT
     86#define l_UINT_DEFAULT     0                    //!< a default Value for an UINT
    8287
    8388#define l_LONG_TYPE        long                 //!< The type of a LONG
     
    372377  LoadParam4(l_INT, l_INT, l_INT, l_INT);
    373378
     379
     380  //! makes functions with one unsigned int loadable
     381  LoadParam1(l_UINT);
     382  //! makes functions with two unsigned ints loadable
     383  LoadParam2(l_UINT, l_UINT);
     384  //! makes functions with three unsigned ints loadable
     385  LoadParam3(l_UINT, l_UINT, l_UINT);
     386  //! makes functions with four unsigned ints loadable
     387  LoadParam4(l_UINT, l_UINT, l_UINT, l_UINT);
     388
    374389  //! makes functions with one float loadable
    375390  LoadParam1(l_FLOAT);
     
    382397  //! makes functions with four floats loadable
    383398  LoadParam5(l_FLOAT, l_FLOAT, l_FLOAT, l_FLOAT, l_FLOAT);
     399
     400  //! mixed values:
     401  LoadParam2(l_STRING, l_FLOAT);
    384402
    385403  //! makes functions with one Vector loadable
Note: See TracChangeset for help on using the changeset viewer.