Changes between Version 1 and Version 2 of ~archive/LoadParam
- Timestamp:
- Nov 27, 2007, 11:28:18 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
~archive/LoadParam
v1 v2 1 = LoadParam =1 = !LoadParam = 2 2 A functor that enables us to (very) easy load many different Types of data onto all objects in orxonox. 3 LoadParam can be found source:trunk/src/lib/util/loading/load_param.h#HEAD3 !LoadParam can be found source:trunk/src/lib/util/loading/load_param.h#HEAD 4 4 5 5 == Usage == … … 30 30 31 31 == what is cool about it == 32 Because LoadParam is a Functor with multiple input methoids it iscomprehends (normally) what arguments must be given to the Function, and will split your input (in the XML-file) into what it needs.32 Because !LoadParam is a Functor with multiple input methods it comprehends (normally) what arguments must be given to the Function, and will split your input (in the XML-file) into what it needs. 33 33 34 34 == Example == … … 61 61 </Campaign> 62 62 }}} 63 as you can see also <name> gets loaded, this is because Campaign is derived from BaseObject, and as you can see in the loadParams function, its loadParams also gets called.63 as you can see also <name> gets loaded, this is because Campaign is derived from [wiki:archive/BaseObject BaseObject], and as you can see in the loadParams function, its loadParams also gets called. 64 64 65 65 also you may have noticed the Default arguments of <identifier>, because you specified 0 as default