Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

GtpOutputStream.h

Go to the documentation of this file.
00001 //----------------------------------------------------------------------------
00002 /** @file GtpOutputStream.h */
00003 //----------------------------------------------------------------------------
00004 
00005 #ifndef GTP_OUTPUTSTREAM_H
00006 #define GTP_OUTPUTSTREAM_H
00007 
00008 #include <iostream>
00009 #include <string>
00010 
00011 //----------------------------------------------------------------------------
00012 
00013 /** Base class for output streams used by GtpEngine.
00014     This implementation only forwards calls to std::ostream.
00015     @todo Why does it need this class if users can write their own streams
00016     compatible with the standard library? See also
00017     https://sourceforge.net/apps/trac/fuego/ticket/66 */
00018 class GtpOutputStream
00019 {
00020 public:
00021     GtpOutputStream(std::ostream &out);
00022 
00023     virtual ~GtpOutputStream();
00024 
00025     virtual void Write(const std::string &line);
00026 
00027     virtual void Flush();
00028 
00029 private:
00030     std::ostream &m_out;
00031 };
00032 
00033 //----------------------------------------------------------------------------
00034 
00035 #endif // GTP_OUTPUTSTREAM_H
00036 


Sun Mar 13 2011 Doxygen 1.7.1