|
a/src/query/docseqhist.cpp |
|
b/src/query/docseqhist.cpp |
|
... |
|
... |
23 |
using std::list;
|
23 |
using std::list;
|
24 |
|
24 |
|
25 |
#include "docseqhist.h"
|
25 |
#include "docseqhist.h"
|
26 |
#include "rcldb.h"
|
26 |
#include "rcldb.h"
|
27 |
#include "fileudi.h"
|
27 |
#include "fileudi.h"
|
28 |
#include "internfile.h"
|
|
|
29 |
#include "base64.h"
|
28 |
#include "base64.h"
|
30 |
#include "debuglog.h"
|
29 |
#include "debuglog.h"
|
31 |
#include "smallut.h"
|
30 |
#include "smallut.h"
|
32 |
|
31 |
|
33 |
// Encode document history entry:
|
32 |
// Encode document history entry:
|
|
... |
|
... |
143 |
doc.ipath = "";
|
142 |
doc.ipath = "";
|
144 |
}
|
143 |
}
|
145 |
return ret;
|
144 |
return ret;
|
146 |
}
|
145 |
}
|
147 |
|
146 |
|
148 |
bool DocSequenceHistory::getEnclosing(Rcl::Doc& doc, Rcl::Doc& pdoc)
|
147 |
Rcl::Db *DocSequenceHistory::getDb()
|
149 |
{
|
148 |
{
|
150 |
string udi;
|
149 |
return m_db;
|
151 |
if (!FileInterner::getEnclosing(doc.url, doc.ipath, pdoc.url, pdoc.ipath,
|
|
|
152 |
udi))
|
|
|
153 |
return false;
|
|
|
154 |
bool dbret = m_db->getDoc(udi, pdoc);
|
|
|
155 |
return dbret && pdoc.pc != -1;
|
|
|
156 |
}
|
150 |
}
|
157 |
|
151 |
|
158 |
int DocSequenceHistory::getResCnt()
|
152 |
int DocSequenceHistory::getResCnt()
|
159 |
{
|
153 |
{
|
160 |
if (m_hlist.empty())
|
154 |
if (m_hlist.empty())
|