![]() |
Rosetta Utilities
2015.25
|
ocstream: Output channel stream wrapper class More...
#include <ocstream.hh>
Public Member Functions | |
| ocstream (std::ostream &o_stream_a) | |
| Constructor. More... | |
| virtual | ~ocstream () |
| Destructor. More... | |
| operator bool () const | |
| bool conversion More... | |
| operator std::ostream const & () const | |
| Stream conversion. More... | |
| operator std::ostream & () | |
| Stream conversion. More... | |
| template<typename T > | |
| ocstream & | operator<< (T const &t) |
| Stream output: override to preserve type of return value. More... | |
| ocstream & | operator<< (manipulator m) |
| Stream manipulator output. More... | |
| ocstream & | put (char const c) |
| Write a char. More... | |
| ocstream & | write (char const *str, std::streamsize const count) |
| Write a string. More... | |
| ocstream & | write (std::string const &str, std::streamsize const count) |
| Write a string. More... | |
| ocstream & | flush () |
| Flush the stream. More... | |
| void | clear () |
| Clear the stream. More... | |
| std::ostream const & | operator() () const |
| Stream access. More... | |
| std::ostream & | operator() () |
| Stream access. More... | |
| std::ostream const & | stream () const |
| Stream access. More... | |
| std::ostream & | stream () |
| Stream access. More... | |
| std::streambuf * | rdbuf () const |
| Pointer to the stream buffer. More... | |
| bool | good () const |
| Good? More... | |
| bool | eof () const |
| End of file? More... | |
| bool | fail () const |
| Fail? More... | |
| bool | bad () const |
| Bad? More... | |
| bool | compressed () const |
| Compressed? More... | |
| bool | uncompressed () const |
| Uncompressed? More... | |
| bool | gzipped () const |
| gzipped? More... | |
Public Member Functions inherited from utility::io::orstream | |
| virtual | ~orstream () |
| Destructor. More... | |
| template<typename T > | |
| orstream & | operator<< (T const &t) |
| Stream output. More... | |
Private Attributes | |
| std::ostream & | o_stream_ |
| Output stream reference. More... | |
Additional Inherited Members | |
Protected Types inherited from utility::io::orstream | |
| typedef std::ostream &(* | manipulator )(std::ostream &) |
Protected Member Functions inherited from utility::io::orstream | |
| orstream () | |
| Default constructor. More... | |
ocstream: Output channel stream wrapper class
|
inline |
Constructor.
|
inlinevirtual |
Destructor.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Compressed?
Implements utility::io::orstream.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Flush the stream.
Implements utility::io::orstream.
References o_stream_.
Referenced by utility::exit(), basic::options::initialize(), and utility::options::mpi_safe_std_err().
|
inlinevirtual |
|
inlinevirtual |
gzipped?
Implements utility::io::orstream.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inline |
Stream output: override to preserve type of return value.
References o_stream_.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Pointer to the stream buffer.
Implements utility::io::orstream.
References o_stream_.
Referenced by utility::file::gunzip(), and utility::file::gzip().
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Uncompressed?
Implements utility::io::orstream.
|
inlinevirtual |
|
inlinevirtual |
|
private |
Output stream reference.
Referenced by bad(), clear(), eof(), fail(), flush(), good(), operator bool(), operator std::ostream &(), operator std::ostream const &(), operator()(), operator<<(), put(), rdbuf(), stream(), and write().
1.8.7