Changeset 5634 in orxonox.OLD for trunk/src/util
- Timestamp:
- Nov 18, 2005, 6:09:01 PM (19 years ago)
- Location:
- trunk/src/util/loading
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/util/loading/load_param.cc
r5549 r5634 80 80 switch (tmpType) 81 81 { 82 case ParameterInt:82 case MT_INT: 83 83 sprintf(defaultVal, "%d", va_arg(types, int)); 84 84 break; 85 case ParameterLong:85 /* case MT_LONG: 86 86 sprintf(defaultVal, "%0.3f", va_arg(types, l_LONG_TYPE)); 87 break; 88 case ParameterFloat:87 break;*/ 88 case MT_FLOAT: 89 89 sprintf(defaultVal, "%0.3f", va_arg(types, double)); 90 90 break; 91 case ParameterString:91 case MT_STRING: 92 92 sprintf(defaultVal, "%s", va_arg(types, l_STRING_TYPE)); 93 93 break; 94 case ParameterXML:94 case MT_EXT1: 95 95 sprintf(defaultVal, ""); 96 96 break; -
trunk/src/util/loading/load_param_description.cc
r5556 r5634 71 71 if (i > 0) 72 72 PRINT(3)(","); 73 switch (this->types[i]) 74 { 75 default: 76 PRINTF(3)("none"); 77 break; 78 case ParameterBool: 79 PRINT(3)("bool"); 80 break; 81 case ParameterChar: 82 PRINT(3)("char"); 83 break; 84 case ParameterString: 85 PRINT(3)("string"); 86 break; 87 case ParameterInt: 88 PRINT(3)("int"); 89 break; 90 case ParameterUInt: 91 PRINT(3)("Uint"); 92 break; 93 case ParameterFloat: 94 PRINT(3)("float"); 95 break; 96 case ParameterLong: 97 PRINT(3)("long"); 98 break; 99 case ParameterXML: 100 PRINT(3)("XML"); 101 break; 102 } 73 // FIXME 74 // switch (this->types[i]) 75 // { 76 // default: 77 // PRINTF(3)("none"); 78 // break; 79 // case ParameterBool: 80 // PRINT(3)("bool"); 81 // break; 82 // case ParameterChar: 83 // PRINT(3)("char"); 84 // break; 85 // case ParameterString: 86 // PRINT(3)("string"); 87 // break; 88 // case ParameterInt: 89 // PRINT(3)("int"); 90 // break; 91 // case ParameterUInt: 92 // PRINT(3)("Uint"); 93 // break; 94 // case ParameterFloat: 95 // PRINT(3)("float"); 96 // break; 97 // case ParameterLong: 98 // PRINT(3)("long"); 99 // break; 100 // case ParameterXML: 101 // PRINT(3)("XML"); 102 // break; 103 // } 103 104 } 104 105 PRINT(3)("</%s>", this->paramName); … … 113 114 if (i > 0) 114 115 PRINT(3)(", "); 115 if (this->types[i] & ParameterString)116 if (this->types[i] & MT_STRING) 116 117 { // leave brackets !! 117 118 PRINT(3)("\"%s\"", this->defaultValues[i]);
Note: See TracChangeset
for help on using the changeset viewer.