git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[NY Flight] Improvements in parser dispatching.
[stg.git]
/
include
/
stg
/
user_property.h
diff --git
a/include/stg/user_property.h
b/include/stg/user_property.h
index 2ff8909cdc25331ef800d40b7ee61d355432d16b..1716296acd7300482c53f3014c41d7f13869574d 100644
(file)
--- 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();
time_t ModificationTime() const throw() { return modificationTime; }
void ModifyTime() throw();
+ std::string ToString() const;
private:
varT & value;
time_t modificationTime;
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();
}
//-----------------------------------------------------------------------------
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
#endif // USER_PROPERTY_H