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

Impala::Core::ApplicationFactory::ApplicationFactory ( CmdOptions options  )  [inline]

Definition at line 29 of file ApplicationFactory.h.

References Impala::CmdOptions::GetArg(), Impala::Util::Database::GetFilePath(), Impala::Core::ImageSet::MakeImageSet(), Impala::Core::VideoSet::MakeVideoSet(), mDataSet, mOptions, mQuidClass, Impala::QUID_CLASS_FRAME, Impala::QUID_CLASS_IMAGE, and Impala::Core::ImageSet::ImageSet::SetImageSrc().

00030     {
00031         mOptions = options;
00032         String setName = mOptions->GetArg(0);
00033         Util::Database* db = new Util::Database(setName);
00034         String path = db->GetFilePath("ImageData", setName, false, true);
00035         if (! path.empty())
00036         {
00037             mQuidClass = QUID_CLASS_IMAGE;
00038             ImageSet::ImageSet* is = ImageSet::MakeImageSet(setName);
00039             is->SetImageSrc(true, true, true);
00040             mDataSet = is;
00041         }
00042         else
00043         {
00044             mQuidClass = QUID_CLASS_FRAME;
00045             mDataSet = VideoSet::MakeVideoSet(setName);
00046         }
00047         delete db;
00048     }

Here is the call graph for this function:


Generated on Fri Mar 19 10:55:41 2010 for ImpalaSrc by  doxygen 1.5.1