My Project
NeutronReadBinaryData.hh
00001 /*
00002 $Id: NeutronReadBinaryData.hh 1780 2007-06-14 04:40:33Z suzuki $
00003 */
00004 
00005 
00006 #ifndef NEUTRONREADBINARYDATA_HH
00007 #define NEUTRONREADBINARYDATA_HH
00008 #include "Header.hh"
00009 
00010 #include <sys/types.h>
00011 #include <sys/stat.h>
00012 
00013 #include "SwapBytes.hh"
00014 #include "CollectArchitecture.hh"
00015 #include "CppToPython.hh"
00016 
00018 
00030 template <class T> 
00031 class NeutronReadBinaryData
00032 {
00033 private:
00034   UInt4 SwapFlag;
00035 
00036 protected:
00037 
00038 public:
00039   NeutronReadBinaryData( string _SwapFlag="None" );
00061   vector<T> ReadData( string Filename );
00066   void PrintData( string FileName );
00071   vector< UInt4 >  PutUInt4Vector( string Filename );
00075   vector< Double > PutDoubleVector( string Filename );
00079   PyObject *PutDoubleList( string FileName );
00082   PyObject *PutUInt4List( string FileName );
00086   UInt8 ReadData( string FileName, T *&array );
00095 };
00096 
00097 #include "NeutronReadBinaryData.cc"
00098 
00099 #endif
 All Classes Functions Variables Friends