X-Git-Url: http://git.treefish.org/~alex/phys/latlib.git/blobdiff_plain/c819c7a5996c18a6b1c5501c1984245840ddc8ca..HEAD:/datread.h diff --git a/datread.h b/datread.h index 64fd850..802ec17 100644 --- a/datread.h +++ b/datread.h @@ -4,6 +4,7 @@ #include #include #include +#include #include #include @@ -12,9 +13,10 @@ using namespace std; class datread { public: + ~datread (); datread (const unsigned int& _blocksize, ostream *_log=NULL); int openFile (const string& filename); - enum class Format {DAT, EDAT, SDAT}; + enum Format {DAT, EDAT, SDAT}; void * getHeader (const string& headerid); int readFullBlock (char *tmpData); bool fisopen (); @@ -25,7 +27,7 @@ class datread { ifstream infile; Format format; string parastring; - unique_ptr inbuffer; + boost::iostreams::filtering_istreambuf *inbuffer; ostream * const log; int readDataToMem (char *tmpData, long unsigned int dataSize); string filename;