00001
00002
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00031
00032 #ifndef RCSC_RCG_HOLDER_H
00033 #define RCSC_RCG_HOLDER_H
00034
00035 #include <rcsc/rcg/types.h>
00036
00037 #include <string>
00038
00039 namespace rcsc {
00040 namespace rcg {
00041
00049 class Holder {
00050 private:
00051
00052 int M_log_version;
00053
00054 public:
00055
00056 Holder()
00057 : M_log_version( 0 )
00058 { }
00059
00063 virtual
00064 ~Holder()
00065 { }
00066
00071 int logVersion() const
00072 {
00073 return M_log_version;
00074 }
00075
00080 bool setLogVersion( const int ver )
00081 {
00082 M_log_version = ver;
00083 return true;
00084 }
00085
00092 bool addDispInfo( const dispinfo_t & dinfo );
00093
00100 bool addDispInfo2( const dispinfo_t2 & dinfo2 );
00101
00108 virtual
00109 bool addShowInfo( const showinfo_t & show ) = 0;
00110
00117 virtual
00118 bool addShowInfo2( const showinfo_t2 & show ) = 0;
00119
00126 virtual
00127 bool addShortShowInfo2( const short_showinfo_t2 & show2 ) = 0;
00128
00136 virtual
00137 bool addMsgInfo( const Int16 board,
00138 const std::string & msg ) = 0;
00139
00146 virtual
00147 bool addDrawInfo( const drawinfo_t & draw ) = 0;
00148
00155 virtual
00156 bool addPlayMode( const char pmode ) = 0;
00157
00165 virtual
00166 bool addTeamInfo( const team_t & team_l,
00167 const team_t & team_r ) = 0;
00168
00175 virtual
00176 bool addPlayerType( const player_type_t & ptinfo ) = 0;
00177
00184 virtual
00185 bool addServerParam( const server_params_t & sparams ) = 0;
00186
00193 virtual
00194 bool addPlayerParam( const player_params_t & pparams ) = 0;
00195
00196
00197
00198
00199
00205 bool addDisp3( const std::string & msg );
00206
00207
00208
00209
00210
00216 virtual
00217 bool addShow( const int time,
00218 const ShowInfoT & show ) = 0;
00219
00227 virtual
00228 bool addMsg( const int time,
00229 const int board,
00230 const std::string & msg ) = 0;
00231
00238 virtual
00239 bool addPlayMode( const int time,
00240 const PlayMode pm ) = 0;
00241
00249 virtual
00250 bool addTeam( const int time,
00251 const TeamT & team_l,
00252 const TeamT & team_r ) = 0;
00253
00259 virtual
00260 bool addServerParam( const std::string & msg ) = 0;
00261
00267 virtual
00268 bool addPlayerParam( const std::string & msg ) = 0;
00269
00275 virtual
00276 bool addPlayerType( const std::string & msg ) = 0;
00277
00278
00279 };
00280
00281 }
00282 }
00283
00284 #endif