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

void Impala::Core::VideoJob::Reporter::WriteVideoSet ( Core::VideoSet::VideoSet videoSet  )  const [inline]

Definition at line 62 of file Reporter.h.

References Impala::Core::Database::RawDataSet::GetAsPath(), ILOG_ERROR, Impala::Core::Database::RawDataSet::NrFiles(), and Impala::StringReplaceAll().

Referenced by Impala::Core::VideoJob::Manager::ReportVideoSet().

00063     {
00064         std::ofstream output("videoset.xml");
00065         if (!output.is_open())
00066         {
00067             ILOG_ERROR("Unable to write video file report");
00068             return;
00069         }
00070 
00071         output << "<?xml version=\"1.0\" encoding=\"utf-8\"?>" << std::endl;
00072         output << "<?xml-stylesheet type=\"text/xsl\" href=\"videojobmanager.xslt\"?>" << std::endl;
00073         output << "<videoset>" << std::endl;
00074         int setSize = videoSet->NrFiles();
00075         for (int v = 0; v < setSize; v++)
00076         {
00077             String videoSpec = StringReplaceAll(videoSet->GetAsPath(v), "&",
00078                                                 "&amp;", false);
00079             output << "  <video id=\"" << v << "\" text=\"" << videoSpec
00080                    << "\" />" << std::endl;
00081         }
00082         output << "</videoset>" << std::endl;
00083         output.close();
00084     }

Here is the call graph for this function:


Generated on Fri Mar 19 11:27:57 2010 for ImpalaSrc by  doxygen 1.5.1