]> git.stg.codes - stg.git/blobdiff - include/stg/user_property.h
Added missing header.
[stg.git] / include / stg / user_property.h
index 2ff8909cdc25331ef800d40b7ee61d355432d16b..1716296acd7300482c53f3014c41d7f13869574d 100644 (file)
@@ -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<varT> & va
 return stream << value.ConstData();
 }
 //-----------------------------------------------------------------------------
-
+template<typename varT>
+std::string USER_PROPERTY<varT>::ToString() const
+{
+std::stringstream stream;
+stream << value;
+return stream.str();
+}
 #endif // USER_PROPERTY_H