Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  
Public Member Functions | Private Attributes

GtpOutputStream Class Reference

Base class for output streams used by GtpEngine. More...

#include <GtpOutputStream.h>

List of all members.

Public Member Functions

 GtpOutputStream (std::ostream &out)
virtual ~GtpOutputStream ()
virtual void Write (const std::string &line)
virtual void Flush ()

Private Attributes

std::ostream & m_out

Detailed Description

Base class for output streams used by GtpEngine.

This implementation only forwards calls to std::ostream.

Todo:
Why does it need this class if users can write their own streams compatible with the standard library? See also https://sourceforge.net/apps/trac/fuego/ticket/66

Definition at line 18 of file GtpOutputStream.h.


Constructor & Destructor Documentation

GtpOutputStream ( std::ostream &  out  ) 

Definition at line 10 of file GtpOutputStream.cpp.

~GtpOutputStream (  )  [virtual]

Definition at line 15 of file GtpOutputStream.cpp.


Member Function Documentation

void Flush (  )  [virtual]

Definition at line 24 of file GtpOutputStream.cpp.

References m_out.

Referenced by GtpEngine::HandleCommand().

void Write ( const std::string &  line  )  [virtual]

Definition at line 19 of file GtpOutputStream.cpp.

References m_out.

Referenced by GtpEngine::HandleCommand().


Member Data Documentation

std::ostream& m_out [private]

Definition at line 30 of file GtpOutputStream.h.

Referenced by Flush(), and Write().


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


Sun Mar 13 2011 Doxygen 1.7.1