Changeset 1716 for code/branches/core3/src/core/ConfigValueContainer.h
- Timestamp:
- Sep 6, 2008, 4:21:56 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core3/src/core/ConfigValueContainer.h
r1611 r1716 50 50 51 51 #include "util/Math.h" 52 #include "util/MultiType Math.h"52 #include "util/MultiType.h" 53 53 #include "ConfigFileManager.h" 54 54 … … 124 124 this->value_ = V(); 125 125 for (unsigned int i = 0; i < defvalue.size(); i++) 126 this->valueVector_.push_back(MultiType Math(defvalue[i]));126 this->valueVector_.push_back(MultiType(defvalue[i])); 127 127 128 128 this->initVector(); … … 247 247 } 248 248 249 bool set(const MultiType Math& input);250 bool tset(const MultiType Math& input);251 252 bool set(unsigned int index, const MultiType Math& input);253 bool tset(unsigned int index, const MultiType Math& input);254 bool add(const MultiType Math& input);249 bool set(const MultiType& input); 250 bool tset(const MultiType& input); 251 252 bool set(unsigned int index, const MultiType& input); 253 bool tset(unsigned int index, const MultiType& input); 254 bool add(const MultiType& input); 255 255 bool remove(unsigned int index); 256 256 … … 260 260 /** @brief Converts the config-value to a string. @return The string */ 261 261 inline std::string toString() const 262 { return this->value_ .toString(); }262 { return this->value_; } 263 263 /** @brief Returns the typename of the assigned config-value. @return The typename */ 264 264 inline std::string getTypename() const … … 267 267 private: 268 268 void init(ConfigFileType type, Identifier* identifier, const std::string& varname); 269 void initValue(const MultiType Math& defvalue);269 void initValue(const MultiType& defvalue); 270 270 void initVector(); 271 bool callFunctionWithIndex(bool (ConfigValueContainer::* function) (unsigned int, const MultiType Math&), const std::string& input);271 bool callFunctionWithIndex(bool (ConfigValueContainer::* function) (unsigned int, const MultiType&), const std::string& input); 272 272 273 273 bool bIsVector_; //!< True if the container contains a std::vector … … 280 280 std::vector<std::string> defvalueStringVector_; //!< A vector, containg the strings of the default-values in case we're storing a vector 281 281 282 MultiType Mathvalue_; //!< The value283 std::vector<MultiType Math>valueVector_; //!< A vector, containg the values in case we're storing a vector282 MultiType value_; //!< The value 283 std::vector<MultiType> valueVector_; //!< A vector, containg the values in case we're storing a vector 284 284 285 285 bool bAddedDescription_; //!< True if a description was added
Note: See TracChangeset
for help on using the changeset viewer.