X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/b2feeb7214b97678c52075570e40e52828914a82..b078cd0fbf7dee4e222fcffffac2ded8a3c9d3a3:/include/stg/user_property.h diff --git a/include/stg/user_property.h b/include/stg/user_property.h index 2ff8909c..1716296a 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,11 @@ 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; +return stream.str(); +} #endif // USER_PROPERTY_H