11 #include <OpenMS/config.h>
46 size_t read(
char * s,
size_t n);
53 bool streamEnd()
const;
65 void open(
const char * filename);
Decompresses files which are compressed in the gzip format (*.gzip)
Definition: GzipIfstream.h:21
bool isOpen() const
returns whether a file is open.
Definition: GzipIfstream.h:111
int gzerror_
saves the last returned error by the read function
Definition: GzipIfstream.h:97
GzipIfstream & operator=(const GzipIfstream &bzip2)
int n_buffer_
counts the last read duffer
Definition: GzipIfstream.h:95
gzFile gzfile_
a gzFile object(void*) . Necessary for decompression
Definition: GzipIfstream.h:93
void open(const char *filename)
opens a file for reading (decompression)
void close()
closes current file.
bool stream_at_end_
true if end of file is reached
Definition: GzipIfstream.h:99
GzipIfstream(const char *filename)
Detailed constructor with filename.
GzipIfstream(const GzipIfstream &bzip2)
not implemented
size_t read(char *s, size_t n)
Reads n bytes from the bzip2 compressed file into buffer s.
GzipIfstream()
Default Constructor.
virtual ~GzipIfstream()
Destructor.
bool streamEnd() const
indicates whether the read function can be used safely
Definition: GzipIfstream.h:116
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22