35 #ifndef OPENMS_FORMAT_BZIP2IFSTREAM_H 36 #define OPENMS_FORMAT_BZIP2IFSTREAM_H 38 #include <OpenMS/config.h> 71 size_t read(
char * s,
size_t n);
78 bool streamEnd()
const;
89 void open(
const char * filename);
116 return file_ != NULL;
121 return stream_at_end_;
125 #endif //OPENMS_FORMAT_BZIP2IFSTREAM_H bool stream_at_end_
true if end of file is reached
Definition: Bzip2Ifstream.h:106
int bzerror_
saves the last returned error by the read function
Definition: Bzip2Ifstream.h:104
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
bool isOpen() const
returns whether a file is open.
Definition: Bzip2Ifstream.h:114
FILE * file_
pointer to a FILE object. Necessary for opening the file
Definition: Bzip2Ifstream.h:98
Decompresses files which are compressed in the bzip2 format (*.bz2)
Definition: Bzip2Ifstream.h:47
bool streamEnd() const
indicates whether the read function can be used safely
Definition: Bzip2Ifstream.h:119
size_t n_buffer_
counts the last read buffer
Definition: Bzip2Ifstream.h:102
BZFILE * bzip2file_
a pointer to a BZFILE object. Necessary for decompression
Definition: Bzip2Ifstream.h:100