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

void Impala::Persistency::VideoSetRepositoryInMonet::Add ( const Locator loc,
VideoSet vidSet 
) [inline]

Definition at line 67 of file VideoSetRepositoryInMonet.h.

References Impala::FileNameBase(), Impala::Core::Database::RawDataSet::GetAsPath(), Impala::Persistency::RepositoryInMonetDB::GetConnection(), Impala::Persistency::Locator::GetDataSet(), Impala::Core::VideoSet::VideoSet::GetQuidVideo(), ILOG_INFO, Impala::MakeString(), Impala::Core::Database::RawDataSet::NrFiles(), and RepMonet().

00068     {
00069         Connection* conn = RepMonet().GetConnection(loc);
00070 
00071         String vidSetBase = FileNameBase(loc.GetDataSet());
00072         for (int i=0 ; i<vidSet->NrFiles() ; i++)
00073         {
00074             String file = vidSet->GetAsPath(i);
00075             Quid quid = vidSet->GetQuidVideo(i, true);
00076             // todo : get info from video
00077             //String q = "select i_add_video_file('" + vidSetBase + "', "
00078             //    + MakeString(quid) + ", '" + file
00079             //    + "', 352, 288, 25, -1, 'mpeg1', 'bitrate');";
00080             bool uniqueEvent = false;
00081             String evName = (uniqueEvent) ? vidSetBase + "_" + MakeString(quid)
00082                                           : FileNameBase(file);
00083             String q = "select i_add_video_file_event('" + vidSetBase + "', '"
00084                 + evName + "', 'no description', " + MakeString(quid) + ", '"
00085                 + file + "', 352, 288, true, 25, -1, 'mpeg1', 'bitrate');";
00086             ILOG_INFO("q = [" + q + "]");
00087             conn->Query(q, false, false);
00088         }
00089     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:23:55 2011 for ImpalaSrc by  doxygen 1.5.1