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

FileWriteNative.h

Go to the documentation of this file.
00001 #ifndef Impala_Util_FileWriteNative_h
00002 #define Impala_Util_FileWriteNative_h
00003 
00004 #include "Util/IOBufferFile.h"
00005 
00006 namespace Impala
00007 {
00008 namespace Util
00009 {
00010 
00011 
00012 template <class Iterator>
00013 void
00014 FileWriteNative(std::string fileName, Iterator begin, Iterator end)
00015 {
00016     typedef typename Iterator::value_type elem_type;
00017 
00018     IOBufferFile f(fileName, false, false);
00019     for (Iterator it=begin ; it!=end ; it++)
00020     {
00021         //f.NativeTypeWrite(*it);
00022         elem_type d = *it;
00023         f.Write(&d, sizeof(d));
00024     }
00025 }
00026 
00027 } // namespace Util
00028 } // namespace Impala
00029 
00030 #endif

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