library of assembled shared sources

http://lass.cocamware.com

lass::io::ProxyIStream Class Reference

#include <proxy_i_stream.h>


Public Member Functions

 ProxyIStream (std::istream *iSource=&std::cin)
void setSource (std::istream *iSource)
 Set source stream of proxy.
template<typename T >
ProxyIStreamoperator>> (T &oOut)

Private Attributes

std::istream * source_


Detailed Description

Definition at line 73 of file proxy_i_stream.h.


Constructor & Destructor Documentation

lass::io::ProxyIStream::ProxyIStream ( std::istream *  iSource = &std::cin  ) 

Definition at line 59 of file proxy_i_stream.cpp.

References setSource().


Member Function Documentation

void lass::io::ProxyIStream::setSource ( std::istream *  iSource  ) 

Set source stream of proxy.

  • Proxy does NOT take ownership of source, it stays your own.
  • There can be only one source ( not even one of each kind, no ... ONE!). hence, when assigning a new source, the previous source is dumped.

Definition at line 71 of file proxy_i_stream.cpp.

References source_.

Referenced by ProxyIStream().

template<typename T >
ProxyIStream& lass::io::ProxyIStream::operator>> ( T &  oOut  )  [inline]

Definition at line 80 of file proxy_i_stream.h.

References LASS_ASSERT, and LASS_ENFORCE.


Field Documentation

std::istream* lass::io::ProxyIStream::source_ [private]

Definition at line 89 of file proxy_i_stream.h.

Referenced by setSource().


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