00001 //---------------------------------------------------------------------------- 00002 /** @file GtpInputStream.h 00003 */ 00004 //---------------------------------------------------------------------------- 00005 00006 #ifndef GTP_INPUTSTREAM_H 00007 #define GTP_INPUTSTREAM_H 00008 00009 #include <iostream> 00010 #include <string> 00011 00012 //---------------------------------------------------------------------------- 00013 00014 /** Base class for input streams used by GtpEngine. 00015 This implementation only forwards calls to std::istream. 00016 */ 00017 class GtpInputStream 00018 { 00019 public: 00020 GtpInputStream(std::istream &in); 00021 00022 virtual ~GtpInputStream(); 00023 00024 virtual bool EndOfInput(); 00025 00026 virtual bool GetLine(std::string &line); 00027 00028 private: 00029 std::istream &m_in; 00030 }; 00031 00032 //---------------------------------------------------------------------------- 00033 00034 #endif // GTP_INPUTSTREAM_H