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 
00006 #ifndef GTP_OUTPUTSTREAM_H
00007 #define GTP_OUTPUTSTREAM_H
00008 
00009 #include <iostream>
00010 #include <string>
00011 
00012 //----------------------------------------------------------------------------
00013 
00014 /** Base class for output streams used by GtpEngine.
00015     This implementation only forwards calls to std::ostream.
00016  */
00017 class GtpOutputStream
00018 {
00019 public:
00020     GtpOutputStream(std::ostream &out);
00021 
00022     virtual ~GtpOutputStream();
00023 
00024     virtual void Write(const std::string &line);
00025 
00026     virtual void Flush();
00027 
00028 private:
00029     std::ostream &m_out;
00030 };
00031 
00032 //----------------------------------------------------------------------------
00033 
00034 #endif // GTP_OUTPUTSTREAM_H
00035 


17 Jun 2010 Doxygen 1.4.7