QCIntgReader.hpp

Go to the documentation of this file.
00001 //*****************************************************************************//
00002 //                                                                             //
00003 //   Copyright (c) 2001                                                        //
00004 //      INRIA                                                                  //
00005 //      54600 VILLERS LES NANCY                                                //
00006 //      France                                                                 //
00007 //                                                                             //
00008 //*****************************************************************************//
00009 //                                                                             //
00010 //               *** NOTICE OF PROPRIETARY INFORMATION ***                     //
00011 //                                                                             //
00012 // The information contained in this file is considered proprietary and the    //
00013 // exclusive property of  INRIA. This information may not be disclosed,        //
00014 // duplicated or used, in whole or in part, for  any purpose  whatsoever       //
00015 // without express written authorization from INRIA                            //
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_

Generated on Sat Jan 28 21:07:26 2006 for QC++ by  doxygen 1.4.4