00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef QC_INTG_READER_H_
00021 #define QC_INTG_READER_H_
00022
00023
00024
00025 #include <stdio.h>
00026
00027
00028 #include "QCCommon.hpp"
00029
00035 class QCIntgReader
00036 {
00037
00039 public:
00040
00044 QCIntgReader (void);
00045
00046
00047
00051 ~QCIntgReader (void);
00055 void openFile (const string filename, const char * mode, const string path = "");
00059 void closeFile (void);
00063 void rewindFile (void) const { rewind(cinput); }
00067 void loadIntegrals (QCFloat *integrals, const size_t sizeofIntegral, const int& nbIntegrals) const {
00068 fread(integrals, sizeofIntegral, nbIntegrals, cinput);
00069 }
00071 protected:
00072
00073
00075 private:
00076
00079 public:
00080 protected:
00081 private:
00085 string inputPath;
00089 string filename;
00093 FILE * cinput;
00094
00095 };
00096
00097 #endif // QC_INTG_READER_H_