|
a/src/query/docseq.cpp |
|
b/src/query/docseq.cpp |
1 |
#ifndef lint
|
1 |
#ifndef lint
|
2 |
static char rcsid[] = "@(#$Id: docseq.cpp,v 1.8 2006-02-07 10:26:49 dockes Exp $ (C) 2005 J.F.Dockes";
|
2 |
static char rcsid[] = "@(#$Id: docseq.cpp,v 1.9 2006-09-13 14:57:56 dockes Exp $ (C) 2005 J.F.Dockes";
|
3 |
#endif
|
3 |
#endif
|
4 |
/*
|
4 |
/*
|
5 |
* This program is free software; you can redistribute it and/or modify
|
5 |
* This program is free software; you can redistribute it and/or modify
|
6 |
* it under the terms of the GNU General Public License as published by
|
6 |
* it under the terms of the GNU General Public License as published by
|
7 |
* the Free Software Foundation; either version 2 of the License, or
|
7 |
* the Free Software Foundation; either version 2 of the License, or
|
|
... |
|
... |
34 |
return -1;
|
34 |
return -1;
|
35 |
if (m_rescnt < 0) {
|
35 |
if (m_rescnt < 0) {
|
36 |
m_rescnt= m_db->getResCnt();
|
36 |
m_rescnt= m_db->getResCnt();
|
37 |
}
|
37 |
}
|
38 |
return m_rescnt;
|
38 |
return m_rescnt;
|
|
|
39 |
}
|
|
|
40 |
|
|
|
41 |
void DocSequenceDb::getTerms(list<string> &terms)
|
|
|
42 |
{
|
|
|
43 |
if (!m_db)
|
|
|
44 |
return;
|
|
|
45 |
m_db->getQueryTerms(terms);
|
39 |
}
|
46 |
}
|
40 |
|
47 |
|
41 |
bool DocSequenceHistory::getDoc(int num, Rcl::Doc &doc, int *percent,
|
48 |
bool DocSequenceHistory::getDoc(int num, Rcl::Doc &doc, int *percent,
|
42 |
string *sh)
|
49 |
string *sh)
|
43 |
{
|
50 |
{
|