Update of /cvsroot/rccparser/rccparser/src In directory sc8-pr-cvs1:/tmp/cvs-serv27457/src Modified Files: Makefile.am footer.html header.html rccparse.ypp rccparser.h Added Files: addcomment.pl comment.pl getcomments.pl Log Message: 2003-02-11 Tom Howard <tom...@us...> * ./src/Makefile.am * ./src/addcomment.pl * ./src/comment.pl * ./src/footer.html * ./src/getcomments.pl * ./src/header.html Added scripts for user comments on online docs. * ./src/rccparse.ypp Fine tuned grammer * ./src/rccparser.h Added more docs --- NEW FILE: addcomment.pl --- #!/usr/bin/perl use strict; use CGI; exec "../../admin/privaddcomment.pl"; my $cgi = new CGI(); print $cgi->header; print $cgi->start_html(-title=>'Adding Comment', -style=>{'src'=>'./style.css'}); print $cgi->p("Error adding comment: Could not connect to database"); print $cgi->end_html; --- NEW FILE: comment.pl --- #!/usr/bin/perl use strict; use CGI; my $cgi = new CGI(); print $cgi->header; my $page_id = $cgi->param('page'); my $idx = $cgi->param('idx'); print $cgi->start_html(-title=>'Add Comment', -style=>{'src'=>'./style.css'}); print $cgi->h1("Add Comment"); print $cgi->startform('POST', 'addcomment.pl'); print $cgi->hidden(-name=>'page', -value=>$page_id); print $cgi->hidden(-name=>'idx', -value=>$idx); print $cgi->textarea(-name=>'comment', -rows=>10, -style=>'width:100%;'); print $cgi->br(); print $cgi->br(); print $cgi->checkbox('pre', 0, 'ON', 'Preserve pre-formatted text' ); print $cgi->br(); print $cgi->br(); print $cgi->submit(-name=>'Submit'); print $cgi->endform(); print $cgi->end_html; --- NEW FILE: getcomments.pl --- #!/usr/bin/perl use strict; use CGI; exec "../../admin/privgetcomments.pl"; my $cgi = new CGI(); print $cgi->header; print $cgi->h1("User Comments"); print $cgi->p("Error getting comments: Could not connect to database"); Index: Makefile.am =================================================================== RCS file: /cvsroot/rccparser/rccparser/src/Makefile.am,v retrieving revision 1.33 retrieving revision 1.34 diff -C2 -d -r1.33 -r1.34 *** Makefile.am 6 Feb 2003 09:21:40 -0000 1.33 --- Makefile.am 11 Feb 2003 09:26:49 -0000 1.34 *************** *** 13,17 **** doc/ps/@PACKAGE@-@VERSION@.ps \ doc/pdf/@PACKAGE@-@VERSION@.pdf \ ! doc/xml/@PACKAGE@-@VERSION@.xml --- 13,18 ---- doc/ps/@PACKAGE@-@VERSION@.ps \ doc/pdf/@PACKAGE@-@VERSION@.pdf \ ! doc/xml/@PACKAGE@-@VERSION@.xml \ ! doc/htmlgz/@PACKAGE@-@VERSION@.html.tar.gz *************** *** 142,158 **** doxygen: doc/xml/@PACKAGE@-@VERSION@.xml ! doc/html/style.css: if ! test -d doc; then rm -f doc; mkdir doc; fi if ! test -d doc/html; then rm -f doc/html; mkdir doc/html; fi ln -f style.css doc/html/style.css ! doc/html/header.jpg: if ! test -d doc; then rm -f doc; mkdir doc; fi if ! test -d doc/html; then rm -f doc/html; mkdir doc/html; fi ln -f header.jpg doc/html/header.jpg if BUILD_DOC ! $(HTMLFILES): doxygen doc/html/header.jpg doc/html/style.css doc/ps/@PACKAGE@-@VERSION@.ps: doxygen --- 143,176 ---- doxygen: doc/xml/@PACKAGE@-@VERSION@.xml ! doc/html/style.css: style.css if ! test -d doc; then rm -f doc; mkdir doc; fi if ! test -d doc/html; then rm -f doc/html; mkdir doc/html; fi ln -f style.css doc/html/style.css ! doc/html/header.jpg: header.jpg if ! test -d doc; then rm -f doc; mkdir doc; fi if ! test -d doc/html; then rm -f doc/html; mkdir doc/html; fi ln -f header.jpg doc/html/header.jpg + doc/html/getcomments.pl: getcomments.pl + if ! test -d doc; then rm -f doc; mkdir doc; fi + if ! test -d doc/html; then rm -f doc/html; mkdir doc/html; fi + ln -f getcomments.pl doc/html/getcomments.pl + + doc/html/comment.pl: comment.pl + if ! test -d doc; then rm -f doc; mkdir doc; fi + if ! test -d doc/html; then rm -f doc/html; mkdir doc/html; fi + ln -f comment.pl doc/html/comment.pl + + doc/html/addcomment.pl: addcomment.pl + if ! test -d doc; then rm -f doc; mkdir doc; fi + if ! test -d doc/html; then rm -f doc/html; mkdir doc/html; fi + ln -f addcomment.pl doc/html/addcomment.pl + + if BUILD_DOC ! $(HTMLFILES): doxygen doc/html/header.jpg doc/html/style.css doc/html/comment.pl doc/html/getcomments.pl doc/html/addcomment.pl ! chmod +x $@ doc/ps/@PACKAGE@-@VERSION@.ps: doxygen *************** *** 169,175 **** doxygen doxygen.conf mv doc/xml/doxygen.xml doc/xml/@PACKAGE@-@VERSION@.xml else ! $(HTMLFILES): doxygen if ! test -d doc; then rm -f doc; mkdir doc; fi if ! test -d doc/html; then rm -f doc/html; mkdir doc/html; fi --- 187,201 ---- doxygen doxygen.conf mv doc/xml/doxygen.xml doc/xml/@PACKAGE@-@VERSION@.xml + + + doc/htmlgz/@PACKAGE@-@VERSION@.html.tar.gz: $(HTMLFILES) doc/html/style.css doc/html/comment.pl doc/html/getcomments.pl doc/html/addcomment.pl + if ! test -d doc/htmlgz; then rm -f doc/htmlgz; mkdir doc/htmlgz; fi + ln -s doc/html @PACKAGE@-@VERSION@.html + $(AMTAR) chof - "@PACKAGE@-@VERSION@.html" | GZIP=$(GZIP_ENV) gzip -c >"doc/htmlgz/@PACKAGE@-@VERSION@.html.tar.gz" + rm -rf @PACKAGE@-@VERSION@.html + else ! $(HTMLFILES): doxygen doc/html/header.jpg doc/html/style.css doc/html/comment.pl doc/html/getcomments.pl doc/html/addcomment.pl if ! test -d doc; then rm -f doc; mkdir doc; fi if ! test -d doc/html; then rm -f doc/html; mkdir doc/html; fi *************** *** 183,188 **** fi \ done ! ln -f style.css doc/html/style.css ! ln -f header.jpg doc/html/header.jpg --- 209,213 ---- fi \ done ! chmod +x doc/html/index.html *************** *** 217,224 **** fi endif ! doc: $(HTMLFILES) doc/ps/@PACKAGE@-@VERSION@.ps doc/pdf/@PACKAGE@-@VERSION@.pdf doc/xml/@PACKAGE@-@VERSION@.xml EXTRA_DIST = clang.data out.data rcclexer.lpp ac_lib_rccparser.m4 \ --- 242,259 ---- fi + doc/htmlgz/@PACKAGE@-@VERSION@.html.tar.gz: $(HTMLFILES) doc/html/style.css doc/html/comment.pl doc/html/getcomments.pl doc/html/addcomment.pl + if ! test -d doc; then rm -f doc; mkdir doc; fi + if ! test -d doc/htmlgz; then rm -f doc/htmlgz; mkdir doc/htmlgz; fi + if test -e "$(srcdir)/$@" \ + && ! test "$(srcdir)/$@" -ef "$@"; then \ + cp -f $(srcdir)/$@ $@; \ + else \ + touch $@; \ + fi + endif ! doc: $(HTMLFILES) doc/ps/@PACKAGE@-@VERSION@.ps doc/pdf/@PACKAGE@-@VERSION@.pdf doc/xml/@PACKAGE@-@VERSION@.xml doc/htmlgz/@PACKAGE@-@VERSION@.html.tar.gz EXTRA_DIST = clang.data out.data rcclexer.lpp ac_lib_rccparser.m4 \ *************** *** 229,232 **** --- 264,270 ---- doc/html/style.css \ doc/html/header.jpg \ + doc/html/comment.pl \ + doc/html/getcomments.pl \ + doc/html/addcomment.pl \ doxygen.conf.tmpl \ header.jpg \ Index: footer.html =================================================================== RCS file: /cvsroot/rccparser/rccparser/src/footer.html,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** footer.html 6 Feb 2003 09:21:40 -0000 1.3 --- footer.html 11 Feb 2003 09:26:49 -0000 1.4 *************** *** 1,2 **** --- 1,3 ---- + <!--#include file="getcomments.pl" --> </td></tr> </table> Index: header.html =================================================================== RCS file: /cvsroot/rccparser/rccparser/src/header.html,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** header.html 6 Feb 2003 09:21:40 -0000 1.3 --- header.html 11 Feb 2003 09:26:49 -0000 1.4 *************** *** 14,17 **** --- 14,18 ---- <td class="menu"><a href="http://rccparser.sourceforge.net/index.html" target="_self">Home</a></td> <td class="menu"><a href="http://rccparser.sourceforge.net/doc.html" target="_self">Docs</a></td> + <td class="menu"><a href="http://rccparser.sourceforge.net/authors.html" target="_self">Authors</a></td> <td class="menu"><a href="http://medialab.di.unipi.it/Project/Robocup/pub/" target="_blank">Clients</a></td> <td class="menu"><a href="http://www.ida.liu.se/~frehe/RoboCup/Libs/" Index: rccparse.ypp =================================================================== RCS file: /cvsroot/rccparser/rccparser/src/rccparse.ypp,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** rccparse.ypp 6 Feb 2003 09:21:40 -0000 1.6 --- rccparse.ypp 11 Feb 2003 09:26:49 -0000 1.7 *************** *** 1089,1098 **** getBool( $5 ) ); } ! | LP close_player_name REAL REAL tackle RP { PARAM.buildPlayer( true, getDouble( $3 ), getDouble( $4 ), ! getBool( $5 ) ); } | LP non_close_player_name REAL REAL REAL tackle RP --- 1089,1098 ---- getBool( $5 ) ); } ! | LP close_player_name REAL REAL RP { PARAM.buildPlayer( true, getDouble( $3 ), getDouble( $4 ), ! false ); } | LP non_close_player_name REAL REAL REAL tackle RP Index: rccparser.h =================================================================== RCS file: /cvsroot/rccparser/rccparser/src/rccparser.h,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** rccparser.h 6 Feb 2003 09:21:41 -0000 1.25 --- rccparser.h 11 Feb 2003 09:26:49 -0000 1.26 *************** *** 5832,5840 **** * * \pre Either an entire: ! - near, pointing or - version 7 player section of a player visual message has been parsed. * ! * \pre A version player visual message is being parsed. * * \sa --- 5832,5840 ---- * * \pre Either an entire: ! - near, non-pointing or - version 7 player section of a player visual message has been parsed. * ! * \pre A player visual message is being parsed. * * \sa *************** *** 6210,6213 **** --- 6210,6284 ---- + /** This function is called after parsing a player section of player visual message, + * when the client is in a high quality view mode, the player is far away and not pointing + * or the player is very far away and the client is using protocol 7, + * or the player is very close, but outside of the view cone. + * + * Override this function in your subclass to handle high quality + * far non-pointing or version 7, or very close player sections of player visual messages. + * + * \note This function is deprecates doBuildPlayer( bool close, double dist, double dir ). + * + * \param close false if the ball is in the client's view cone, true otherwise. + * \param dist The distance (in meters) from the client to the player. + * \param dir The angle from the client's center of view to the player. + * \param tackling true if the player is tackling and is in the clients view cone, false otherwise. + * + * \pre The client is a field player. + * + * \pre The client is in a high quality view mode. + * + * \pre An entire far non-pointing or version 7, or very close player section of a player visual message has been parsed. + * + * \pre A player visual message is being parsed. + * + * \sa + * - doBuildPlayer( bool close, double dist, double dir, + double dist_chg, double dir_chg, + double orientation, double head_orientation, + double point_dir, bool tackling ) + * - doBuildPlayer( double dist, double dir, + double dist_chg, double dir_chg, + double orientation, double head_orientation, + double point_dir, bool tackling ) + * - doBuildPlayer( bool close, + double dist, double dir, + double dist_chg, double dir_chg, + double orientation, double head_orientation, + bool tackling ) + * - doBuildPlayer( double dist, double dir, + double dist_chg, double dir_chg, + double orientation, double head_orientation, + bool tackling ) + * - doBuildPlayer( bool close, + double dist, double dir, + double dist_chg, double dir_chg, + double point_dir, bool tackling ) + * - doBuildPlayer( double dist, double dir, + double dist_chg, double dir_chg, + double point_dir, bool tackling ) + * - doBuildPlayer( bool close, + double dist, double dir, + double dist_chg, double dir_chg, + bool tackling ) + * - doBuildPlayer( double dist, double dir, + double dist_chg, double dir_chg, + bool tackling ) + * - doBuildPlayer( bool close, double dist, double dir, + double point_dir, bool tackling ) + * - doBuildPlayer( double dist, double dir, + double point_dir, bool tackling ) + * - doBuildPlayer( bool close, + double dist, double dir, + double dist_chg, double dir_chg, + double orientation, double head_orientation ) + * - doBuildPlayer( bool close, + double dist, double dir, + double dist_chg, double dir_chg ) + * - doBuildPlayer( bool close, double dist, double dir ) + * - doBuildPlayer( bool close, double dir ) + * - doBuildVisual( int time ) + * + */ virtual void *************** *** 6219,6223 **** ! // kept for src compatibility virtual void --- 6290,6384 ---- ! /** This function is called after parsing a player section of player visual message, ! * when the client is in a high quality view mode, the player is not far away, is not ! * pointing or the client is using protcol version 7 and ! * doBuildPlayer( bool close, double dist, double dir, ! * double dist_chg, double dir_chg, ! * double orientation, double head_orientation, ! * bool tackling ), and ! * doBuildPlayer( double dist, double dir, ! * double dist_chg, double dir_chg, ! * double orientation, double head_orientation, ! * bool tackling ) have not ! * been overridden. ! * ! * Override this function in your subclass to handle version 8 or 9 high quality ! * near non-pointing or version 7 high quality near player sections of player visual messages. ! * ! * \warning This function is deprecated. Overide doBuildPlayer( double dist, double dir, ! * double dist_chg, double dir_chg, ! * double orientation, double head_orientation, ! * bool tackling ) instead. ! * ! * \param close false if the ball is in the client's view cone, true otherwise. Since ! * dist_chg, dir_chg, etc are only ever sent if the player is in the client's ! * view cone, \e close is always false, thus this parameter is redundant. ! * \param dist The distance (in meters) from the client to the player. ! * \param dir The angle from the client's center of view to the player. ! * \param dist_chg The distance change of the player relative to the client. ! * \param dir_chg The the direction change of the player relative to the client. ! * \param orientation The the direction of the player's body relative to the client. ! * \param head_orientation The the direction of the player's head relative to the client. ! * ! * \pre Either: ! * - The client is using protocol 8 or 9 and the player is not pointing, or ! * - The client is using protocol 7. ! * ! * \pre The client is a field player. ! * ! * \pre The client is in a high quality view mode. ! * ! * \pre Either an entire: ! - near, non-pointing or ! - version 7 ! player section of a player visual message has been parsed. ! * ! * \pre A player visual message is being parsed. ! * ! * \sa ! * - doBuildPlayer( bool close, double dist, double dir, ! double dist_chg, double dir_chg, ! double orientation, double head_orientation, ! double point_dir, bool tackling ) ! * - doBuildPlayer( double dist, double dir, ! double dist_chg, double dir_chg, ! double orientation, double head_orientation, ! double point_dir, bool tackling ) ! * - doBuildPlayer( bool close, double dist, double dir, ! double dist_chg, double dir_chg, ! double orientation, double head_orientation, ! bool tackling ) ! * - doBuildPlayer( double dist, double dir, ! double dist_chg, double dir_chg, ! double orientation, double head_orientation, ! bool tackling ) ! * - doBuildPlayer( bool close, ! double dist, double dir, ! double dist_chg, double dir_chg, ! double point_dir, bool tackling ) ! * - doBuildPlayer( double dist, double dir, ! double dist_chg, double dir_chg, ! double point_dir, bool tackling ) ! * - doBuildPlayer( bool close, ! double dist, double dir, ! double dist_chg, double dir_chg, ! bool tackling ) ! * - doBuildPlayer( double dist, double dir, ! double dist_chg, double dir_chg, ! bool tackling ) ! * - doBuildPlayer( bool close, double dist, double dir, ! double point_dir, bool tackling ) ! * - doBuildPlayer( double dist, double dir, ! double point_dir, bool tackling ) ! * - doBuildPlayer( bool close, double dist, double dir, ! bool tackling ) ! * - doBuildPlayer( bool close, ! double dist, double dir, ! double dist_chg, double dir_chg ) ! * - doBuildPlayer( bool close, double dist, double dir ) ! * - doBuildPlayer( bool close, double dir ) ! * - doBuildVisual( int time ) ! * ! */ virtual void *************** *** 6228,6232 **** ! // kept for src compatibility virtual void --- 6389,6397 ---- ! /** This function never called. ! * ! * \warning This function is never called because the server never sends dist_chg and dir_chg ! * without body and head directions. ! */ virtual void *************** *** 6235,6243 **** double dist_chg, double dir_chg ) {} ! // kept for src compatibility virtual void doBuildPlayer( bool close, double dist, double dir ) {} virtual void --- 6400,6545 ---- double dist_chg, double dir_chg ) {} ! /** This function is called after parsing a player section of player visual message, ! * when the client is in a high quality view mode, the player is far away and not pointing ! * or the player is very far away and the client is using protocol 7, ! * or the player is very close, but outside of the view cone, ! * and doBuildPlayer( bool close, ! * double dist, double dir, bool tackling ) has not been overridden. ! * ! * Override this function in your subclass to handle high quality ! * far non-pointing or version 7, or very close player sections of player visual messages. ! * ! * \warning This function is deprecated. Override doBuildPlayer( bool close, ! * double dist, double dir, bool tackling ) instead. ! * ! * \param close false if the ball is in the client's view cone, true otherwise. ! * \param dist The distance (in meters) from the client to the player. ! * \param dir The angle from the client's center of view to the player. ! * ! * \pre The client is a field player. ! * ! * \pre The client is in a high quality view mode. ! * ! * \pre An entire far non-pointing or version 7, or very close player section of a player visual message has been parsed. ! * ! * \pre A player visual message is being parsed. ! * ! * \sa ! * - doBuildPlayer( bool close, double dist, double dir, ! double dist_chg, double dir_chg, ! double orientation, double head_orientation, ! double point_dir, bool tackling ) ! * - doBuildPlayer( double dist, double dir, ! double dist_chg, double dir_chg, ! double orientation, double head_orientation, ! double point_dir, bool tackling ) ! * - doBuildPlayer( bool close, ! double dist, double dir, ! double dist_chg, double dir_chg, ! double orientation, double head_orientation, ! bool tackling ) ! * - doBuildPlayer( double dist, double dir, ! double dist_chg, double dir_chg, ! double orientation, double head_orientation, ! bool tackling ) ! * - doBuildPlayer( bool close, ! double dist, double dir, ! double dist_chg, double dir_chg, ! double point_dir, bool tackling ) ! * - doBuildPlayer( double dist, double dir, ! double dist_chg, double dir_chg, ! double point_dir, bool tackling ) ! * - doBuildPlayer( bool close, ! double dist, double dir, ! double dist_chg, double dir_chg, ! bool tackling ) ! * - doBuildPlayer( double dist, double dir, ! double dist_chg, double dir_chg, ! bool tackling ) ! * - doBuildPlayer( bool close, double dist, double dir, ! double point_dir, bool tackling ) ! * - doBuildPlayer( double dist, double dir, ! double point_dir, bool tackling ) ! * - doBuildPlayer( bool close, double dist, double dir, bool tackling ) ! * - doBuildPlayer( bool close, ! double dist, double dir, ! double dist_chg, double dir_chg, ! double orientation, double head_orientation ) ! * - doBuildPlayer( bool close, ! double dist, double dir, ! double dist_chg, double dir_chg ) ! * - doBuildPlayer( bool close, double dir ) ! * - doBuildVisual( int time ) ! * ! */ virtual void doBuildPlayer( bool close, double dist, double dir ) {} + /** This function is called after parsing a player section of player visual message, + * when the client is in a low quality view mode. + * + * Override this function in your subclass to handle low quality + * player sections of player visual messages. + * + * \param close false if the ball is in the client's view cone, true otherwise. + * \param dir The angle from the client's center of view to the player. + * + * \pre The client is a field player. + * + * \pre The client is in a low quality view mode. + * + * \pre An entire player section of a player visual message has been parsed. + * + * \pre A player visual message is being parsed. + * + * \sa + * - doBuildPlayer( bool close, double dist, double dir, + double dist_chg, double dir_chg, + double orientation, double head_orientation, + double point_dir, bool tackling ) + * - doBuildPlayer( double dist, double dir, + double dist_chg, double dir_chg, + double orientation, double head_orientation, + double point_dir, bool tackling ) + * - doBuildPlayer( bool close, + double dist, double dir, + double dist_chg, double dir_chg, + double orientation, double head_orientation, + bool tackling ) + * - doBuildPlayer( double dist, double dir, + double dist_chg, double dir_chg, + double orientation, double head_orientation, + bool tackling ) + * - doBuildPlayer( bool close, + double dist, double dir, + double dist_chg, double dir_chg, + double point_dir, bool tackling ) + * - doBuildPlayer( double dist, double dir, + double dist_chg, double dir_chg, + double point_dir, bool tackling ) + * - doBuildPlayer( bool close, + double dist, double dir, + double dist_chg, double dir_chg, + bool tackling ) + * - doBuildPlayer( double dist, double dir, + double dist_chg, double dir_chg, + bool tackling ) + * - doBuildPlayer( bool close, double dist, double dir, + double point_dir, bool tackling ) + * - doBuildPlayer( double dist, double dir, + double point_dir, bool tackling ) + * - doBuildPlayer( bool close, double dist, double dir, bool tackling ) + * - doBuildPlayer( bool close, + double dist, double dir, + double dist_chg, double dir_chg, + double orientation, double head_orientation ) + * - doBuildPlayer( bool close, + double dist, double dir, + double dist_chg, double dir_chg ) + * - doBuildPlayer( bool close, double dist, double dir ) + * - doBuildVisual( int time ) + * + */ virtual void |