Arrived at given DB_FILE in a "normal" walk.
Reimplemented from Impala::Core::ImageSet::Listener. Definition at line 38 of file Archive.h. References Impala::Core::Array::Array2dTem< StorT, elemSize, ArithT >::CPB(), Impala::Util::Database::GetIOBuffer(), ILOG_ERROR, and mImList. 00039 { 00040 #ifndef REPOSITORY_USED // Here comes the deprecated stuff 00041 String fileName = is->GetFilePathImageData(fileId, false, false); 00042 Util::Database* db = is->GetDatabase(); 00043 Util::IOBuffer* ioBuf = db->GetIOBuffer(fileName, true, false, "", 0, 00044 true); 00045 if (!ioBuf) 00046 { 00047 ILOG_ERROR("Unable to open file " << fileName); 00048 return; 00049 } 00050 #else // REPOSITORY_USED 00051 Persistency::ImageLocator loc(is->GetLocator(), 00052 is->GetContainerDirOfFile(fileId), 00053 is->GetFile(fileId)); 00054 Util::IOBuffer* ioBuf = 00055 Persistency::ImageRepositoryInFile().GetReadBuffer(loc); 00056 #endif // REPOSITORY_USED 00057 00058 Int64 bufSize = ioBuf->Size(); 00059 ImType* bufIm = Array::ArrayCreate<ImType>(bufSize, 1); 00060 Int64 nrRead = ioBuf->Read(bufIm->CPB(), ioBuf->Size()); 00061 00062 mImList.push_back(bufIm); 00063 delete ioBuf; 00064 }
Here is the call graph for this function:
|