serializer_v2.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_SERIALIZER_V2_H
00033 #define RCSC_RCG_SERIALIZER_V2_H
00034 
00035 #include <rcsc/rcg/serializer.h>
00036 
00037 namespace rcsc {
00038 namespace rcg {
00039 
00044 class SerializerV2
00045     : public Serializer {
00046 private:
00047 
00048 
00049 public:
00050 
00054     ~SerializerV2()
00055       { }
00056 
00062     virtual
00063     std::ostream & serializeHeader( std::ostream & os );
00064 
00071     virtual
00072     std::ostream & serializeParam( std::ostream & os,
00073                                    const std::string & msg );
00074 
00080     virtual
00081     std::ostream & serialize( std::ostream & os,
00082                               const server_params_t & param );
00083 
00089     virtual
00090     std::ostream & serialize( std::ostream & os,
00091                               const player_params_t & pparam );
00092 
00098     virtual
00099     std::ostream & serialize( std::ostream & os,
00100                               const player_type_t & type );
00101 
00108     virtual
00109     std::ostream & serialize( std::ostream & os,
00110                               const dispinfo_t & disp );
00111 
00118     virtual
00119     std::ostream & serialize( std::ostream & os,
00120                               const showinfo_t & show );
00121 
00128     virtual
00129     std::ostream & serialize( std::ostream & os,
00130                               const showinfo_t2 & show2 );
00131 
00138     virtual
00139     std::ostream & serialize( std::ostream & os,
00140                               const short_showinfo_t2 & show2 );
00141 
00147     virtual
00148     std::ostream & serialize( std::ostream & os,
00149                               const msginfo_t & msg );
00150 
00158     virtual
00159     std::ostream & serialize( std::ostream & os,
00160                               const Int16 board,
00161                               const std::string & msg );
00162 
00169     virtual
00170     std::ostream & serialize( std::ostream & os,
00171                               const drawinfo_t & draw );
00172 
00179     virtual
00180     std::ostream & serialize( std::ostream & os,
00181                               const char playmode );
00182 
00190     virtual
00191     std::ostream & serialize( std::ostream & os,
00192                               const team_t & team_l,
00193                               const team_t & team_r );
00194 
00202     virtual
00203     std::ostream & serialize( std::ostream & os,
00204                               const TeamT & team_l,
00205                               const TeamT & team_r );
00206 
00213     virtual
00214     std::ostream & serialize( std::ostream & os,
00215                               const ShowInfoT & show );
00216 
00223     virtual
00224     std::ostream & serialize( std::ostream & os,
00225                               const DispInfoT & disp );
00226 
00227 };
00228 
00229 } // end of namespace rcg
00230 } // end of namespace rcsc
00231 
00232 #endif

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