7 #include <boost/iostreams/filtering_streambuf.hpp>
 
   8 #include <boost/iostreams/filter/bzip2.hpp>
 
  14   datread (const unsigned int& _blocksize, ostream *_log=NULL);
 
  16   int openFile (const string& filename);
 
  17   enum class Format {DAT, EDAT, SDAT};
 
  18   void * getHeader (const string& headerid);
 
  19   int readFullBlock (char *tmpData);
 
  21   string getParaString ();
 
  24   const unsigned int blocksize;
 
  28   boost::iostreams::filtering_istreambuf *inbuffer;
 
  30   int readDataToMem (char *tmpData, long unsigned int dataSize);
 
  33   vector< pair<unsigned long, void *> > headerStore;
 
  34   void deleteHeaderStore ();
 
  35   bool readAllHeaders ();
 
  36   static unsigned long hash(const string& str);