|
a/src/query/docseq.h |
|
b/src/query/docseq.h |
|
... |
|
... |
22 |
|
22 |
|
23 |
|
23 |
|
24 |
#include "rcldoc.h"
|
24 |
#include "rcldoc.h"
|
25 |
#include "refcntr.h"
|
25 |
#include "refcntr.h"
|
26 |
#include "hldata.h"
|
26 |
#include "hldata.h"
|
|
|
27 |
#include "ptmutex.h"
|
27 |
|
28 |
|
28 |
// Need this for the "Snippet" class def.
|
29 |
// Need this for the "Snippet" class def.
|
29 |
#include "rclquery.h"
|
30 |
#include "rclquery.h"
|
30 |
|
31 |
|
31 |
// A result list entry.
|
32 |
// A result list entry.
|
|
... |
|
... |
158 |
{
|
159 |
{
|
159 |
o_sort_trans = sort;
|
160 |
o_sort_trans = sort;
|
160 |
o_filt_trans = filt;
|
161 |
o_filt_trans = filt;
|
161 |
}
|
162 |
}
|
162 |
|
163 |
|
|
|
164 |
|
|
|
165 |
protected:
|
|
|
166 |
friend class DocSeqModifier;
|
163 |
virtual Rcl::Db *getDb() = 0;
|
167 |
virtual Rcl::Db *getDb() = 0;
|
164 |
|
168 |
static PTMutexInit o_dblock;
|
165 |
protected:
|
|
|
166 |
|
|
|
167 |
static std::string o_sort_trans;
|
169 |
static std::string o_sort_trans;
|
168 |
static std::string o_filt_trans;
|
170 |
static std::string o_filt_trans;
|
169 |
std::string m_reason;
|
171 |
std::string m_reason;
|
170 |
|
172 |
|
171 |
private:
|
173 |
private:
|
|
... |
|
... |
240 |
virtual RefCntr<DocSequence> getSourceSeq()
|
242 |
virtual RefCntr<DocSequence> getSourceSeq()
|
241 |
{
|
243 |
{
|
242 |
return m_seq;
|
244 |
return m_seq;
|
243 |
}
|
245 |
}
|
244 |
|
246 |
|
|
|
247 |
protected:
|
245 |
virtual Rcl::Db *getDb()
|
248 |
virtual Rcl::Db *getDb()
|
246 |
{
|
249 |
{
|
247 |
if (m_seq.isNull())
|
250 |
if (m_seq.isNull())
|
248 |
return 0;
|
251 |
return 0;
|
249 |
return m_seq->getDb();
|
252 |
return m_seq->getDb();
|
250 |
}
|
253 |
}
|
251 |
|
|
|
252 |
protected:
|
|
|
253 |
|
254 |
|
254 |
RefCntr<DocSequence> m_seq;
|
255 |
RefCntr<DocSequence> m_seq;
|
255 |
};
|
256 |
};
|
256 |
|
257 |
|
257 |
class RclConfig;
|
258 |
class RclConfig;
|