00001 //---------------------------------------------------------------------------- 00002 /** @file GtpOutputStream.cpp 00003 */ 00004 //---------------------------------------------------------------------------- 00005 #include "GtpOutputStream.h" 00006 00007 using namespace std; 00008 00009 //---------------------------------------------------------------------------- 00010 00011 GtpOutputStream::GtpOutputStream(ostream &out) 00012 : m_out(out) 00013 { 00014 } 00015 00016 GtpOutputStream::~GtpOutputStream() 00017 { 00018 } 00019 00020 void GtpOutputStream::Write(const string &line) 00021 { 00022 m_out << line; 00023 } 00024 00025 void GtpOutputStream::Flush() 00026 { 00027 m_out.flush(); 00028 } 00029 00030 //----------------------------------------------------------------------------