Changeset 1887 for code/trunk/src/core/ConfigValueContainer.h
- Timestamp:
- Oct 6, 2008, 12:31:32 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/core/ConfigValueContainer.h
r1747 r1887 99 99 @param type The type of the corresponding config-file 100 100 @param identifier The identifier of the class the variable belongs to 101 @param sectionname Name of the section the configValue should be put in. 101 102 @param varname The name of the variable 102 103 @param defvalue The default-value … … 104 105 */ 105 106 template <class D, class V> 106 ConfigValueContainer(ConfigFileType type, Identifier* identifier, const std::string& varname, const D& defvalue, const V& value)107 { 108 this->init(type, identifier, varname);107 ConfigValueContainer(ConfigFileType type, Identifier* identifier, const std::string& sectionname, const std::string& varname, const D& defvalue, const V& value) 108 { 109 this->init(type, identifier, sectionname, varname); 109 110 this->initValue((V)defvalue); 110 111 } … … 118 119 */ 119 120 template <class V> 120 ConfigValueContainer(ConfigFileType type, Identifier* identifier, const std::string& varname, const std::vector<V>& defvalue)121 { 122 this->init(type, identifier, varname);121 ConfigValueContainer(ConfigFileType type, Identifier* identifier, const std::string& sectionname, const std::string& varname, const std::vector<V>& defvalue) 122 { 123 this->init(type, identifier, sectionname, varname); 123 124 124 125 this->value_ = V(); … … 266 267 267 268 private: 268 void init(ConfigFileType type, Identifier* identifier, const std::string& varname);269 void init(ConfigFileType type, Identifier* identifier, const std::string& sectionname, const std::string& varname); 269 270 void initValue(const MultiType& defvalue); 270 271 void initVector();
Note: See TracChangeset
for help on using the changeset viewer.