11#include <OpenMS/config.h>
46 size_t read(
char* s,
size_t n);
53 bool streamEnd()
const;
69 void open(
const char* filename);
83 void* zip_archive_ =
nullptr;
84 void* zip_entry_ =
nullptr;
86 bool stream_at_end_ =
true;
Decompresses a single-entry ZIP archive for streaming reading.
Definition ZipIfstream.h:25
bool isOpen() const
returns whether a file is open.
Definition ZipIfstream.h:89
ZipIfstream(const char *filename)
Detailed constructor with filename.
void * zip_entry_
Definition ZipIfstream.h:84
virtual ~ZipIfstream()
Destructor.
ZipIfstream & operator=(const ZipIfstream &)=delete
void open(const char *filename)
opens a ZIP archive for reading from its single non-directory entry
void close()
closes current file.
bool stream_at_end_
true if end of entry is reached
Definition ZipIfstream.h:86
size_t read(char *s, size_t n)
Reads n bytes from the zip entry into buffer s.
ZipIfstream(ZipIfstream &&)=delete
ZipIfstream()
Default Constructor.
ZipIfstream(const ZipIfstream &)=delete
bool streamEnd() const
indicates whether the read function can be used safely
Definition ZipIfstream.h:94
ZipIfstream & operator=(ZipIfstream &&)=delete
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19