Changeset 848 for code/branches/core/src/util/MultiTypeString.h
- Timestamp:
- Mar 5, 2008, 1:29:47 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core/src/util/MultiTypeString.h
r834 r848 71 71 bool operator!=(const MultiTypeString& mtp) const; 72 72 73 inline operator std::string() const { return this->string_; }74 inline operator const char*() const { return this->string_.c_str(); }73 operator std::string() const; 74 operator const char*() const; 75 75 76 76 using MultiTypePrimitive::setValue; … … 79 79 void setValue(const MultiTypeString& mtp); 80 80 81 inline std::string& getString() { return this->string_; } 82 inline const char* getConstChar() { return this->string_.c_str(); } 81 inline const std::string getString() const { return this->string_; } 82 inline const char* getConstChar() const { return this->string_.c_str(); } 83 84 inline const std::string& getString() { return this->string_; } 85 inline const char* getConstChar() { return this->string_.c_str(); } 83 86 84 87 using MultiTypePrimitive::getValue; 85 88 inline void getValue(std::string* variable) const { (*variable) = this->string_; } 86 89 inline void getValue(const char** variable) const { (*variable) = this->string_.c_str(); } 90 91 std::string toString() const; 92 bool fromString(const std::string value); 87 93 88 94 protected:
Note: See TracChangeset
for help on using the changeset viewer.