|
a/src/query/docseqdocs.h |
|
b/src/query/docseqdocs.h |
|
... |
|
... |
42 |
if (num < 0 || num >= int(m_docs.size()))
|
42 |
if (num < 0 || num >= int(m_docs.size()))
|
43 |
return false;
|
43 |
return false;
|
44 |
doc = m_docs[num];
|
44 |
doc = m_docs[num];
|
45 |
return true;
|
45 |
return true;
|
46 |
}
|
46 |
}
|
47 |
virtual Rcl::Db *getDb()
|
|
|
48 |
{
|
|
|
49 |
return m_db;
|
|
|
50 |
}
|
|
|
51 |
virtual int getResCnt()
|
47 |
virtual int getResCnt()
|
52 |
{
|
48 |
{
|
53 |
return m_docs.size();
|
49 |
return m_docs.size();
|
54 |
}
|
50 |
}
|
55 |
virtual string getDescription()
|
51 |
virtual string getDescription()
|
|
... |
|
... |
58 |
}
|
54 |
}
|
59 |
void setDescription(const string& desc)
|
55 |
void setDescription(const string& desc)
|
60 |
{
|
56 |
{
|
61 |
m_description = desc;
|
57 |
m_description = desc;
|
62 |
}
|
58 |
}
|
|
|
59 |
protected:
|
|
|
60 |
virtual Rcl::Db *getDb()
|
|
|
61 |
{
|
|
|
62 |
return m_db;
|
|
|
63 |
}
|
63 |
private:
|
64 |
private:
|
64 |
Rcl::Db *m_db;
|
65 |
Rcl::Db *m_db;
|
65 |
string m_description;
|
66 |
string m_description;
|
66 |
std::vector<Rcl::Doc> m_docs;
|
67 |
std::vector<Rcl::Doc> m_docs;
|
67 |
};
|
68 |
};
|