Changeset 797 for code/branches/core/src/util/MultiTypeString.h
- Timestamp:
- Feb 11, 2008, 3:29:16 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core/src/util/MultiTypeString.h
r794 r797 76 76 void setValue(const MultiTypeString& mtp); 77 77 78 inline std::string& getString() { return this->string_; } 78 inline std::string& getString() { return this->string_; } 79 inline const char* getConstChar() { return this->string_.c_str(); } 79 80 80 81 using MultiTypePrimitive::getValue; 81 inline void getValue(std::string* variable) const { (*variable) = std::string(this->string_); } 82 inline void getValue(std::string* variable) const { (*variable) = this->string_; } 83 inline void getValue(const char** variable) const { (*variable) = this->string_.c_str(); } 82 84 83 85 protected: … … 85 87 }; 86 88 89 std::ostream& operator<<(std::ostream& out, MultiTypeString& mts); 90 87 91 #endif /* _MultiTypeString_H__ */
Note: See TracChangeset
for help on using the changeset viewer.