X-Git-Url: http://git.treefish.org/~alex/phys/latlib.git/blobdiff_plain/b13049b02df74e31a311cf41eb0c61f1898ce77e..da120f552639e7e742161a2a4d6f88ca5277df8e:/datread.h?ds=inline diff --git a/datread.h b/datread.h index 8ef4b15..64fd850 100644 --- a/datread.h +++ b/datread.h @@ -3,6 +3,7 @@ #include #include +#include #include #include @@ -12,7 +13,6 @@ using namespace std; 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); @@ -25,7 +25,7 @@ class datread { ifstream infile; Format format; string parastring; - boost::iostreams::filtering_istreambuf *inbuffer; + unique_ptr inbuffer; ostream * const log; int readDataToMem (char *tmpData, long unsigned int dataSize); string filename;