added to db stream: DbTextStream::operator<<(const std::vector<long> & tabid)

git-svn-id: svn://ttmath.org/publicrep/winix/trunk@782 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
Tomasz Sowa 2011-12-08 22:01:19 +00:00
parent 08a0a36dfd
commit 48b5c167bf
2 changed files with 23 additions and 0 deletions

View File

@ -535,6 +535,28 @@ return *this;
}
DbTextStream & DbTextStream::operator<<(const std::vector<long> & tabid)
{
if( was_param )
buffer += ", ";
buffer += '(';
for(size_t i=0 ; i<tabid.size(); ++i)
{
TextStream<std::string>::operator<<(tabid[i]);
if( i + 1 < tabid.size() )
buffer += ',';
}
buffer += ')';
was_param = true;
return *this;
}
const char * DbTextStream::ConvertTime(const tm & t)
{

View File

@ -151,6 +151,7 @@ public:
DbTextStream & operator<<(double);
DbTextStream & operator<<(const void *);
DbTextStream & operator<<(const tm & t);
DbTextStream & operator<<(const std::vector<long> & tabid);
static const char * ConvertTime(const tm & t);