|
| istreams () |
| Default constructor.
|
|
| istreams (const std::string &fn) |
| Construct and open a file.
|
|
| istreams (const std::vector< std::string > &fn) |
| Construct and open files.
|
|
template<class Iter > |
| istreams (Iter f_beg, Iter f_end) |
|
std::istream & | open_file (const std::string &fnam) |
| Open a file interpreting special file names and automatically select decompression method.
|
|
std::istream & | open_file (const std::string &fnam, const Codec c) |
| Open a file interpreting special file names and forcing a specific decompression method.
|
|
template<class Iter > |
void | open_files (Iter f_beg, Iter f_end) |
| Open files interpreting special file names and automatically select decompression method.
|
|
std::istream & | open_normalfile (const std::string &fn, const Codec c=CODEC_PLAIN) |
| Open a file with name fn.
|
|
std::istream & | push_back (std::istream &stream, const std::string &name=std::string(), const Codec c=CODEC_PLAIN) |
| Add a stream.
|
|
std::istream & | open_pipe (const std::string &command, const bool tolerant=false, const Codec c=CODEC_PLAIN) |
| Open a pipe.
|
|
void | add_codec (const size_t index, const Codec c) |
| Setup decompression type for the given stream.
|
|
void | read_error_check (const int index, const std::string &label=std::string()) |
| Check one of the streams for read errors.
|
|
void | read_error_check_rdbuf (const int index, const std::string &label=std::string()) |
| Check one of the streams for read errors after os<<is.rdbuf().
|
|
void | close_all () |
| Close all streams. The file informations and size() remain unaltered.
|
|
void | close_stream (const std::istream *const s) |
| Close the stream that corresponds to the pointer s.
|
|
void | close_stream (const size_t i) |
| Close one of the streams.
|
|
void | close_stream (const int i) |
| Close one of the streams.
|
|
void | use_mmap (const bool b) |
|
size_t | size () const |
| Get the number of opened streams.
|
|
std::istream & | operator[] (size_t n) |
| Get one of the streams.
|
|
std::istream & | front () |
| Get the first of the streams.
|
|
std::istream & | back () |
| Get the last of the streams.
|
|
uint64_t | get_streamsize (const size_t i) const |
| Get the size of one of the streams.
|
|
const std::string & | get_streamname (const size_t i) const |
| Get the (file) name of one of the streams.
|
|
bool | is_raw_seekable (const size_t i) const |
|
bool | is_stream_seekable (const size_t i) const |
|