YGP::extStream< T > Struct Template Reference

Extended stream, designed to parse text. More...

Inherits YGP::extStreambuf.

List of all members.

Public Member Functions

 extStream ()
 extStream (const T &source)
 ~extStream ()
void init ()
Accessing stream values
unsigned int getLine () const
unsigned int getColumn () const


Detailed Description

template<class T>
struct YGP::extStream< T >

Extended stream, designed to parse text.

It overcomes two drawbacks of the original streams:

Note:
The extensions of the stream must be initialized with the init()-function (after creating/assigning)!

Constructor & Destructor Documentation

template<class T>
YGP::extStream< T >::extStream (  )  [inline]

Default constrcutor; Creates a stream.

template<class T>
YGP::extStream< T >::extStream ( const T &  source  )  [inline]

Constructor; Creates a stream with a data sink (to read from).

template<class T>
YGP::extStream< T >::~extStream (  )  [inline]

Destructor.


Member Function Documentation

template<class T>
unsigned int YGP::extStream< T >::getColumn (  )  const [inline]

Returns the actual line of the stream read from.

Reimplemented from YGP::extStreambuf.

template<class T>
unsigned int YGP::extStream< T >::getLine (  )  const [inline]

Returns the actual line of the stream read from.

Reimplemented from YGP::extStreambuf.

template<class T>
void YGP::extStream< T >::init (  )  [inline]

Initializes the extended stream.


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

YGP Version 0.9.31 - Generated on Wed Nov 18 11:25:28 2009 by doxygen 1.5.8