X-Git-Url: http://git.treefish.org/~alex/phys/latlib.git/blobdiff_plain/061e6469f58f3e3e892f1cd1f6fdd2aad9c644e8..c819c7a5996c18a6b1c5501c1984245840ddc8ca:/datread.h 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;