00282 {
00283 //======================================================================00284 // Check if the number of records n is within the set limit. Return00285 // true if the limit has been exceeded. False if it has not.00286 //======================================================================00287 if (fRecordLimit<0) returnfalse; // No limit set00288 if (n>=fRecordLimit) returntrue;
00289 returnfalse;
00290 }

00293 {
00294 //======================================================================00295 // Check if the time limit for the job has been exceeded. Return true00296 // if the limit for the job has been exceeded. False if it has not.00297 //======================================================================00298 if (fTimeLimit<0.0) returnfalse; // No limit set00299
00300 time_t t = time(0);
00301 *tsec = t; // Return time used in seconds00302 if (difftime(t,fTimeStart) >= fTimeLimit) returntrue;
00303
00304 returnfalse;
00305 }