Wrapper stream class that reads pipes, text files or gzipped files.
More...
#include <szfstream.hpp>
Wrapper stream class that reads pipes, text files or gzipped files.
Definition at line 34 of file szfstream.hpp.
ucam::util::iszfstream::iszfstream |
( |
| ) |
|
|
inline |
ucam::util::iszfstream::iszfstream |
( |
const std::string & |
filename | ) |
|
|
inline |
Constructor with a file name. Opens the file.
Definition at line 58 of file szfstream.hpp.
ucam::util::iszfstream::iszfstream |
( |
const std::stringstream & |
ss | ) |
|
|
inline |
ucam::util::iszfstream::~iszfstream |
( |
| ) |
|
|
inline |
void ucam::util::iszfstream::close |
( |
| ) |
|
|
inline |
virtual int ucam::util::iszfstream::eof |
( |
| ) |
|
|
inlinevirtual |
iszfstream & ucam::util::iszfstream::getline |
( |
std::string & |
line | ) |
|
|
inlinevirtual |
std::istream* ucam::util::iszfstream::getStream |
( |
| ) |
|
|
inline |
bool ucam::util::iszfstream::is_open |
( |
| ) |
|
|
inline |
void ucam::util::iszfstream::open |
( |
const std::stringstream & |
ss | ) |
|
|
inline |
void ucam::util::iszfstream::open |
( |
const std::string & |
filename | ) |
|
|
inline |
Opens a file. using boost: using fdstream: All three cases are handled with zcat -f,, which is piped (i.e. handled by another processor).
- Parameters
-
filename | File name to be opened. |
Definition at line 86 of file szfstream.hpp.
virtual ucam::util::iszfstream::operator void * |
( |
| ) |
|
|
inlinevirtual |
Returns a pointer to itself or NULL if end-of-file reached.
Definition at line 164 of file szfstream.hpp.
Templated operator >> for streaming out of iszfstream.
Definition at line 190 of file szfstream.hpp.
The documentation for this class was generated from the following file: