00001 //---------------------------------------------------------------------------- 00002 /** @file SgGtpUtil.h 00003 Utility functions 00004 */ 00005 //---------------------------------------------------------------------------- 00006 00007 #ifndef SG_GTPUTIL_H 00008 #define SG_GTPUTIL_H 00009 00010 class GtpCommand; 00011 class SgPointSet; 00012 00013 //---------------------------------------------------------------------------- 00014 00015 namespace SgGtpUtil 00016 { 00017 /** Append a point set to the response of a command. 00018 The response will be formatted as a single line with the points 00019 ordered (A1, B1, ..., A2, ...) to facilitate writing GTP regression 00020 tests using this command. 00021 */ 00022 void RespondPointSet(GtpCommand& cmd, const SgPointSet& pointSet); 00023 00024 } // namespace SgGtpUtil 00025 00026 //---------------------------------------------------------------------------- 00027 00028 #endif // SG_GTPUTIL_H