クラス rcsc::rcg::Reader

rcg data reader interface class. [詳細]

#include <reader.h>

rcsc::rcg::Readerに対する継承グラフ

rcsc::rcg::Handler すべてのメンバ一覧

Public メソッド

 Reader (Holder &holder)
 construct with holder object
virtual ~Reader ()
 virtual destructor
virtual bool handleLogVersion (const int ver)
 records rcg version
virtual bool handleDispInfo (const dispinfo_t &info)
 add distpinfo_t to the holder.
virtual bool handleShowInfo (const showinfo_t &info)
 adds showinfo_t to the holder.
virtual bool handleShortShowInfo2 (const short_showinfo_t2 &info)
 adds short_showinfo_t2 to the holder.
virtual bool handleMsgInfo (Int16 board, const std::string &msg)
 adds msginfo_t to the holder.
virtual bool handlePlayMode (char playmode)
 adds latest playmode to the holder.
virtual bool handleTeamInfo (const team_t &team_left, const team_t &team_right)
 adds two team info to the holder.
virtual bool handlePlayerType (const player_type_t &type)
 adds player_type_t to the holder.
virtual bool handleServerParam (const server_params_t &param)
 adds server_params_t to the holder.
virtual bool handlePlayerParam (const player_params_t &param)
 adds player_params_t to the holder.
virtual bool handleEOF ()
 called when stream reaches the end of file.
virtual bool handleShow (const int time, const ShowInfoT &show)
 (pure virtual) handle the start of show info v4
virtual bool handleMsg (const int time, const int board, const std::string &msg)
 handle msg info
virtual bool handlePlayMode (const int time, const PlayMode pm)
 handle playmode
virtual bool handleTeam (const int time, const TeamT &team_l, const TeamT &team_r)
 handle team info
virtual bool handleServerParam (const std::string &msg)
 handle server_param message
virtual bool handlePlayerParam (const std::string &msg)
 handle player_param message
virtual bool handlePlayerType (const std::string &msg)
 handle player_type message

説明

rcg data reader interface class.


コンストラクタとデストラクタ

rcsc::rcg::Reader::Reader ( Holder holder  )  [inline, explicit]

construct with holder object

引数:
holder reference to the holder instance.
It is assumed that only this is used to construct this class.


関数

virtual bool rcsc::rcg::Reader::handleLogVersion ( const int  ver  )  [inline, virtual]

records rcg version

引数:
ver log version.
戻り値:
always true.
This method is virtual. You can override this.

rcsc::rcg::Handlerを再定義しています。

virtual bool rcsc::rcg::Reader::handleDispInfo ( const dispinfo_t info  )  [inline, virtual]

add distpinfo_t to the holder.

引数:
info const reference of dispinfo_t struct.
戻り値:
registry status.
This method is used for rcg v1 format.

rcsc::rcg::Handlerを実装しています。

virtual bool rcsc::rcg::Reader::handleShowInfo ( const showinfo_t info  )  [inline, virtual]

adds showinfo_t to the holder.

引数:
info const reference of showinfo_t struct.
戻り値:
registry status.
This method is used for rcg v2 format.

rcsc::rcg::Handlerを実装しています。

virtual bool rcsc::rcg::Reader::handleShortShowInfo2 ( const short_showinfo_t2 info  )  [inline, virtual]

adds short_showinfo_t2 to the holder.

引数:
info const reference of short_showinfo_t struct.
戻り値:
registry status.
This method is used for rcg v3 format.

rcsc::rcg::Handlerを実装しています。

virtual bool rcsc::rcg::Reader::handleMsgInfo ( Int16  board,
const std::string &  msg 
) [inline, virtual]

adds msginfo_t to the holder.

引数:
board board parametor of msginfo_t
msg converted std::string message.
戻り値:
registry status.

rcsc::rcg::Handlerを実装しています。

virtual bool rcsc::rcg::Reader::handlePlayMode ( char  playmode  )  [inline, virtual]

adds latest playmode to the holder.

引数:
playmode type id(char) of playmode.
戻り値:
registry status.

rcsc::rcg::Handlerを実装しています。

virtual bool rcsc::rcg::Reader::handleTeamInfo ( const team_t team_left,
const team_t team_right 
) [inline, virtual]

adds two team info to the holder.

引数:
team_left team_t for the left team
team_right team_t for the right team
戻り値:
registry status.

rcsc::rcg::Handlerを実装しています。

virtual bool rcsc::rcg::Reader::handlePlayerType ( const player_type_t type  )  [inline, virtual]

adds player_type_t to the holder.

引数:
type player_type_t info
戻り値:
registry status.

rcsc::rcg::Handlerを実装しています。

virtual bool rcsc::rcg::Reader::handleServerParam ( const server_params_t param  )  [inline, virtual]

adds server_params_t to the holder.

引数:
param server_params_t info
戻り値:
registry status.

rcsc::rcg::Handlerを実装しています。

virtual bool rcsc::rcg::Reader::handlePlayerParam ( const player_params_t param  )  [inline, virtual]

adds player_params_t to the holder.

引数:
param player_params_t info
戻り値:
registry status.

rcsc::rcg::Handlerを実装しています。

virtual bool rcsc::rcg::Reader::handleEOF (  )  [inline, virtual]

called when stream reaches the end of file.

戻り値:
always true.
You can override this in the derived classes.

rcsc::rcg::Handlerを実装しています。

virtual bool rcsc::rcg::Reader::handleShow ( const int  time,
const ShowInfoT show 
) [inline, virtual]

(pure virtual) handle the start of show info v4

引数:
time game time of handled show info
show read data
戻り値:
handled result

rcsc::rcg::Handlerを実装しています。

virtual bool rcsc::rcg::Reader::handleMsg ( const int  time,
const int  board,
const std::string &  msg 
) [inline, virtual]

handle msg info

引数:
time game time of handled msg info
board message board type
msg read data
戻り値:
handled result

rcsc::rcg::Handlerを実装しています。

virtual bool rcsc::rcg::Reader::handlePlayMode ( const int  time,
const PlayMode  pm 
) [inline, virtual]

handle playmode

引数:
time game time of handled playmode info
pm playmode id
戻り値:
handled result

rcsc::rcg::Handlerを実装しています。

virtual bool rcsc::rcg::Reader::handleTeam ( const int  time,
const TeamT team_l,
const TeamT team_r 
) [inline, virtual]

handle team info

引数:
time game time of handled team info
team_l left team info
team_r right team info
戻り値:
handled result

rcsc::rcg::Handlerを実装しています。

virtual bool rcsc::rcg::Reader::handleServerParam ( const std::string &  msg  )  [inline, virtual]

handle server_param message

引数:
msg raw message string
戻り値:
handled result

rcsc::rcg::Handlerを実装しています。

virtual bool rcsc::rcg::Reader::handlePlayerParam ( const std::string &  msg  )  [inline, virtual]

handle player_param message

引数:
msg raw message string
戻り値:
handled result

rcsc::rcg::Handlerを実装しています。

virtual bool rcsc::rcg::Reader::handlePlayerType ( const std::string &  msg  )  [inline, virtual]

handle player_type message

引数:
msg raw message string
戻り値:
handled result

rcsc::rcg::Handlerを実装しています。


このクラスの説明は次のファイルから生成されました:
librcscに対してThu May 1 15:41:28 2008に生成されました。  doxygen 1.5.0