Start of a "normal" walk.
Reimplemented from Impala::Core::VideoSet::Listener. Definition at line 45 of file IndexAnnotation.h. References ILOG_ERROR, ILOG_INFO, Impala::Core::Table::AnnotationTableSet::MakeFromFile(), mAnnoExtra, mAnnoFrame, mAnnoShot, mConceptExtra, mConceptSet, mQuidExtra, mTotalNrAnno, mTotalNrAnnoPos, mTotalNrFrames, mTotalNrFramesPos, mTotalNrSingleFrame, mTotalNrSingleFramePos, and Impala::Core::Table::AnnotationTableSet::Size(). 00046 { 00047 #ifndef REPOSITORY_USED // Here comes the deprecated stuff 00048 mAnnoShot = Table::AnnotationTableSet::MakeFromFile(vs, mConceptSet, 00049 false, 0); 00050 mAnnoFrame = Table::AnnotationTableSet::MakeFromFile(vs, mConceptSet, 00051 false, 0); 00052 #else // REPOSITORY_USED 00053 Persistency::KeywordListLocator loc(vs->GetLocator(), mConceptSet); 00054 Table::KeywordList keyList = 00055 *(Persistency::KeywordListRepository().Get(loc)); 00056 mAnnoShot = new Table::AnnotationTableSet(keyList, 0); 00057 mAnnoFrame = new Table::AnnotationTableSet(keyList, 0); 00058 #endif // REPOSITORY_USED 00059 if (! (mAnnoShot && mAnnoFrame)) 00060 { 00061 ILOG_ERROR("Unable to read conceptSet"); 00062 } 00063 mAnnoExtra = 0; 00064 mQuidExtra = 0; 00065 if (!mConceptExtra.empty()) 00066 { 00067 ILOG_INFO("Reading extra : " << mConceptExtra); 00068 #ifndef REPOSITORY_USED // Here comes the deprecated stuff 00069 mAnnoExtra = Table::AnnotationTableSet::MakeFromFile(vs, 00070 mConceptExtra, 00071 false, 0); 00072 #else // REPOSITORY_USED 00073 loc.SetConceptSet(mConceptExtra); 00074 keyList = *(Persistency::KeywordListRepository().Get(loc)); 00075 mAnnoExtra = new Table::AnnotationTableSet(keyList, 0); 00076 #endif // REPOSITORY_USED 00077 if (!mAnnoExtra) 00078 { 00079 ILOG_ERROR("Unable to read conceptExtra"); 00080 } 00081 mQuidExtra = new Table::QuidTable(100); 00082 } 00083 int nr = mAnnoShot->Size(); 00084 mTotalNrAnno.resize(nr); 00085 mTotalNrSingleFrame.resize(nr); 00086 mTotalNrFrames.resize(nr); 00087 mTotalNrAnnoPos.resize(nr); 00088 mTotalNrSingleFramePos.resize(nr); 00089 mTotalNrFramesPos.resize(nr); 00090 }
Here is the call graph for this function:
|