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

virtual void Impala::Core::VideoSet::ExportFrameHashes::HandleDoneFile ( VideoSet vs,
int  fileId,
Stream::RgbDataSrc src 
) [inline, virtual]

Completed given DB_FILE in a "normal" walk.

Reimplemented from Impala::Core::VideoSet::Listener.

Definition at line 72 of file ExportFrameHashes.h.

References Impala::Util::Database::GetIOBuffer(), mFrameHashes, and Impala::Util::Write().

00073     {
00074 #ifndef REPOSITORY_USED // Here comes the deprecated stuff
00075         String videoName = vs->GetFile(fileId);
00076         bool toWrite = true;
00077         bool silent = true;
00078         String fileName = "hashes.tab";
00079         String filePath = vs->GetFilePathFrames(fileId, fileName, toWrite, 
00080                                                 silent);
00081         bool readMode = false;
00082         bool useMem = false;
00083         Util::Database* db = vs->GetDatabase();
00084         Util::IOBuffer* buffer = db->GetIOBuffer(filePath, readMode, useMem, 
00085                                                  "tmp");
00086         bool binary = true;
00087         Core::Table::Write(mFrameHashes, buffer, binary);
00088         delete buffer;
00089 #else // REPOSITORY_USED
00090         String container = vs->GetContainer(fileId);
00091         Persistency::FrameHashesLocator loc(vs->GetLocator(), container);
00092         Persistency::FrameHashesRepository().Add(loc, mFrameHashes);
00093 #endif // REPOSITORY_USED
00094         delete mFrameHashes;
00095         mFrameHashes = 0;
00096     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:21:50 2011 for ImpalaSrc by  doxygen 1.5.1