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

void Impala::Core::Array::ImageArchiveMapi::Init ( Quid  vidQuid,
Link::Monet::Connection *  conn 
) [inline, private]

Definition at line 100 of file ImageArchiveMapi.h.

References ILOG_ERROR, Impala::MakeString(), mConn, mFrameImageId, mNrImages, and Impala::QuidValid().

Referenced by ImageArchiveMapi().

00101     {
00102         mConn = conn;
00103         mNrImages = 0;
00104         mFrameImageId = 0;
00105 
00106         if ((conn == 0) || (!conn->Valid()))
00107         {
00108             ILOG_ERROR("No valid connection given");
00109             return;
00110         }
00111         if (!QuidValid(vidQuid))
00112         {
00113             ILOG_ERROR("Invalid video Quid");
00114             return;
00115         }
00116 
00117         String query =
00118             "select fi.frame_image_id \
00119              from   frame_image fi, fragment f, media m \
00120              where  m.identifier = " + MakeString(vidQuid) + " and \
00121                     f.media_id = m.media_id and \
00122                     fi.fragment_id = f.fragment_id \
00123              order by f.fragment_start;";
00124 
00125         MapiHdl hdl = mConn->QueryPartStart(query);
00126         if (hdl == 0)
00127             return;
00128 
00129         if (!mConn->QueryPartFetchInt(hdl, 0, mFrameImageId, mNrImages))
00130             return;
00131 
00132         conn->QueryPartEnd(hdl);
00133     }

Here is the call graph for this function:


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