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

Array::ImageArchiveFile* Impala::Core::ImageSet::ImageSet::GetArchive ( int  dirId  )  [inline, private]

Definition at line 293 of file ImageSet.h.

References Impala::Core::Database::RawDataSet::GetDatabase(), Impala::Core::Database::RawDataSet::GetFilePathImageArchive(), Impala::Core::Database::RawDataSet::GetFirstFileId(), Impala::Core::Database::RawDataSet::GetSetNameBase(), mArchives, mUseFileArchive, and mUseSplitArchive.

Referenced by GetImageData(), and SetImageSrc().

00294     {
00295         Array::ImageArchiveFile* res = 0;
00296         if (mArchives.GetElement(dirId, res))
00297             return res;
00298 
00299         if (mUseSplitArchive)
00300         {
00301             int fileId = GetFirstFileId(dirId);
00302             String fName = GetFilePathImageArchive(fileId, "images.raw", false,
00303                                                    false);
00304             if (fName.empty())
00305                 return 0;
00306             res = new Array::ImageArchiveFile(fName, !mUseFileArchive,
00307                                               GetDatabase());
00308             mArchives.AddElement(dirId, res);
00309             return res;
00310         }
00311         String fName = GetFilePathImageArchive(GetSetNameBase() + ".raw", false,
00312                                                false);
00313         if (fName.empty())
00314             return 0;
00315         res = new Array::ImageArchiveFile(fName, !mUseFileArchive, GetDatabase());
00316         mArchives.AddElement(0, res);
00317         return res;
00318     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:20:00 2011 for ImpalaSrc by  doxygen 1.5.1