8 #include <boost/iostreams/filtering_streambuf.hpp>
9 #include <boost/iostreams/filter/bzip2.hpp>
15 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 unique_ptr<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);