#include <ostream>
#include <fstream>
+#include <memory>
#include <boost/iostreams/filtering_streambuf.hpp>
#include <boost/iostreams/filter/bzip2.hpp>
class datread {
public:
datread (const unsigned int& _blocksize, ostream *_log=NULL);
- ~datread ();
int openFile (const string& filename);
enum class Format {DAT, EDAT, SDAT};
void * getHeader (const string& headerid);
ifstream infile;
Format format;
string parastring;
- boost::iostreams::filtering_istreambuf *inbuffer;
+ unique_ptr<boost::iostreams::filtering_istreambuf> inbuffer;
ostream * const log;
int readDataToMem (char *tmpData, long unsigned int dataSize);
string filename;