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:
parent
08a0a36dfd
commit
48b5c167bf
|
@ -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)
|
const char * DbTextStream::ConvertTime(const tm & t)
|
||||||
{
|
{
|
||||||
|
|
|
@ -151,6 +151,7 @@ public:
|
||||||
DbTextStream & operator<<(double);
|
DbTextStream & operator<<(double);
|
||||||
DbTextStream & operator<<(const void *);
|
DbTextStream & operator<<(const void *);
|
||||||
DbTextStream & operator<<(const tm & t);
|
DbTextStream & operator<<(const tm & t);
|
||||||
|
DbTextStream & operator<<(const std::vector<long> & tabid);
|
||||||
|
|
||||||
|
|
||||||
static const char * ConvertTime(const tm & t);
|
static const char * ConvertTime(const tm & t);
|
||||||
|
|
Loading…
Reference in New Issue