|
| ostreams () |
| Default constructor.
|
|
| ostreams (const std::string &fn, const FileExistsOp exo=EXISTS_FAIL) |
|
| ostreams (const std::vector< std::string > &fn, const FileExistsOp exo=EXISTS_FAIL) |
|
template<class Iter > |
| ostreams (Iter f_beg, Iter f_end, const FileExistsOp exo=EXISTS_FAIL) |
|
| ~ostreams () |
| Destructor.
|
|
void | set_enc_blocksize (const size_t bs) |
| Set the encoder block size for opening compressed files.
|
|
void | set_enc_blocksize (const RandomAccessGranularity g) |
| Set the encoder block size for opening compressed files using one of the presets.
|
|
std::ostream & | open_file (const std::string &fn, const FileExistsOp exo=EXISTS_FAIL, const ErrorCheck ec=ERRCHECK_AUTO) |
| Open a file, interpreting special file names and automatically set compression based on the file name. More...
|
|
std::ostream & | open_file (const std::string &fn, const Codec c, const FileExistsOp exo=EXISTS_FAIL, const ErrorCheck ec=ERRCHECK_AUTO) |
| Open a file, interpreting special file names. More...
|
|
template<class Iter > |
void | open_files (Iter f_beg, Iter f_end, const FileExistsOp exo=EXISTS_FAIL) |
| Open files, interpreting special file names and automatically set compression based on the file name.
|
|
std::ostream & | open_normalfile (const std::string &fn, const Codec c=CODEC_PLAIN, const FileExistsOp exists_op=EXISTS_FAIL, const ErrorCheck ec=ERRCHECK_AUTO) |
| Open a file with name fn.
|
|
std::ostream & | open_tempfile (const std::string &pathprefix, const std::string &rename_name, const Codec c=default_fastenc(), const FileExistsOp exists_op=EXISTS_FAIL, const ErrorCheck ec=ERRCHECK_AUTO) |
| Open a temporary file. More...
|
|
std::ostream & | open_tempfile (const std::string &pathprefix, const Codec c, const ErrorCheck ec=ERRCHECK_AUTO) |
| Open a temporary file that is deleted on destruct.
|
|
std::ostream & | open_tempfile (const std::string &pathprefix, const ErrorCheck ec=ERRCHECK_AUTO) |
| Open a temporary file using DEFAULT_FASTENC that is deleted on destruct.
|
|
std::ostream & | open_tmpdir_file (const std::string &fn_prefix, const Codec c, const ErrorCheck ec=ERRCHECK_AUTO) |
| Open a temporary file in the current temporary file directory that is deleted on destruct.
|
|
std::ostream & | open_tmpdir_file (const std::string &fn_prefix, const ErrorCheck ec=ERRCHECK_AUTO) |
| Open a temporary file int the current temporary file directory using DEFAULT_FASTENC in that is deleted on destruct.
|
|
std::ostream & | open_pipe (const std::string &command, const Codec c=CODEC_PLAIN, const ErrorCheck ec=ERRCHECK_AUTO) |
| Open a pipe.
|
|
std::ostream & | push_back (std::ostream &os, const std::string &name=std::string(), const Codec c=CODEC_PLAIN, const ErrorCheck ec=ERRCHECK_AUTO) |
| Add a stream.
|
|
void | add_codec (const size_t index, const Codec c, const ErrorCheck ec=ERRCHECK_AUTO) |
| Change compression type for the given stream.
|
|
void | write_error_check (const int index, const std::string &label=std::string()) |
| Check if the stream with the given index is in an error state, and if so throw an informative exception.
|
|
void | close_all () |
| Close all streams. The file informations and size() remain unaltered.
|
|
void | close_stream (const std::ostream *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.
|
|
size_t | size () const |
| Get the number of opened streams.
|
|
std::ostream & | operator[] (int n) |
| Get one of the opened streams.
|
|
std::ostream & | front () |
| Get the last of the opened streams.
|
|
std::ostream & | back () |
| Get the last of the opened streams.
|
|
const std::string & | get_streamname (const size_t i) const |
| Get the name of one of the opened streams.
|
|