|
a/src/rcldb/rcldoc.h |
|
b/src/rcldb/rcldoc.h |
|
... |
|
... |
132 |
text.erase();
|
132 |
text.erase();
|
133 |
pc = 0;
|
133 |
pc = 0;
|
134 |
xdocid = 0;
|
134 |
xdocid = 0;
|
135 |
}
|
135 |
}
|
136 |
|
136 |
|
|
|
137 |
/** Get value for named field. If value pointer is 0, just test existence */
|
|
|
138 |
bool getmeta(const string& nm, string *value = 0) const
|
|
|
139 |
{
|
|
|
140 |
map<string,string>::const_iterator it = meta.find(nm);
|
|
|
141 |
if (it != meta.end()) {
|
|
|
142 |
if (value)
|
|
|
143 |
*value = it->second;
|
|
|
144 |
return true;
|
|
|
145 |
} else {
|
|
|
146 |
return false;
|
|
|
147 |
}
|
|
|
148 |
}
|
|
|
149 |
|
137 |
void dump(bool dotext=false) const;
|
150 |
void dump(bool dotext=false) const;
|
138 |
|
151 |
|
139 |
// The official names for recoll native fields when used in a text
|
152 |
// The official names for recoll native fields when used in a text
|
140 |
// context (ie: the python interface duplicates some of the fixed
|
153 |
// context (ie: the python interface duplicates some of the fixed
|
141 |
// fields in the meta array, these are the names used). Defined in
|
154 |
// fields in the meta array, these are the names used). Defined in
|