holder.h

説明を見る。
00001 // -*-c++-*-
00002 
00008 /*
00009  *Copyright:
00010 
00011  Copyright (C) Hidehisa AKIYAMA
00012 
00013  This code is free software; you can redistribute it and/or
00014  modify it under the terms of the GNU Lesser General Public
00015  License as published by the Free Software Foundation; either
00016  version 2.1 of the License, or (at your option) any later version.
00017 
00018  This library is distributed in the hope that it will be useful,
00019  but WITHOUT ANY WARRANTY; without even the implied warranty of
00020  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00021  Lesser General Public License for more details.
00022 
00023  You should have received a copy of the GNU Lesser General Public
00024  License along with this library; if not, write to the Free Software
00025  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00026 
00027  *EndCopyright:
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     // Monitor version 3
00198     //
00199 
00205     bool addDisp3( const std::string & msg );
00206 
00207     //
00208     // RCG version 4
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 } // end namespace
00282 } // end namespace
00283 
00284 #endif

librcscに対してThu May 1 15:41:21 2008に生成されました。  doxygen 1.5.0