Definition at line 789 of file RawDataSet.h. References ILOG_ERROR, mContainer, mContainerMap, mFile, mFileId, mFileKey, mFirstFileId, mHasFiles, mLastId, mLastKeyForWarning, mNrFiles, and NrDirs(). Referenced by Impala::Core::IDash::VideoSetWrapper::Add(), AddFile(), Impala::Application::Util::DoCreateImageSet(), Impala::Core::Trec::TrecTopic::GenerateDataSets(), Impala::Persistency::VideoSetRepositoryInMonet::Get(), Impala::Persistency::VideoSetRepositoryInFile::Get(), Impala::Persistency::ImageSetRepositoryInFile::Get(), Impala::Core::VideoSet::ExportStills::HandleNewFile(), Init(), Impala::Samples::MonetTest::MakeVideoSetMapi(), and Impala::Core::VideoSet::Keyframes::WriteImageSets(). 00790 { 00791 int key = -1; 00792 mContainerMap.Get(container, key); 00793 00794 if ((key != -1) && (mLastKeyForWarning != key) && 00795 (mLastKeyForWarning != -1)) 00796 { 00797 // This will cause Walkers to break down 00798 ILOG_ERROR("Files are not sorted by directory. " << mLastId << 00799 " container = " << container); 00800 return; 00801 } 00802 00803 if (id == -1) 00804 { 00805 id = mLastId; 00806 } 00807 else 00808 { 00809 for (int i=0 ; i<mFirstFileId.size() ; i++) 00810 if (mFirstFileId[i] == id) 00811 ILOG_ERROR("Id already in use: " << id << " file: " << file << " container: " << container); 00812 } 00813 00814 if (key == -1) 00815 { 00816 mContainer.push_back(container); 00817 mContainerMap.Add(container, mContainer.size()-1); 00818 mFirstFileId.push_back(id); 00819 mNrFiles.push_back(0); 00820 key = NrDirs() - 1; 00821 } 00822 mFileId.push_back(id); 00823 mFile.push_back(file); 00824 mLastKeyForWarning = key; 00825 mFileKey.push_back(key); 00826 mNrFiles[key] = mNrFiles[key] + 1; 00827 mLastId = id + 1; 00828 if (!file.empty()) 00829 mHasFiles = true; 00830 }
Here is the call graph for this function:
|