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

FileReadNative.h

Go to the documentation of this file.
00001 #ifndef Impala_Util_FileReadNative_h
00002 #define Impala_Util_FileReadNative_h
00003 
00004 #include "Util/IOBufferFile.h"
00005 
00006 namespace Impala
00007 {
00008 namespace Util
00009 {
00010 
00011 
00012 template<class BackInsertIterator>
00013 inline void
00014 FileReadNative(BackInsertIterator bi, String fileName)
00015 {
00016     typedef typename BackInsertIterator::container_type::value_type elem_type;
00017 
00018     IOBufferFile buf(fileName, true, true);
00019     while (buf.Available() > 0)
00020     {
00021         elem_type d;
00022         //f.NativeTypeRead(&d);
00023         buf.Read(&d, sizeof(d));
00024         *bi++ = d;
00025     }
00026 }
00027 
00028 } // namespace Util
00029 } // namespace Impala
00030 
00031 #endif

Generated on Fri Mar 19 09:31:46 2010 for ImpalaSrc by  doxygen 1.5.1