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

void Impala::Core::ImageSet::ImageSet::SetImageSrc ( bool  useArchive,
bool  useFileArchive,
bool  useSplitArchive 
) [inline]

Definition at line 96 of file ImageSet.h.

References GetArchive(), ILOG_INFO, mUseArchive, mUseFileArchive, mUseSplitArchive, Impala::Core::Database::RawDataSet::NrDirs(), and Impala::Timer::SplitTime().

Referenced by Impala::Core::ApplicationFactory::ApplicationFactory(), Impala::Application::WindowShowVidSet::InitData(), Impala::Application::WindowShowImSet::InitData(), Impala::Application::IDash::TrecEngine::LoadData(), Impala::Core::Trec::TrecTopic::LoadDataSets(), Impala::Application::mainImSet(), Impala::Application::WindowTrecResult::ReadData(), and Impala::Application::WindowImBrowse::WindowImBrowse().

00097     {
00098         mUseArchive = useArchive;
00099         mUseFileArchive = useFileArchive;
00100         mUseSplitArchive = useSplitArchive;
00101         if (mUseFileArchive)
00102             mUseArchive = true;
00103         if (mUseSplitArchive)
00104         {
00105             mUseFileArchive = true;
00106             mUseArchive = true;
00107         }
00108 
00109         if (mUseArchive)
00110         {
00111             String prefix("");
00112             if (mUseSplitArchive)
00113                 prefix = "split ";
00114             else if (mUseFileArchive)
00115                 prefix = "file ";
00116             ILOG_INFO("Reading " << prefix << "archive");
00117             Timer timer(1);
00118             if (mUseSplitArchive)
00119             {
00120                 for (int i=0 ; i<NrDirs() ; i++)
00121                 {
00122                     if (GetArchive(i) == 0)
00123                         mUseArchive = false;
00124                 }
00125                 return;
00126             }
00127             else
00128             {
00129                 if (GetArchive(0) == 0)
00130                     mUseArchive = false;
00131             }
00132             ILOG_INFO("time: " << timer.SplitTime());
00133         }
00134     }

Here is the call graph for this function:


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