233 } |
233 } |
234 |
234 |
235 |
235 |
236 void cpix_Hits_doc(cpix_Hits * thisHits, |
236 void cpix_Hits_doc(cpix_Hits * thisHits, |
237 int32_t index, |
237 int32_t index, |
238 cpix_Document * target) |
238 cpix_Document ** target, |
239 { |
239 int32_t count ) |
240 Cpix::Document |
240 { |
241 * pDoc = XlateExc(thisHits, |
241 |
|
242 int result = XlateExc(thisHits, |
242 Caller(thisHits, |
243 Caller(thisHits, |
243 &Cpix::IHits::getDocument, |
244 &Cpix::IHits::resetDocumentCache, |
244 index)); |
245 index, |
245 if (cpix_Succeeded(thisHits)) |
246 count)); |
246 { |
247 |
247 target->ptr_ = pDoc; |
248 for (int32_t i = 0; i < count && i < result ; i++) { |
248 target->err_ = NULL; |
249 Cpix::Document |
249 |
250 * pDoc = XlateExc(thisHits, |
250 // TEMP (?) post-condition code |
251 Caller(thisHits, |
251 if (target->ptr_ == NULL) |
252 &Cpix::IHits::getDocument, |
252 { |
253 index++)); |
253 thisHits->err_ |
254 if (cpix_Succeeded(thisHits)) |
254 = CreateError(ET_CPIX_EXC, |
255 { |
255 L"PANIC PANIC PANIC - NULL doc returned without any error message!"); |
256 target[i]->ptr_ = pDoc; |
256 } |
257 target[i]->err_ = NULL; |
|
258 |
|
259 // TEMP (?) post-condition code |
|
260 if (target[i]->ptr_ == NULL) |
|
261 { |
|
262 thisHits->err_ |
|
263 = CreateError(ET_CPIX_EXC, |
|
264 L"PANIC PANIC PANIC - NULL doc returned without any error message!"); |
|
265 } |
|
266 //target ++; |
|
267 } |
257 } |
268 } |
258 } |
269 } |
259 |
270 |
260 |
271 |
261 /* OBS |
272 /* OBS |