37 #include <OpenMS/config.h>
72 size_t read(
char * s,
size_t n);
79 bool streamEnd()
const;
91 void open(
const char * filename);
Decompresses files which are compressed in the gzip format (*.gzip)
Definition: GzipIfstream.h:47
bool isOpen() const
returns whether a file is open.
Definition: GzipIfstream.h:137
int gzerror_
saves the last returned error by the read function
Definition: GzipIfstream.h:123
GzipIfstream & operator=(const GzipIfstream &bzip2)
int n_buffer_
counts the last read duffer
Definition: GzipIfstream.h:121
gzFile gzfile_
a gzFile object(void*) . Necessary for decompression
Definition: GzipIfstream.h:119
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:125
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:142
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:48