library of assembled shared sources

http://lass.cocamware.com

lass::io::ProxyMan Class Reference

manages the four proxy streams. More...

#include <proxy_man.h>

Collaboration diagram for lass::io::ProxyMan:

Collaboration graph
[legend]

Public Member Functions

 ProxyMan ()
ProxyOStreamcout ()
 return pointer to 'cout' proxy.
ProxyOStreamcerr ()
 return pointer to 'cerr' proxy.
ProxyOStreamclog ()
 return pointer to 'clog' proxy.
ProxyIStreamcin ()
 return pointer to 'cin' proxy.

Private Attributes

ProxyOStream cout_
ProxyOStream cerr_
ProxyOStream clog_
ProxyIStream cin_

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:

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 84 of file proxy_man.h.


Constructor & Destructor Documentation

lass::io::ProxyMan::ProxyMan (  ) 

Definition at line 52 of file proxy_man.cpp.


Member Function Documentation

ProxyOStream * lass::io::ProxyMan::cout (  ) 

return pointer to 'cout' proxy.

Definition at line 64 of file proxy_man.cpp.

References cout_.

Referenced by lass::io::cout().

ProxyOStream * lass::io::ProxyMan::cerr (  ) 

return pointer to 'cerr' proxy.

Definition at line 73 of file proxy_man.cpp.

References cerr_.

Referenced by lass::io::cerr().

ProxyOStream * lass::io::ProxyMan::clog (  ) 

return pointer to 'clog' proxy.

Definition at line 82 of file proxy_man.cpp.

References clog_.

Referenced by lass::io::clog().

ProxyIStream * lass::io::ProxyMan::cin (  ) 

return pointer to 'cin' proxy.

Definition at line 91 of file proxy_man.cpp.

References cin_.

Referenced by lass::io::cin().


Field Documentation

Definition at line 97 of file proxy_man.h.

Referenced by cout().

Definition at line 98 of file proxy_man.h.

Referenced by cerr().

Definition at line 99 of file proxy_man.h.

Referenced by clog().

Definition at line 100 of file proxy_man.h.

Referenced by cin().


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

Generated on Mon Nov 10 14:22:09 2008 for Library of Assembled Shared Sources by doxygen 1.5.7.1
SourceForge.net Logo