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

bool Impala::Visualization::TimeLineViewStrip::ViewStripOpenRawFile ( std::string  fName,
bool  useMemory = false 
) [inline]

Definition at line 108 of file TimeLineViewStrip.h.

References Impala::Core::Stream::RgbDataSrcFactory::Construct(), Impala::FileExists(), Impala::CmdOptions::GetInstance(), Impala::CmdOptions::GetString(), ILOG_ERROR, Impala::Core::Stream::RgbDataSrcFactory::Instance(), mRgbDataSrc, Impala::Core::Stream::RgbDataSrc::Valid(), and ViewStripRgbDataSrc().

00109     {
00110         if (!FileExists(fName))
00111         {
00112             ILOG_ERROR("Reading: [" + fName + "] !! does not exist");
00113             return false;
00114         }
00115         if (mRgbDataSrc)
00116             delete mRgbDataSrc;
00117         mRgbDataSrc = 0;
00118 
00119 #ifndef REPOSITORY_USED
00120         RgbDataSrcRaw* src = new RgbDataSrcRaw(fName,useMemory);
00121 #else
00122         CmdOptions& options = CmdOptions::GetInstance();
00123         String typeStr = options.GetString("TimeLineViewStripRgbSrc");
00124         if (typeStr.empty())
00125             typeStr = "raw";
00126         Persistency::RgbDataSrcLocator loc("dot", fName, options);
00127         RgbDataSrcFactory& factory = RgbDataSrcFactory::Instance();
00128         RgbDataSrc* src = factory.Construct(loc, typeStr);
00129 #endif
00130         if (!src->Valid())
00131         {
00132             ILOG_ERROR("Reading [" + fName + "] failed");
00133             delete src;
00134             return false;
00135         }
00136         ViewStripRgbDataSrc(src);
00137         return true;
00138     }

Here is the call graph for this function:


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