Changeset 5653 in orxonox.OLD for trunk/src/util/loading/load_param.h
- Timestamp:
- Nov 20, 2005, 6:43:58 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/util/loading/load_param.h
r5652 r5653 284 284 #include "functor_list.h" 285 285 #undef FUNCTOR_LIST 286 287 //! makes functions with one Vector loadable288 //LoadParam1(l_VECTOR);289 290 // loads a Ti-XML-element291 LoadParam(const TiXmlElement* root, const char* paramName, T* pt2Object, void(T::*function)(const TiXmlElement*), bool multi = false)292 : LoadParamBase(root, pt2Object, paramName, 1, multi, NULL, "XML")293 {294 if (root != NULL)295 {296 const TiXmlElement* elem = root->FirstChildElement(paramName);297 if (elem != NULL)298 (*pt2Object.*function)(elem);299 else300 PRINTF(4)("%s of %s is empty\n", paramName, pt2Object->getClassName());301 }302 else303 PRINTF(4)("Not loaded parameter %s of %s\n", paramName, pt2Object->getClassName());304 }305 306 //LoadParamPT(l_XML_ELEM);307 286 }; 308 287
Note: See TracChangeset
for help on using the changeset viewer.