Library of Assembled Shared Sources
lass::io::ProxyMan Class Reference

manages the four proxy streams. More...

#include <proxy_man.h>

Inheritance diagram for lass::io::ProxyMan:
Collaboration diagram for lass::io::ProxyMan:

Detailed Description

manages the four proxy streams.

Date
2003

Lass has four proxy streams that replace the regular std streams and lass::io::ProxyMan owns them You can access these streams by three manners:

  • through the four member functions lass::io::ProxyMan::cout(), lass::io::ProxyMan::clog(), lass::io::ProxyMan::cerr() and lass::io::ProxyMan::cin() which return pointers to these streams.
  • through the four free functions lass::io::cout(), lass::io::cerr(), lass::io::clog() and lass::io::cin() which return references to these streams
  • by the four macros LASS_COUT, LASS_CERR, LASS_CLOG and LASS_CIN which return references too.

ProxyMan is a singleton, you can access it through ProxyMan::instance() or proxyMan(), both returning a pointer to the singleton.

The four proxy streams are created on first access of the ProxyMan singleton or any of its proxy streams and are automatically redirected to std::cout, std::cerr, std::clog and std::cin respectively.

Definition at line 77 of file proxy_man.h.


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