Changeset 7210 in orxonox.OLD for branches/std/src/lib/util/loading
- Timestamp:
- Mar 10, 2006, 2:37:11 AM (19 years ago)
- Location:
- branches/std/src/lib/util/loading
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/std/src/lib/util/loading/factory.cc
r7209 r7210 178 178 else 179 179 { 180 PRINTF(2)("Could not Fabricate an Object of ClassID ' %h'\n", classID);180 PRINTF(2)("Could not Fabricate an Object of ClassID '0x%h'\n", classID); 181 181 return NULL; 182 182 } -
branches/std/src/lib/util/loading/factory.h
r7209 r7210 27 27 #include "parser/tinyxml/tinyxml.h" 28 28 #include "base_object.h" 29 #include "debug.h"30 29 #include <vector> 31 30 #include <list> … … 34 33 * Creates a factory to a Loadable Class. 35 34 * this should be used at the beginning of all the Classes that should be loadable (in the cc-file) 36 */35 */ 37 36 #define CREATE_FACTORY(CLASS_NAME, CLASS_ID) \ 38 37 tFactory<CLASS_NAME>* global_##CLASS_NAME##_Factory = new tFactory<CLASS_NAME>(#CLASS_NAME, CLASS_ID) … … 69 68 70 69 /** 71 * a factory that is able to load any kind of Object70 * @brief a factory that is able to load any kind of Object 72 71 * (this is a Functor) 73 72 */ … … 76 75 public: 77 76 /** 78 * creates a new type Factory to enable the loading of T77 * @brief creates a new type Factory to enable the loading of T 79 78 * @param factoryName the Name of the Factory to load. 80 79 * @param classID the ID of the Class to be created. … … 86 85 private: 87 86 /** 88 * fabricates an Object of type T, with the constructor T::T(const TiXmlElemnt*)87 * @brief fabricates an Object of type T, with the constructor T::T(const TiXmlElemnt*) 89 88 * @param root the TiXmlElement T should load parameters from. 90 89 * @return the newly fabricated T. -
branches/std/src/lib/util/loading/resource_manager.cc
r7208 r7210 325 325 { 326 326 327 printf("LOADING:::::: %s\n", fileName.c_str());328 327 // searching if the resource was loaded before. 329 328 Resource* tmpResource;
Note: See TracChangeset
for help on using the changeset viewer.