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:
@@ -20,7 +20,7 @@ Item::Item()
|
||||
|
||||
|
||||
// !! IMPROVE ME
|
||||
// now we have Request::start_time and Request::start_tm
|
||||
// now we have Request::start_time and Request::start_date
|
||||
// we can somehow get the current time from the request
|
||||
// may setting the date should be completetly removed from here?
|
||||
void Item::SetDateToNow()
|
||||
|
11
core/log.cpp
11
core/log.cpp
@@ -227,16 +227,6 @@ return *this;
|
||||
}
|
||||
|
||||
|
||||
Log & Log::operator<<(const tm & tm_)
|
||||
{
|
||||
if( current_level <= log_level )
|
||||
{
|
||||
buffer << tm_;
|
||||
}
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
Log & Log::operator<<(const PT::Date & date)
|
||||
{
|
||||
@@ -249,6 +239,7 @@ return *this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Log & Log::operator<<(LogManipulators m)
|
||||
{
|
||||
switch(m)
|
||||
|
@@ -44,7 +44,6 @@ public:
|
||||
Log & operator<<(double s);
|
||||
Log & operator<<(const PT::Space & space);
|
||||
Log & operator<<(LogManipulators m);
|
||||
Log & operator<<(const tm & tm_);
|
||||
Log & operator<<(const PT::Date & date);
|
||||
|
||||
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user