Home || Visual Search || Applications || Architecture || Important Messages || OGL || Src

Array2dScalarUInt8* Impala::Persistency::ImageRepositoryInFile::GetImageData ( const ImageLocator loc  )  [inline]

Definition at line 41 of file ImageRepositoryInFile.h.

References Impala::Core::Array::Array2dTem< StorT, elemSize, ArithT >::CPB(), GetDir(), Impala::Persistency::RepositoryInFileSystem::GetFile(), Impala::Persistency::ImageLocator::GetName(), Impala::Persistency::File::GetReadBuffer(), ILOG_ERROR, Impala::Util::IOBuffer::Read(), RepFS(), Impala::Util::IOBuffer::Size(), and Impala::Persistency::File::Valid().

00042     {
00043         String dir = GetDir(loc);
00044         File file = RepFS().GetFile(loc, dir, loc.GetName(), false, false);
00045         if (!file.Valid())
00046             return 0;
00047 
00048         Util::IOBuffer* ioBuf = file.GetReadBuffer();
00049         Int64 bufSize = ioBuf->Size();
00050         Array2dScalarUInt8* bufIm =
00051             Core::Array::ArrayCreate<Array2dScalarUInt8>(bufSize, 1);
00052         Int64 nrRead = ioBuf->Read(bufIm->CPB(), bufSize);
00053         if (nrRead != bufSize)
00054             ILOG_ERROR("[GetImageData] Read failed");
00055         delete ioBuf;
00056         return bufIm;
00057     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:23:03 2011 for ImpalaSrc by  doxygen 1.5.1