Changeset 6536 for code/trunk/src/libraries/core/ConfigValueContainer.h
- Timestamp:
- Mar 16, 2010, 11:22:36 AM (15 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/gamestate (added) merged: 6430-6432,6437,6439-6440
- Property svn:mergeinfo changed
-
code/trunk/src/libraries/core/ConfigValueContainer.h
r6417 r6536 50 50 51 51 #include "util/MultiType.h" 52 #include "ConfigFileManager.h"53 52 #include "Identifier.h" 54 53 … … 108 107 */ 109 108 template <class D, class V> 110 ConfigValueContainer(ConfigFileType type, Identifier* identifier, const std::string& sectionname, const std::string& varname, const D& defvalue, const V& value)109 ConfigValueContainer(ConfigFileType::Value type, Identifier* identifier, const std::string& sectionname, const std::string& varname, const D& defvalue, const V& value) 111 110 { 112 111 this->init(type, identifier, sectionname, varname); … … 122 121 */ 123 122 template <class D, class V> 124 ConfigValueContainer(ConfigFileType type, Identifier* identifier, const std::string& sectionname, const std::string& varname, const std::vector<D>& defvalue, const std::vector<V>& value)123 ConfigValueContainer(ConfigFileType::Value type, Identifier* identifier, const std::string& sectionname, const std::string& varname, const std::vector<D>& defvalue, const std::vector<V>& value) 125 124 { 126 125 this->init(type, identifier, sectionname, varname); … … 217 216 inline const std::string& getName() const 218 217 { return this->varname_; } 219 /** @brief Retu ns the name of the section this config value is in. */218 /** @brief Returns the name of the section this config value is in. */ 220 219 inline const std::string& getSectionName() const 221 220 { return this->sectionname_; } 221 /** @brief Returns the associated identifier (can be NULL). */ 222 inline Identifier* getIdentifier() const 223 { return this->identifier_; } 222 224 /** @brief Returns true if this config-value is a vector */ 223 225 inline bool isVector() const … … 271 273 272 274 private: 273 void init(ConfigFileType type, Identifier* identifier, const std::string& sectionname, const std::string& varname);275 void init(ConfigFileType::Value type, Identifier* identifier, const std::string& sectionname, const std::string& varname); 274 276 void initValue(const MultiType& defvalue); 275 277 void initVector(); … … 278 280 bool bIsVector_; //!< True if the container contains a std::vector 279 281 280 ConfigFileType 282 ConfigFileType::Value type_; //!< The type of the corresponding config-file 281 283 Identifier* identifier_; //!< The identifier of the class 282 284 std::string sectionname_; //!< The name of the class the variable belongs to
Note: See TracChangeset
for help on using the changeset viewer.