////////////////////////////////////////////////////////////////////////// GetData //////////////////////////////////////////////////////////////////////////
| 558 | // GetData |
| 559 | /////////////////////////////////////////////////////////////////////////////// |
| 560 | int8* cHierDatabaseIter::GetData(int32& length) const //throw (eArchive, eHierDatabase) |
| 561 | { |
| 562 | ASSERT(HasData()); |
| 563 | if (!HasData()) |
| 564 | { |
| 565 | throw eHierDatabase(_T("Attempt to get data from a node when HasData() is false")); |
| 566 | } |
| 567 | |
| 568 | // |
| 569 | // note that we can only get data for reading; perhaps in the future I will add |
| 570 | // support for retrieving data for writing as well. |
| 571 | // |
| 572 | return mpDb->GetDataForReading(cBlockRecordFile::tAddr(mIter->mData.mBlockNum, mIter->mData.mIndex), length); |
| 573 | } |
| 574 | |
| 575 | /////////////////////////////////////////////////////////////////////////////// |
| 576 | // HasData |
nothing calls this directly
no test coverage detected