Rosetta  2020.37
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Types | Protected Member Functions | Private Member Functions | List of all members
utility::io::orstream Class Referenceabstract

orstream: Output stream wrapper base class More...

#include <orstream.hh>

Inheritance diagram for utility::io::orstream:
Inheritance graph
[legend]

Public Member Functions

virtual ~orstream ()
 Destructor. More...
 
virtual operator bool () const =0
 bool conversion More...
 
virtual operator std::ostream const & () const =0
 Stream conversion. More...
 
virtual operator std::ostream & ()=0
 Stream conversion. More...
 
template<typename T >
orstreamoperator<< (T const &t)
 Stream output. More...
 
virtual orstreamoperator<< (manipulator m)=0
 Stream manipulator output. More...
 
virtual orstreamflush ()=0
 Flush the stream. More...
 
virtual void clear ()=0
 Clear the stream. More...
 
virtual orstreamput (char const c)=0
 Write a char. More...
 
virtual orstreamwrite (char const *str, std::streamsize const count)=0
 Write a string. More...
 
virtual orstreamwrite (std::string const &str, std::streamsize const count)=0
 Write a string. More...
 
virtual std::ostream const & operator() () const =0
 Stream access. More...
 
virtual std::ostream & operator() ()=0
 Stream access. More...
 
virtual std::ostream const & stream () const =0
 Stream access. More...
 
virtual std::ostream & stream ()=0
 Stream access. More...
 
virtual std::streambuf * rdbuf () const =0
 Pointer to the stream buffer. More...
 
virtual bool good () const =0
 Good? More...
 
virtual bool eof () const =0
 End of file? More...
 
virtual bool fail () const =0
 Fail? More...
 
virtual bool bad () const =0
 Bad? More...
 
virtual bool compressed () const =0
 Compressed? More...
 
virtual bool uncompressed () const =0
 Uncompressed? More...
 
virtual bool gzipped () const =0
 gzipped? More...
 

Protected Types

typedef std::ostream &(* manipulator )(std::ostream &)
 

Protected Member Functions

 orstream ()=default
 Default constructor. More...
 

Private Member Functions

 orstream (orstream const &)
 Copy constructor: Undefined. More...
 
orstreamoperator= (orstream const &)
 Copy assignment: Undefined. More...
 

Detailed Description

orstream: Output stream wrapper base class

Member Typedef Documentation

typedef std::ostream&(* utility::io::orstream::manipulator)(std::ostream &)
protected

Constructor & Destructor Documentation

virtual utility::io::orstream::~orstream ( )
inlinevirtual

Destructor.

utility::io::orstream::orstream ( )
inlineprotecteddefault

Default constructor.

utility::io::orstream::orstream ( orstream const &  )
private

Copy constructor: Undefined.

Member Function Documentation

virtual bool utility::io::orstream::bad ( ) const
pure virtual

Bad?

Implemented in utility::io::ozstream, and utility::io::ocstream.

virtual void utility::io::orstream::clear ( )
pure virtual

Clear the stream.

Implemented in utility::io::ozstream, and utility::io::ocstream.

virtual bool utility::io::orstream::compressed ( ) const
pure virtual

Compressed?

Implemented in utility::io::ozstream, and utility::io::ocstream.

virtual bool utility::io::orstream::eof ( ) const
pure virtual

End of file?

Implemented in utility::io::ozstream, and utility::io::ocstream.

virtual bool utility::io::orstream::fail ( ) const
pure virtual

Fail?

Implemented in utility::io::ozstream, and utility::io::ocstream.

virtual orstream& utility::io::orstream::flush ( )
pure virtual

Flush the stream.

Implemented in utility::io::ozstream, and utility::io::ocstream.

virtual bool utility::io::orstream::good ( ) const
pure virtual

Good?

Implemented in utility::io::ozstream, and utility::io::ocstream.

virtual bool utility::io::orstream::gzipped ( ) const
pure virtual

gzipped?

Implemented in utility::io::ozstream, and utility::io::ocstream.

virtual utility::io::orstream::operator bool ( ) const
pure virtual

bool conversion

Implemented in utility::io::ozstream, and utility::io::ocstream.

virtual utility::io::orstream::operator std::ostream & ( )
pure virtual

Stream conversion.

Implemented in utility::io::ozstream, and utility::io::ocstream.

virtual utility::io::orstream::operator std::ostream const & ( ) const
pure virtual

Stream conversion.

Implemented in utility::io::ozstream, and utility::io::ocstream.

virtual std::ostream const& utility::io::orstream::operator() ( ) const
pure virtual

Stream access.

Implemented in utility::io::ozstream, and utility::io::ocstream.

virtual std::ostream& utility::io::orstream::operator() ( )
pure virtual

Stream access.

Implemented in utility::io::ozstream, and utility::io::ocstream.

template<typename T >
orstream& utility::io::orstream::operator<< ( T const &  t)
inline

Stream output.

References stream(), and basic::options::OptionKeys::in::file::t.

virtual orstream& utility::io::orstream::operator<< ( manipulator  m)
pure virtual

Stream manipulator output.

Implemented in utility::io::ozstream, and utility::io::ocstream.

orstream& utility::io::orstream::operator= ( orstream const &  )
private

Copy assignment: Undefined.

virtual orstream& utility::io::orstream::put ( char const  c)
pure virtual

Write a char.

Implemented in utility::io::ozstream, and utility::io::ocstream.

virtual std::streambuf* utility::io::orstream::rdbuf ( ) const
pure virtual

Pointer to the stream buffer.

Implemented in utility::io::ozstream, and utility::io::ocstream.

virtual std::ostream const& utility::io::orstream::stream ( ) const
pure virtual

Stream access.

Implemented in utility::io::ozstream, and utility::io::ocstream.

Referenced by operator<<().

virtual std::ostream& utility::io::orstream::stream ( )
pure virtual

Stream access.

Implemented in utility::io::ozstream, and utility::io::ocstream.

virtual bool utility::io::orstream::uncompressed ( ) const
pure virtual

Uncompressed?

Implemented in utility::io::ozstream, and utility::io::ocstream.

virtual orstream& utility::io::orstream::write ( char const *  str,
std::streamsize const  count 
)
pure virtual

Write a string.

Implemented in utility::io::ozstream, and utility::io::ocstream.

virtual orstream& utility::io::orstream::write ( std::string const &  str,
std::streamsize const  count 
)
pure virtual

Write a string.

Implemented in utility::io::ozstream, and utility::io::ocstream.


The documentation for this class was generated from the following file: