Class OwnStream

class OwnStream : public Reference::Able

Redefines cerr and cout as attributes of the class.

Useful in multi-threaded applications: by simply inheriting this class, cerr and cout can be redirected to different files for different threads, or on an instance-by-instance basis.

Public Functions

OwnStream()

Default constructor.

OwnStream(const OwnStream&)

Copy constructor.

const OwnStream &operator=(const OwnStream&)

Assignment operator.

virtual void set_cout(std::ostream&) const

Set cout.

virtual void set_cerr(std::ostream&) const

Set cerr.