Definition at line 37 of file mainMonetTest.cpp. References Impala::Core::Database::RawDataSet::AddFile(), Impala::FileNameBase(), Impala::Core::VideoSet::VideoSet::GetQuidVideo(), ILOG_ERROR, ILOG_VAR, and Impala::QuidId(). Referenced by DoCheckVideoFiles(). 00038 { 00039 ILOG_VAR(Impala.Samples.MonetTest.MakeVideoSetMapi); 00040 00041 String vidSetBase = FileNameBase(vidSetName); 00042 String query = 00043 "select f.filename, f.quid \ 00044 from file f, video_set vs, video_sets vss \ 00045 where vss.set_name = '" + vidSetBase + "' and \ 00046 vs.video_sets_id = vss.video_sets_id and \ 00047 f.file_id = vs.file_id \ 00048 order by f.quid;"; 00049 00050 MapiHdl hdl = conn->QueryPartStart(query); 00051 if (hdl == 0) 00052 return 0; 00053 00054 std::vector<String> fName; 00055 if (!conn->QueryPartFetchString(hdl, 0, fName)) 00056 return 0; 00057 00058 Quid* quid = 0; 00059 int quidSize = 0; 00060 if (!conn->QueryPartFetchULL(hdl, 1, quid, quidSize)) 00061 return 0; 00062 00063 conn->QueryPartEnd(hdl); 00064 00065 VideoSet* vidSet = new VideoSet(0, vidSetName, false); 00066 for (int i=0 ; i<fName.size() ; i++) 00067 { 00068 int fileId = QuidId(quid[i]); 00069 vidSet->AddFile(fName[i], fileId); 00070 if (vidSet->GetQuidVideo(i, true) != quid[i]) 00071 ILOG_ERROR("Quid " << i << " doesn't match"); 00072 } 00073 delete quid; 00074 return vidSet; 00075 }
Here is the call graph for this function:
|