00001 //---------------------------------------------------------------------------- 00002 /** @file SgGtpUtil.cpp 00003 */ 00004 //---------------------------------------------------------------------------- 00005 00006 #include "SgSystem.h" 00007 #include "SgGtpUtil.h" 00008 00009 #include "SgPointSet.h" 00010 #include "GtpEngine.h" 00011 00012 using namespace std; 00013 00014 //---------------------------------------------------------------------------- 00015 00016 void SgGtpUtil::RespondPointSet(GtpCommand& cmd, const SgPointSet& pointSet) 00017 { 00018 bool isFirst = true; 00019 for (SgSetIterator it(pointSet); it; ++it) 00020 { 00021 if (! isFirst) 00022 cmd << ' '; 00023 isFirst = false; 00024 cmd << SgWritePoint(*it); 00025 } 00026 } 00027 00028 //---------------------------------------------------------------------------- 00029