Changeset 9767 in orxonox.OLD for branches/new_class_id/src/lib/util/loading/load_param_description.cc
- Timestamp:
- Sep 19, 2006, 5:58:08 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/lib/util/loading/load_param_description.cc
r9765 r9767 23 23 */ 24 24 LoadParamDescription::LoadParamDescription(const std::string& paramName) 25 : name(paramName)25 : _name(paramName) 26 26 { } 27 27 … … 38 38 void LoadParamDescription::setDescription(const std::string& descriptionText) 39 39 { 40 this-> description = descriptionText;40 this->_description = descriptionText; 41 41 } 42 42 … … 46 46 void LoadParamDescription::print() const 47 47 { 48 PRINT(3)(" <%s>", this-> name.c_str());49 for (unsigned int i = 0; i < this-> parameterCount; i++)48 PRINT(3)(" <%s>", this->_name.c_str()); 49 for (unsigned int i = 0; i < this->_parameterCount; i++) 50 50 { 51 51 if (i > 0) … … 83 83 // } 84 84 } 85 PRINT(3)("</%s>", this-> name.c_str());86 if (!this-> description.empty())87 PRINT(3)(" -- %s", this-> description.c_str());85 PRINT(3)("</%s>", this->_name.c_str()); 86 if (!this->_description.empty()) 87 PRINT(3)(" -- %s", this->_description.c_str()); 88 88 // default values 89 if (this-> parameterCount > 0)89 if (this->_parameterCount > 0) 90 90 { 91 91 PRINT(3)(" (Default: "); 92 for (unsigned int i = 0; i < this-> parameterCount; i++)92 for (unsigned int i = 0; i < this->_parameterCount; i++) 93 93 { 94 94 if (i > 0) 95 95 PRINT(3)(", "); 96 if (this-> types[i] == "string")96 if (this->_types[i] == "string") 97 97 { // leave brackets !! 98 PRINT(3)("\"%s\"", this-> defaultValues[i].c_str());98 PRINT(3)("\"%s\"", this->_defaultValues[i].c_str()); 99 99 } 100 100 else 101 101 { 102 PRINT(3)("%s", this-> defaultValues[i].c_str());102 PRINT(3)("%s", this->_defaultValues[i].c_str()); 103 103 } 104 104 }
Note: See TracChangeset
for help on using the changeset viewer.