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

template<class ArrayT>
bool Impala::Core::Array::WriteFile ( ArrayT *  src,
Persistency::File  file 
) [inline]

Definition at line 19 of file WriteFile.h.

References Impala::FileNameExt(), Impala::Persistency::File::GetPath(), ILOG_ERROR, ILOG_VAR, WriteJpg(), WritePng(), and WriteRaw().

Referenced by Impala::Persistency::ImageRepositoryInFile::Add(), and Impala::Persistency::FrameRepositoryInFile::Add().

00020 {
00021     ILOG_VAR(Impala.Core.Array.WriteFile);
00022     String nameExt = FileNameExt(file.GetPath(), true);
00023     if (nameExt == "raw")
00024     {
00025         WriteRaw(src, file, true);
00026         return true;
00027     }
00028     if (nameExt == "jpg")
00029         return WriteJpg(src, file);
00030     if (nameExt == "png")
00031         return WritePng(src, file);
00032     ILOG_ERROR("Don't know how to write " << file.GetPath());
00033     return false;
00034 }

Here is the call graph for this function:


Generated on Fri Mar 19 10:58:50 2010 for ImpalaSrc by  doxygen 1.5.1