X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/d01f302f0da31eb088608c33a3e15c5fdee8ca84..7f4a67cabd5fbf8cfe9c2e658bd4a255a6764b0e:/include/stg/user_property.h?ds=sidebyside diff --git a/include/stg/user_property.h b/include/stg/user_property.h index 2ff8909c..d76326f1 100644 --- a/include/stg/user_property.h +++ b/include/stg/user_property.h @@ -51,6 +51,7 @@ public: time_t ModificationTime() const throw() { return modificationTime; } void ModifyTime() throw(); + std::string ToString() const; private: varT & value; time_t modificationTime; @@ -382,5 +383,12 @@ std::ostream & operator<< (std::ostream & stream, const USER_PROPERTY & va return stream << value.ConstData(); } //----------------------------------------------------------------------------- - +template +std::string USER_PROPERTY::ToString() const +{ +std::stringstream stream; +stream << value; +std::string stringValue = stream.str(); +return stringValue; +} #endif // USER_PROPERTY_H