removed: in some places a dependencies to tm struct has left

removed: operator<<(tm&) from streams: textstream, log, dbtextstream, htmltextstream



git-svn-id: svn://ttmath.org/publicrep/winix/trunk@840 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2012-05-27 18:11:34 +00:00
parent 1b858f5782
commit 9d5d088b4a
14 changed files with 24 additions and 159 deletions

View File

@@ -60,7 +60,6 @@ public:
TextStream & operator<<(double);
TextStream & operator<<(const void *);// printing a pointer
TextStream & operator<<(const PT::Space & space);
TextStream & operator<<(const tm & tm_);
TextStream & operator<<(const PT::Date & date);
TextStream & Write(const char * buf, size_t len);
@@ -318,26 +317,6 @@ return *this;
}
template<class StringType>
TextStream<StringType> & TextStream<StringType>::operator<<(const tm & tm_)
{
char buf[50];
sprintf(buf, "%04d-%02d-%02d %02d:%02d:%02d",
tm_.tm_year + 1900,
tm_.tm_mon + 1,
tm_.tm_mday,
tm_.tm_hour,
tm_.tm_min,
tm_.tm_sec);
for(size_t i=0 ; buf[i] ; ++i)
buffer += buf[i];
return *this;
}
template<class StringType>
TextStream<StringType> & TextStream<StringType>::operator<<(const PT::Date & date)