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

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

Definition at line 329 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 GetImage(), GetImageData(), and SetImageSrc().

00330     {
00331         Array::ImageArchiveFile* res = 0;
00332         if (mArchives.GetElement(dirId, res))
00333             return res;
00334 
00335         if (mUseSplitArchive)
00336         {
00337             int fileId = GetFirstFileId(dirId);
00338             String fName = GetFilePathImageArchive(fileId, "images.raw", false,
00339                                                    false);
00340             if (fName.empty())
00341                 return 0;
00342             res = new Array::ImageArchiveFile(fName, !mUseFileArchive,
00343                                               GetDatabase());
00344             mArchives.AddElement(dirId, res);
00345             return res;
00346         }
00347         String fName = GetFilePathImageArchive(GetSetNameBase() + ".raw", false,
00348                                                false);
00349         if (fName.empty())
00350             return 0;
00351         res = new Array::ImageArchiveFile(fName, !mUseFileArchive, GetDatabase());
00352         mArchives.AddElement(0, res);
00353         return res;
00354     }

Here is the call graph for this function:


Generated on Fri Mar 19 11:14:32 2010 for ImpalaSrc by  doxygen 1.5.1