Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

SgGtpUtil.cpp

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


Sun Mar 13 2011 Doxygen 1.7.1