Changeset 212 for Evidence/Evidence.cc
- Timestamp:
- 05/25/10 07:38:03 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Evidence/Evidence.cc
r209 r212 370 370 } 371 371 372 // Requests service history 372 // Requests service history (returns true if data received OK) 373 373 bool EvidenceHistory::GetHistory() { 374 374 375 375 DimRpcInfo R((char *) "ServiceHistory", NO_LINK); 376 376 R.setData((char *) Name.c_str()); 377 378 // Check if data OK 377 379 if (!EvidenceServer::ServiceOK(&R)) return false; 378 380 if (R.getSize() == 0) return false; 381 382 // Copy data to buffer 379 383 delete[] Buffer; 380 384 BufferSize = R.getSize(); … … 382 386 383 387 memcpy(Buffer, R.getData(), BufferSize); 384 Offset = *(int *) Buffer;388 Rewind(); 385 389 386 390 return true; … … 406 410 return true; 407 411 } 412 413 // Reset to start of buffer 414 void EvidenceHistory::Rewind() { 415 416 if (Buffer != NULL) Offset = *(int *) Buffer; 417 }
Note:
See TracChangeset
for help on using the changeset viewer.