#include <holder.h>
Public メソッド | |
virtual | ~Holder () |
virtual destructor | |
int | logVersion () const |
get version number of rcg format | |
bool | setLogVersion (const int ver) |
set version number of rcg format | |
bool | addDispInfo (const dispinfo_t &dinfo) |
add new dispinfo_t (rcg v1, monitor v1) | |
bool | addDispInfo2 (const dispinfo_t2 &dinfo2) |
add new dispinfo_t2 (monitor v2) | |
virtual bool | addShowInfo (const showinfo_t &show)=0 |
(pure virtual) add showinfo_t (rcg v2, monitor v1) | |
virtual bool | addShowInfo2 (const showinfo_t2 &show)=0 |
(pure virtual) add showinfo_t2 (monitor v2 only) | |
virtual bool | addShortShowInfo2 (const short_showinfo_t2 &show2)=0 |
(pure virtual) add short_showinfo_t2 (rcg v3 only) | |
virtual bool | addMsgInfo (const Int16 board, const std::string &msg)=0 |
(pure virtual) add msginfo_t | |
virtual bool | addDrawInfo (const drawinfo_t &draw)=0 |
(pure virtual) add drawinfo_t(rcg v1:v2, monitor v1) | |
virtual bool | addPlayMode (const char pmode)=0 |
(pure virtual) add playmode | |
virtual bool | addTeamInfo (const team_t &team_l, const team_t &team_r)=0 |
(pure virtual) add team_t * 2 | |
virtual bool | addPlayerType (const player_type_t &ptinfo)=0 |
(pure virtual) add player_type_t | |
virtual bool | addServerParam (const server_params_t &sparams)=0 |
(pure virtual) add server_params_t | |
virtual bool | addPlayerParam (const player_params_t &pparams)=0 |
(pure virtual) add player_param_t | |
bool | addDisp3 (const std::string &msg) |
add new display information for monitor version 3. | |
virtual bool | addShow (const int time, const ShowInfoT &show)=0 |
(pure virtual) add the start of show info v4 | |
virtual bool | addMsg (const int time, const int board, const std::string &msg)=0 |
(pure virtual) add msg info v4 | |
virtual bool | addPlayMode (const int time, const PlayMode pm)=0 |
(pure virtual) add playmode info v4 | |
virtual bool | addTeam (const int time, const TeamT &team_l, const TeamT &team_r)=0 |
(pure virtual0 add team info v4 | |
virtual bool | addServerParam (const std::string &msg)=0 |
(pure virtual) add server_param | |
virtual bool | addPlayerParam (const std::string &msg)=0 |
(pure virtual) add player_param | |
virtual bool | addPlayerType (const std::string &msg)=0 |
(pure virtual) add player_type |
The cncrete class that implements this interface should hold the whole game log data.
int rcsc::rcg::Holder::logVersion | ( | ) | const [inline] |
get version number of rcg format
bool rcsc::rcg::Holder::setLogVersion | ( | const int | ver | ) | [inline] |
set version number of rcg format
bool rcsc::rcg::Holder::addDispInfo | ( | const dispinfo_t & | dinfo | ) |
add new dispinfo_t (rcg v1, monitor v1)
dinfo | dispinfo_t struct data |
true | if successfully added. | |
false | mode is incorrect, or failed to add. |
bool rcsc::rcg::Holder::addDispInfo2 | ( | const dispinfo_t2 & | dinfo2 | ) |
add new dispinfo_t2 (monitor v2)
dinfo2 | dispinfo_t2 struct data |
true | if successfully added. | |
false | mode is incorrect, or failed to add. |
virtual bool rcsc::rcg::Holder::addShowInfo | ( | const showinfo_t & | show | ) | [pure virtual] |
(pure virtual) add showinfo_t (rcg v2, monitor v1)
show | added data |
true | if successfully added. | |
false | mode is incorrect, or failed to add. |
virtual bool rcsc::rcg::Holder::addShowInfo2 | ( | const showinfo_t2 & | show | ) | [pure virtual] |
(pure virtual) add showinfo_t2 (monitor v2 only)
show | added data |
true | if successfully added. | |
false | mode is incorrect, or failed to add. |
virtual bool rcsc::rcg::Holder::addShortShowInfo2 | ( | const short_showinfo_t2 & | show2 | ) | [pure virtual] |
(pure virtual) add short_showinfo_t2 (rcg v3 only)
show2 | added data |
true | if successfully added. | |
false | mode is incorrect, or failed to add. |
virtual bool rcsc::rcg::Holder::addMsgInfo | ( | const Int16 | board, | |
const std::string & | msg | |||
) | [pure virtual] |
(pure virtual) add msginfo_t
board | added message type | |
msg | added message |
true | if successfully added. | |
false | mode is incorrect, or failed to add. |
virtual bool rcsc::rcg::Holder::addDrawInfo | ( | const drawinfo_t & | draw | ) | [pure virtual] |
(pure virtual) add drawinfo_t(rcg v1:v2, monitor v1)
draw | added data |
true | if successfully added. | |
false | mode is incorrect, or failed to add. |
virtual bool rcsc::rcg::Holder::addPlayMode | ( | const char | pmode | ) | [pure virtual] |
(pure virtual) add playmode
pmode | added playmode character |
true | if successfully added. | |
false | mode is incorrect, or failed to add. |
virtual bool rcsc::rcg::Holder::addTeamInfo | ( | const team_t & | team_l, | |
const team_t & | team_r | |||
) | [pure virtual] |
(pure virtual) add team_t * 2
team_l | added left team data | |
team_r | added right team data |
true | if successfully added. | |
false | mode is incorrect, or failed to add. |
virtual bool rcsc::rcg::Holder::addPlayerType | ( | const player_type_t & | ptinfo | ) | [pure virtual] |
(pure virtual) add player_type_t
ptinfo | added data |
true | if successfully added. | |
false | mode is incorrect, or failed to add. |
virtual bool rcsc::rcg::Holder::addServerParam | ( | const server_params_t & | sparams | ) | [pure virtual] |
(pure virtual) add server_params_t
sparams | added data |
true | if successfully added. | |
false | mode is incorrect, or failed to add. |
virtual bool rcsc::rcg::Holder::addPlayerParam | ( | const player_params_t & | pparams | ) | [pure virtual] |
(pure virtual) add player_param_t
pparams | added data |
true | if successfully added. | |
false | mode is incorrect, or failed to add. |
bool rcsc::rcg::Holder::addDisp3 | ( | const std::string & | msg | ) |
add new display information for monitor version 3.
msg | received message string added result |
virtual bool rcsc::rcg::Holder::addShow | ( | const int | time, | |
const ShowInfoT & | show | |||
) | [pure virtual] |
(pure virtual) add the start of show info v4
time | game time of handled data |
virtual bool rcsc::rcg::Holder::addMsg | ( | const int | time, | |
const int | board, | |||
const std::string & | msg | |||
) | [pure virtual] |
(pure virtual) add msg info v4
time | game time of handled data | |
board | parsed board info | |
msg | parsed message string |
virtual bool rcsc::rcg::Holder::addPlayMode | ( | const int | time, | |
const PlayMode | pm | |||
) | [pure virtual] |
(pure virtual) add playmode info v4
time | game time of handled data | |
pm | parsed playmode type |
virtual bool rcsc::rcg::Holder::addTeam | ( | const int | time, | |
const TeamT & | team_l, | |||
const TeamT & | team_r | |||
) | [pure virtual] |
(pure virtual0 add team info v4
time | game time of handled data | |
team_l | parsed left team data | |
team_r | parsed right team data |
virtual bool rcsc::rcg::Holder::addServerParam | ( | const std::string & | msg | ) | [pure virtual] |
(pure virtual) add server_param
msg | raw message string |
virtual bool rcsc::rcg::Holder::addPlayerParam | ( | const std::string & | msg | ) | [pure virtual] |
(pure virtual) add player_param
msg | raw message string |
virtual bool rcsc::rcg::Holder::addPlayerType | ( | const std::string & | msg | ) | [pure virtual] |
(pure virtual) add player_type
msg | raw message string |