Changeset 1634 for code/branches/gcc43/src/core/ConfigValueContainer.h
- Timestamp:
- Jun 29, 2008, 7:36:33 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gcc43/src/core/ConfigValueContainer.h
r1505 r1634 79 79 /** @brief Returns the configured value. @param value This is only needed to determine the right type. @return The value */ 80 80 template <typename T> 81 inlineConfigValueContainer& getValue(T* value)81 ConfigValueContainer& getValue(T* value) 82 82 { this->value_.getValue(value); return *this; } 83 83 template <typename T> 84 inlineConfigValueContainer& getValue(std::vector<T>* value)84 ConfigValueContainer& getValue(std::vector<T>* value) 85 85 { 86 86 value->clear(); … … 91 91 92 92 template <typename T> 93 inlinevoid setVectorType(const std::vector<T>& value)93 void setVectorType(const std::vector<T>& value) 94 94 { 95 95 this->value_ = T(); … … 97 97 } 98 98 99 inlineconst std::string& getName() const99 const std::string& getName() const 100 100 { return this->varname_; } 101 inlinebool isVector() const101 bool isVector() const 102 102 { return this->bIsVector_; } 103 inlineunsigned int getVectorSize() const103 unsigned int getVectorSize() const 104 104 { return this->valueVector_.size(); } 105 105 … … 119 119 120 120 /** @brief Converts the config-value to a string. @return The string */ 121 inlinestd::string toString() const121 std::string toString() const 122 122 { return this->value_.toString(); } 123 123 /** @brief Returns the typename of the assigned config-value. @return The typename */ 124 inlinestd::string getTypename() const124 std::string getTypename() const 125 125 { return this->value_.getTypename(); } 126 126
Note: See TracChangeset
for help on using the changeset viewer.