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

template<class ArrayT>
void Impala::Core::Array::ReadFile ( ArrayT *&  dst,
String  fileName,
Util::Database *  db 
) [inline]

Definition at line 19 of file ReadFile.h.

References Impala::FileNameExt(), ILOG_ERROR, ILOG_VAR, ReadJpg(), ReadPng(), and ReadRaw().

00020 {
00021     ILOG_VAR(Impala.Core.Array.ReadFile);
00022     String nameExt = FileNameExt(fileName, true);
00023     if (nameExt == "raw")
00024         return ReadRaw(dst, fileName, db);
00025     if ((nameExt == "jpg") || (nameExt == "jpeg"))
00026         return ReadJpg(dst, fileName, db);
00027     if (nameExt == "png")
00028         return ReadPng(dst, fileName, db);
00029     ILOG_ERROR("Don't know how to read " << fileName);
00030 }

Here is the call graph for this function:


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