Changeset 9775 in orxonox.OLD for branches/new_class_id/src/lib/util/loading
- Timestamp:
- Sep 20, 2006, 12:04:21 AM (18 years ago)
- Location:
- branches/new_class_id/src/lib/util/loading
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/lib/util/loading/load_param.cc
r9771 r9775 57 57 void LoadParamBase::setDescriptionValues(const ClassID& classID, unsigned int paramCount, const MultiType* const defaultValues, bool retVal) 58 58 { 59 LoadParamClassDescription::setValuesOf(classID, paramName, paramCount, defaultValues, retVal); 59 if(LoadParamClassDescription::createsDescriptions()) 60 LoadParamClassDescription::setValuesOf(classID, paramName, paramCount, defaultValues, retVal); 60 61 } 61 62 -
branches/new_class_id/src/lib/util/loading/load_param_class_description.cc
r9772 r9775 20 20 21 21 /** 22 * A list, that holds all the classes that are loadable (classes not objects!!)22 * @brief A list, that holds all the classes that are loadable (classes not objects!!) 23 23 */ 24 24 LoadParamClassDescription::ClassDescriptionMap LoadParamClassDescription::_classList; 25 25 26 26 /** 27 * if the description of Parameters should be executed27 * @brief if the description of Parameters should be executed 28 28 */ 29 bool LoadParamClassDescription::_ parametersDescription = false;29 bool LoadParamClassDescription::_createParametersDescription = false; 30 30 31 31 /** … … 87 87 LoadParamClassDescription::_classList[classID] = LoadParamClassDescription(classID.name()); 88 88 classIt = LoadParamClassDescription::_classList.find(classID); 89 printf("Inserted %s\n", classID.name().c_str());90 printAll("");91 89 } 92 90 // At this position the class-iterator should point to a valid usefull position. -
branches/new_class_id/src/lib/util/loading/load_param_class_description.h
r9771 r9775 50 50 bool retVal = false); 51 51 52 53 static void createDescriptions(bool createThem) { _createParametersDescription = createThem; }; 54 static bool createsDescriptions() { return _createParametersDescription; }; 55 52 56 static void deleteAllDescriptions(); 53 57 … … 63 67 private: 64 68 65 static bool _ parametersDescription; //!< if parameter-description should be enabled globally.69 static bool _createParametersDescription; //!< if parameter-description should be enabled globally. 66 70 67 71 static ClassDescriptionMap _classList; //!< a list, that stores all the loadable classes. (after one instance has been loaded) -
branches/new_class_id/src/lib/util/loading/load_param_description.cc
r9774 r9775 65 65 PRINT(0)(","); 66 66 PRINT(0)("%s", this->_types[i].c_str()); 67 // FIXME68 // switch (this->types[i])69 // {70 // default:71 // PRINTF(3)("none");72 // break;73 // case ParameterBool:74 // PRINT(3)("bool");75 // break;76 // case ParameterChar:77 // PRINT(3)("char");78 // break;79 // case ParameterString:80 // PRINT(3)("string");81 // break;82 // case ParameterInt:83 // PRINT(3)("int");84 // break;85 // case ParameterUInt:86 // PRINT(3)("Uint");87 // break;88 // case ParameterFloat:89 // PRINT(3)("float");90 // break;91 // case ParameterLong:92 // PRINT(3)("long");93 // break;94 // case ParameterXML:95 // PRINT(3)("XML");96 // break;97 // }98 67 } 99 68 PRINT(0)("</%s>", this->_name.c_str());
Note: See TracChangeset
for help on using the changeset viewer.