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

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

Definition at line 66 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().

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

Here is the call graph for this function:


Generated on Fri Mar 19 11:37:18 2010 for ImpalaSrc by  doxygen 1.5.1