|
a/src/rcldb/rcldoc.h |
|
b/src/rcldb/rcldoc.h |
|
... |
|
... |
46 |
// Binary or url-encoded url. No transcoding: this is used to access files
|
46 |
// Binary or url-encoded url. No transcoding: this is used to access files
|
47 |
// Index: computed by Db::add caller.
|
47 |
// Index: computed by Db::add caller.
|
48 |
// Query: from doc data.
|
48 |
// Query: from doc data.
|
49 |
string url;
|
49 |
string url;
|
50 |
|
50 |
|
51 |
// Transcoded version of the simple file name for SFN-prefixed
|
|
|
52 |
// specific file name indexing
|
|
|
53 |
// Index: set by DbIndexer::processone
|
|
|
54 |
string utf8fn;
|
|
|
55 |
|
|
|
56 |
// Internal path for multi-doc files. Ascii
|
51 |
// Internal path for multi-doc files. Ascii
|
57 |
// Set by FsIndexer::processone
|
52 |
// Set by FsIndexer::processone
|
58 |
string ipath;
|
53 |
string ipath;
|
59 |
|
54 |
|
60 |
// Mime type. Set by FileInterner::internfile
|
55 |
// Mime type. Set by FileInterner::internfile
|
|
... |
|
... |
121 |
unsigned long xdocid; // Opaque: rcldb doc identifier.
|
116 |
unsigned long xdocid; // Opaque: rcldb doc identifier.
|
122 |
|
117 |
|
123 |
///////////////////////////////////////////////////////////////////
|
118 |
///////////////////////////////////////////////////////////////////
|
124 |
void erase() {
|
119 |
void erase() {
|
125 |
url.erase();
|
120 |
url.erase();
|
126 |
utf8fn.erase();
|
|
|
127 |
ipath.erase();
|
121 |
ipath.erase();
|
128 |
mimetype.erase();
|
122 |
mimetype.erase();
|
129 |
fmtime.erase();
|
123 |
fmtime.erase();
|
130 |
dmtime.erase();
|
124 |
dmtime.erase();
|
131 |
origcharset.erase();
|
125 |
origcharset.erase();
|
|
... |
|
... |
146 |
{
|
140 |
{
|
147 |
map<string,string>::const_iterator it = meta.find(nm);
|
141 |
map<string,string>::const_iterator it = meta.find(nm);
|
148 |
if (it != meta.end()) {
|
142 |
if (it != meta.end()) {
|
149 |
if (value)
|
143 |
if (value)
|
150 |
*value = it->second;
|
144 |
*value = it->second;
|
|
|
145 |
return true;
|
|
|
146 |
} else {
|
|
|
147 |
return false;
|
|
|
148 |
}
|
|
|
149 |
}
|
|
|
150 |
bool peekmeta(const string& nm, const string **value = 0) const
|
|
|
151 |
{
|
|
|
152 |
map<string,string>::const_iterator it = meta.find(nm);
|
|
|
153 |
if (it != meta.end()) {
|
|
|
154 |
if (value)
|
|
|
155 |
*value = &(it->second);
|
151 |
return true;
|
156 |
return true;
|
152 |
} else {
|
157 |
} else {
|
153 |
return false;
|
158 |
return false;
|
154 |
}
|
159 |
}
|
155 |
}
|
160 |
}
|