text_stream Class Reference

#include <stream.hpp>

Inheritance diagram for text_stream:

Inheritance graph
[legend]

List of all members.


Detailed Description

A text stream.

Definition at line 48 of file stream.hpp.


Public Member Functions

virtual bool at_end () const =0
virtual wchar_t get ()=0
text_streamoperator<< (const char *)
text_streamoperator<< (const double &)
text_streamoperator<< (const float &)
text_streamoperator<< (const int &)
text_streamoperator<< (const wchar_t &)
text_streamoperator<< (const wchar_t *)
text_streamoperator>> (double &)
text_streamoperator>> (float &)
text_streamoperator>> (int &)
text_streamoperator>> (wchar_t &)
virtual wchar_t peek ()=0
virtual gsgl::index_t read (wchar_t *, const gsgl::index_t num)=0
virtual void unget (wchar_t)=0
virtual gsgl::index_t write (const wchar_t *, const gsgl::index_t num)=0
virtual ~text_stream ()

Protected Member Functions

 text_stream ()

Constructor & Destructor Documentation

text_stream (  )  [protected]

Definition at line 56 of file stream.cpp.

~text_stream (  )  [virtual]

Definition at line 59 of file stream.cpp.


Member Function Documentation

virtual bool at_end (  )  const [pure virtual]

Implemented in ft_stream.

Referenced by text_stream::operator>>().

virtual wchar_t get (  )  [pure virtual]

Implemented in ft_stream.

Referenced by string::from_stream().

text_stream & operator<< ( const char *  str  ) 

Definition at line 102 of file stream.cpp.

text_stream & operator<< ( const double &  n  ) 

Definition at line 84 of file stream.cpp.

References text_stream::write().

text_stream & operator<< ( const float n  ) 

Definition at line 93 of file stream.cpp.

References text_stream::write().

text_stream & operator<< ( const int &  n  ) 

Definition at line 75 of file stream.cpp.

References text_stream::write().

text_stream & operator<< ( const wchar_t &  ch  ) 

Todo:
Implement UTF coding.

Definition at line 68 of file stream.cpp.

References text_stream::write().

text_stream & operator<< ( const wchar_t *  str  ) 

Definition at line 62 of file stream.cpp.

References text_stream::write().

text_stream & operator>> ( double &  n  ) 

Definition at line 141 of file stream.cpp.

References text_stream::at_end(), and text_stream::read().

text_stream & operator>> ( float n  ) 

Definition at line 158 of file stream.cpp.

text_stream & operator>> ( int &  n  ) 

Definition at line 124 of file stream.cpp.

References text_stream::at_end(), and text_stream::read().

text_stream & operator>> ( wchar_t &  ch  ) 

Todo:
Implement UTF coding.

Definition at line 117 of file stream.cpp.

References text_stream::read().

virtual wchar_t peek (  )  [pure virtual]

Implemented in ft_stream.

Referenced by string::from_stream(), and config_record::from_stream().

virtual gsgl::index_t read ( wchar_t *  ,
const gsgl::index_t  num 
) [pure virtual]

Implemented in ft_stream.

Referenced by text_stream::operator>>().

virtual void unget ( wchar_t   )  [pure virtual]

Implemented in ft_stream.

Referenced by config_record::from_stream().

virtual gsgl::index_t write ( const wchar_t *  ,
const gsgl::index_t  num 
) [pure virtual]

Implemented in ft_stream.

Referenced by text_stream::operator<<().


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

Generated on Sat Mar 1 13:50:06 2008 for Periapsis Project by  doxygen 1.5.5