Rosetta 3.3
Public Member Functions
utility::io::ocstream Class Reference

ocstream: Output channel stream wrapper class More...

#include <ocstream.hh>

Inheritance diagram for utility::io::ocstream:
Inheritance graph
[legend]
Collaboration diagram for utility::io::ocstream:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ocstream (std::ostream &o_stream_a)
 Constructor.
virtual ~ocstream ()
 Destructor.
 operator bool () const
 bool conversion
 operator std::ostream const & () const
 Stream conversion.
 operator std::ostream & ()
 Stream conversion.
template<typename T >
ocstreamoperator<< (T const &t)
 Stream output: override to preserve type of return value.
ocstreamoperator<< (manipulator m)
 Stream manipulator output.
ocstreamput (char const c)
 Write a char.
ocstreamwrite (char const *str, std::streamsize const count)
 Write a string.
ocstreamwrite (std::string const &str, std::streamsize const count)
 Write a string.
ocstreamflush ()
 Flush the stream.
void clear ()
 Clear the stream.
std::ostream const & operator() () const
 Stream access.
std::ostream & operator() ()
 Stream access.
std::ostream const & stream () const
 Stream access.
std::ostream & stream ()
 Stream access.
std::streambuf * rdbuf () const
 Pointer to the stream buffer.
bool good () const
 Good?
bool eof () const
 End of file?
bool fail () const
 Fail?
bool bad () const
 Bad?
bool compressed () const
 Compressed?
bool uncompressed () const
 Uncompressed?
bool gzipped () const
 gzipped?

Detailed Description

ocstream: Output channel stream wrapper class


Constructor & Destructor Documentation

utility::io::ocstream::ocstream ( std::ostream &  o_stream_a) [inline]

Constructor.

virtual utility::io::ocstream::~ocstream ( ) [inline, virtual]

Destructor.


Member Function Documentation

bool utility::io::ocstream::bad ( ) const [inline, virtual]

Bad?

Implements utility::io::orstream.

void utility::io::ocstream::clear ( ) [inline, virtual]

Clear the stream.

Implements utility::io::orstream.

bool utility::io::ocstream::compressed ( ) const [inline, virtual]

Compressed?

Implements utility::io::orstream.

bool utility::io::ocstream::eof ( ) const [inline, virtual]

End of file?

Implements utility::io::orstream.

bool utility::io::ocstream::fail ( ) const [inline, virtual]

Fail?

Implements utility::io::orstream.

ocstream& utility::io::ocstream::flush ( ) [inline, virtual]

Flush the stream.

Implements utility::io::orstream.

bool utility::io::ocstream::good ( ) const [inline, virtual]

Good?

Implements utility::io::orstream.

bool utility::io::ocstream::gzipped ( ) const [inline, virtual]

gzipped?

Implements utility::io::orstream.

utility::io::ocstream::operator bool ( ) const [inline, virtual]

bool conversion

Implements utility::io::orstream.

utility::io::ocstream::operator std::ostream & ( ) [inline, virtual]

Stream conversion.

Implements utility::io::orstream.

utility::io::ocstream::operator std::ostream const & ( ) const [inline, virtual]

Stream conversion.

Implements utility::io::orstream.

std::ostream const& utility::io::ocstream::operator() ( ) const [inline, virtual]

Stream access.

Implements utility::io::orstream.

std::ostream& utility::io::ocstream::operator() ( ) [inline, virtual]

Stream access.

Implements utility::io::orstream.

template<typename T >
ocstream& utility::io::ocstream::operator<< ( T const &  t) [inline]

Stream output: override to preserve type of return value.

Reimplemented from utility::io::orstream.

References sd::t.

ocstream& utility::io::ocstream::operator<< ( manipulator  m) [inline, virtual]

Stream manipulator output.

Implements utility::io::orstream.

ocstream& utility::io::ocstream::put ( char const  c) [inline, virtual]

Write a char.

Implements utility::io::orstream.

std::streambuf* utility::io::ocstream::rdbuf ( ) const [inline, virtual]

Pointer to the stream buffer.

Implements utility::io::orstream.

std::ostream& utility::io::ocstream::stream ( ) [inline, virtual]

Stream access.

Implements utility::io::orstream.

std::ostream const& utility::io::ocstream::stream ( ) const [inline, virtual]

Stream access.

Implements utility::io::orstream.

bool utility::io::ocstream::uncompressed ( ) const [inline, virtual]

Uncompressed?

Implements utility::io::orstream.

ocstream& utility::io::ocstream::write ( char const *  str,
std::streamsize const  count 
) [inline, virtual]

Write a string.

Implements utility::io::orstream.

ocstream& utility::io::ocstream::write ( std::string const &  str,
std::streamsize const  count 
) [inline, virtual]

Write a string.

Implements utility::io::orstream.

References get_pdb::count.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines