QRawFileHandler.hh
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef __QRAWFILEHANDLER_HH_
00012 #define __QRAWFILEHANDLER_HH_
00013
00014 #include "QCuore.hh"
00015 #include "gzstream.hh"
00016
00017 class QRawFileHandler {
00018 public:
00019 QRawFileHandler(unsigned int, unsigned int);
00020
00021 virtual ~QRawFileHandler();
00022
00023 long GetData(long *databuff,unsigned long nsamples);
00024
00025 unsigned int GetSamplingRate() const {return fSamplingRate;}
00026
00027 private:
00028 igzstream fZFile;
00029 unsigned int fCh;
00030 unsigned int fRun;
00031 unsigned int fFileVersion;
00032 unsigned int fCurrentPartial;
00033 unsigned int fSamplingRate;
00034 std::string fReadFilesPath;
00035 std::string fFilePrefix;
00036
00037 bool ReadHeader();
00038 bool OpenFile();
00039 bool CloseFile();
00040 bool CheckForEOF();
00041
00042 };
00043 #endif