|
LIBRCSC Docs
Documentation for HELIOS's BASE LIBRCSC library for RoboCup 2D Simulation League.
|
abstract rcg data handler class. More...
#include <handler.h>
Public Member Functions | |
| virtual | ~Handler () |
| virtual destructor | |
| virtual bool | handleLogVersion (const int ver) |
| records rcg version More... | |
| virtual int | logVersion () const |
| returns rcg version number More... | |
| bool | handleDispInfo (const dispinfo_t &info) |
| handle dispinfo_t. More... | |
| bool | handleDispInfo2 (const dispinfo_t2 &info) |
| handle dispinfo_t2. More... | |
| bool | handleShowInfo (const showinfo_t &info) |
| handle showinfo_t More... | |
| bool | handleShowInfo2 (const showinfo_t2 &info) |
| handle showinfo_t2 More... | |
| bool | handleShortShowInfo2 (const short_showinfo_t2 &info) |
| handle short_showinfo_t. More... | |
| bool | handleMsgInfo (const Int16 board, const std::string &msg) |
| handle msginfo_t More... | |
| bool | handleDrawInfo (const drawinfo_t &draw) |
| handle drawinfo_t More... | |
| bool | handlePlayMode (char playmode) |
| handle playmode More... | |
| bool | handleTeamInfo (const team_t &team_l, const team_t &team_r) |
| handle team data More... | |
| bool | handlePlayerType (const player_type_t &type) |
| handle player_type_t More... | |
| bool | handleServerParam (const server_params_t ¶m) |
| handle server_params_t More... | |
| bool | handlePlayerParam (const player_params_t ¶m) |
| handle player_params_t More... | |
| virtual bool | handleEOF ()=0 |
| (pure virtual) handle end of file More... | |
| virtual bool | handleShow (const ShowInfoT &show)=0 |
| (pure virtual) handle the start of show info v4 More... | |
| virtual bool | handleMsg (const int time, const int board, const std::string &msg)=0 |
| (pure virtual) handle msg info More... | |
| virtual bool | handleDraw (const int time, const drawinfo_t &draw)=0 |
| (pure virtual) handle draw info More... | |
| virtual bool | handlePlayMode (const int time, const PlayMode pm)=0 |
| handle playmode More... | |
| virtual bool | handleTeam (const int time, const TeamT &team_l, const TeamT &team_r)=0 |
| handle team info More... | |
| virtual bool | handleServerParam (const std::string &msg)=0 |
| handle server_param message More... | |
| virtual bool | handlePlayerParam (const std::string &msg)=0 |
| handle player_param message More... | |
| virtual bool | handlePlayerType (const std::string &msg)=0 |
| handle player_type message More... | |
Protected Member Functions | |
| Handler () | |
| default constructor. log version and time are set to zero. | |
abstract rcg data handler class.
This is an interface class, all member methods are virtual.
| bool rcsc::rcg::Handler::handleDispInfo | ( | const dispinfo_t & | info | ) |
| bool rcsc::rcg::Handler::handleDispInfo2 | ( | const dispinfo_t2 & | info | ) |
|
pure virtual |
(pure virtual) handle draw info
| time | game time of handled data |
| draw | new data |
| bool rcsc::rcg::Handler::handleDrawInfo | ( | const drawinfo_t & | draw | ) |
|
pure virtual |
(pure virtual) handle end of file
|
inlinevirtual |
records rcg version
| ver | log version. |
This method is virtual. You can override this.
|
pure virtual |
(pure virtual) handle msg info
| time | game time of handled msg info |
| board | message board type |
| msg | new data |
| bool rcsc::rcg::Handler::handleMsgInfo | ( | const Int16 | board, |
| const std::string & | msg | ||
| ) |
| bool rcsc::rcg::Handler::handlePlayerParam | ( | const player_params_t & | param | ) |
|
pure virtual |
handle player_param message
| msg | raw message string |
| bool rcsc::rcg::Handler::handlePlayerType | ( | const player_type_t & | type | ) |
|
pure virtual |
handle player_type message
| msg | raw message string |
| bool rcsc::rcg::Handler::handlePlayMode | ( | char | playmode | ) |
handle playmode
| playmode | handled playmode character |
|
pure virtual |
handle playmode
| time | game time of handled playmode info |
| pm | playmode id |
| bool rcsc::rcg::Handler::handleServerParam | ( | const server_params_t & | param | ) |
|
pure virtual |
handle server_param message
| msg | raw message string |
| bool rcsc::rcg::Handler::handleShortShowInfo2 | ( | const short_showinfo_t2 & | info | ) |
handle short_showinfo_t.
| info | handled data |
|
pure virtual |
(pure virtual) handle the start of show info v4
| time | game time of handled show info |
| show | read data |
| bool rcsc::rcg::Handler::handleShowInfo | ( | const showinfo_t & | info | ) |
| bool rcsc::rcg::Handler::handleShowInfo2 | ( | const showinfo_t2 & | info | ) |
|
pure virtual |
handle team info
| time | game time of handled team info |
| team_l | left team info |
| team_r | right team info |
handle team data
| team_l | left team data |
| team_r | right team data |
|
inlinevirtual |
returns rcg version number
This method is virtual. You can override this.