- Timestamp:
- Dec 28, 2007, 2:41:13 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/orxonox/core/ConfigValueContainer.cc
r704 r705 45 45 ConfigValueContainer::ConfigValueContainer(const std::string& classname, const std::string& varname, int defvalue) 46 46 { 47 this->bAddedDescription_ = false; 47 48 this->classname_ = classname; 48 49 this->varname_ = varname; … … 66 67 ConfigValueContainer::ConfigValueContainer(const std::string& classname, const std::string& varname, unsigned int defvalue) 67 68 { 69 this->bAddedDescription_ = false; 68 70 this->classname_ = classname; 69 71 this->varname_ = varname; … … 87 89 ConfigValueContainer::ConfigValueContainer(const std::string& classname, const std::string& varname, char defvalue) 88 90 { 91 this->bAddedDescription_ = false; 89 92 this->classname_ = classname; 90 93 this->varname_ = varname; … … 108 111 ConfigValueContainer::ConfigValueContainer(const std::string& classname, const std::string& varname, unsigned char defvalue) 109 112 { 113 this->bAddedDescription_ = false; 110 114 this->classname_ = classname; 111 115 this->varname_ = varname; … … 129 133 ConfigValueContainer::ConfigValueContainer(const std::string& classname, const std::string& varname, float defvalue) 130 134 { 135 this->bAddedDescription_ = false; 131 136 this->classname_ = classname; 132 137 this->varname_ = varname; … … 150 155 ConfigValueContainer::ConfigValueContainer(const std::string& classname, const std::string& varname, double defvalue) 151 156 { 157 this->bAddedDescription_ = false; 152 158 this->classname_ = classname; 153 159 this->varname_ = varname; … … 171 177 ConfigValueContainer::ConfigValueContainer(const std::string& classname, const std::string& varname, long double defvalue) 172 178 { 179 this->bAddedDescription_ = false; 173 180 this->classname_ = classname; 174 181 this->varname_ = varname; … … 192 199 ConfigValueContainer::ConfigValueContainer(const std::string& classname, const std::string& varname, bool defvalue) 193 200 { 201 this->bAddedDescription_ = false; 194 202 this->classname_ = classname; 195 203 this->varname_ = varname; … … 217 225 ConfigValueContainer::ConfigValueContainer(const std::string& classname, const std::string& varname, const std::string& defvalue) 218 226 { 227 this->bAddedDescription_ = false; 219 228 this->classname_ = classname; 220 229 this->varname_ = varname; … … 237 246 ConfigValueContainer::ConfigValueContainer(const std::string& classname, const std::string& varname, const char* defvalue) 238 247 { 248 this->bAddedDescription_ = false; 239 249 this->classname_ = classname; 240 250 this->varname_ = varname; … … 257 267 ConfigValueContainer::ConfigValueContainer(const std::string& classname, const std::string& varname, Ogre::Vector2 defvalue) 258 268 { 269 this->bAddedDescription_ = false; 259 270 this->classname_ = classname; 260 271 this->varname_ = varname; … … 283 294 ConfigValueContainer::ConfigValueContainer(const std::string& classname, const std::string& varname, Ogre::Vector3 defvalue) 284 295 { 296 this->bAddedDescription_ = false; 285 297 this->classname_ = classname; 286 298 this->varname_ = varname; … … 309 321 ConfigValueContainer::ConfigValueContainer(const std::string& classname, const std::string& varname, Ogre::ColourValue defvalue) 310 322 { 323 this->bAddedDescription_ = false; 311 324 this->classname_ = classname; 312 325 this->varname_ = varname; … … 897 910 898 911 /** 899 * @paramWrites the content of the list, containing all lines of the config-file, into the config-file.900 *@param filename The name of the config-file901 912 @brief Writes the content of the list, containing all lines of the config-file, into the config-file. 913 @param filename The name of the config-file 914 */ 902 915 void ConfigValueContainer::writeConfigFile(const std::string& filename) 903 916 { … … 925 938 file.close(); 926 939 } 940 941 /** 942 @brief Adds a description to the config-value. 943 @param description The description 944 */ 945 void ConfigValueContainer::description(const std::string& description) 946 { 947 if (!this->bAddedDescription_) 948 { 949 this->description_ = std::string("ConfigValueDescription::" + this->classname_ + "::" + this->varname_); 950 Language::getLanguage().addEntry(description_, description); 951 this->bAddedDescription_ = true; 952 } 953 } 927 954 }
Note: See TracChangeset
for help on using the changeset viewer.