fixed: when demonizing there were some logs info put twice in the log file

now we first demonize (fork) and then open the log file
added: start adding support for PT::Date 
       we are using instead of tz system structure



git-svn-id: svn://ttmath.org/publicrep/winix/trunk@836 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2012-05-19 15:14:35 +00:00
parent 67099d5d06
commit 0df088e1e2
26 changed files with 1055 additions and 961 deletions

View File

@@ -76,13 +76,13 @@ DbTextStream & DbTextStream::PutText(const std::wstring & str)
DbTextStream & DbTextStream::operator<<(const RawText<const char*> & raw)
DbTextStream & DbTextStream::operator<<(RawText<const char*> raw)
{
return PutText(raw.par);
}
DbTextStream & DbTextStream::operator<<(const RawText<const wchar_t*> & raw)
DbTextStream & DbTextStream::operator<<(RawText<const wchar_t*> raw)
{
return PutText(raw.par);
}
@@ -194,7 +194,7 @@ return *this;
}
DbTextStream & DbTextStream::operator<<(const RawText<tm> & t)
DbTextStream & DbTextStream::operator<<(RawText<tm> t)
{
buffer += ConvertTime(t.par);
was_param = false;
@@ -203,6 +203,14 @@ return *this;
}
DbTextStream & DbTextStream::operator<<(RawText<PT::Date> date)
{
date.par.Serialize(*this);
was_param = false;
return *this;
}
@@ -591,5 +599,17 @@ return *this;
}
DbTextStream & DbTextStream::operator<<(const PT::Date & date)
{
if( was_param )
buffer += ", ";
buffer += '\'';
date.Serialize(*this);
buffer += '\'';
was_param = true;
return *this;
}