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

Impala::Core::Array::ImageArchiveFile::ImageArchiveFile ( Persistency::File  file  )  [inline]

Definition at line 31 of file ImageArchiveFile.h.

References Impala::Persistency::File::GetFileSystem(), Impala::Persistency::File::GetPath(), Impala::Persistency::File::GetReadBuffer(), ILOG_ERROR, Impala::Persistency::File::IsWritable(), mFileOffset, mIOBuffer, and Impala::Persistency::File::Valid().

00032     {
00033         mIOBuffer = 0;
00034         if (!file.Valid())
00035         {
00036             ILOG_ERROR("Invalid file");
00037             return;
00038         }
00039 
00040         mIOBuffer = file.GetReadBuffer();
00041         if (!mIOBuffer)
00042             return;
00043 
00044         Persistency::File idxFile(file.GetPath() + ".idx", file.GetFileSystem(),
00045                                   file.IsWritable());
00046         idxFile.ReadNative(std::back_inserter(mFileOffset), true);
00047         if (mFileOffset.size() == 0)
00048             ILOG_ERROR("Empty .idx file");
00049     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:17:19 2011 for ImpalaSrc by  doxygen 1.5.1