00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef QC_INTG_WRITER_H_
00021 #define QC_INTG_WRITER_H_
00022
00023
00024
00025 #include <stdio.h>
00026 #include "QCCommon.hpp"
00027
00028
00029
00035 class QCIntgWriter
00036 {
00037
00039 public:
00040
00041
00045 QCIntgWriter (void);
00046
00047
00051 ~QCIntgWriter (void);
00055 void openFile (const string filename, const char * mode, const string path = "");
00059 void closeFile (void);
00063 void storeIntegrals (const QCFloat *integrals, const size_t sizeofIntegral, const int& nbIntegrals) const {
00064
00065 fwrite(integrals, sizeofIntegral, nbIntegrals, coutput);
00066 };
00067
00068
00069
00071 protected:
00072
00073
00075 private:
00076
00077
00078
00081 public:
00082 protected:
00083 private:
00084
00088 string outputPath;
00092 string filename;
00096 FILE * coutput;
00097 };
00098
00099 #endif // QC_INTG_WRITER_H_