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

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

Definition at line 109 of file ImageSet.h.

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

Referenced by Impala::Core::Training::Factory::Factory(), 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().

00111     {
00112         mUseArchive = useArchive;
00113         mUseFileArchive = useFileArchive;
00114         mUseSplitArchive = useSplitArchive;
00115         if (mUseFileArchive)
00116             mUseArchive = true;
00117         if (mUseSplitArchive)
00118         {
00119             mUseFileArchive = true;
00120             mUseArchive = true;
00121         }
00122 
00123         if (mUseArchive)
00124         {
00125             String prefix("");
00126             if (mUseSplitArchive)
00127                 prefix = "split ";
00128             else if (mUseFileArchive)
00129                 prefix = "file ";
00130             ILOG_INFO("Reading " << prefix << "archive");
00131             
00132             if (!skipArchiveCheck)
00133             {
00134                 Timer timer(1);
00135                 if (mUseSplitArchive)
00136                 {
00137                     for (int i=0 ; i<NrDirs() ; i++)
00138                     {
00139                         if (GetArchive(i) == 0)
00140                             mUseArchive = false;
00141                     }
00142                     return;
00143                 }
00144                 else
00145                 {
00146                     if (GetArchive(0) == 0)
00147                         mUseArchive = false;
00148                 }
00149                 ILOG_INFO("time: " << timer.SplitTime());
00150             }
00151 
00152         }
00153     }

Here is the call graph for this function:


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