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 
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 


17 Jun 2010 Doxygen 1.4.7