serializer_v1.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_V1_H
00033 #define RCSC_RCG_SERIALIZER_V1_H
00034 
00035 #include <rcsc/rcg/serializer.h>
00036 
00037 namespace rcsc {
00038 namespace rcg {
00039 
00044 class SerializerV1
00045     : public Serializer {
00046 private:
00047 
00048 
00049 public:
00050 
00054     ~SerializerV1()
00055       { }
00056 
00057 
00063     virtual
00064     std::ostream & serializeHeader( std::ostream & os );
00065 
00072     virtual
00073     std::ostream & serializeParam( std::ostream & os,
00074                                    const std::string & msg );
00075 
00081     virtual
00082     std::ostream & serialize( std::ostream & os,
00083                               const server_params_t & param );
00084 
00090     virtual
00091     std::ostream & serialize( std::ostream & os,
00092                               const player_params_t & pparam );
00093 
00099     virtual
00100     std::ostream & serialize( std::ostream & os,
00101                               const player_type_t & type );
00102 
00109     virtual
00110     std::ostream & serialize( std::ostream & os,
00111                               const dispinfo_t & disp );
00112 
00119     virtual
00120     std::ostream & serialize( std::ostream & os,
00121                               const showinfo_t & show );
00122 
00129     virtual
00130     std::ostream & serialize( std::ostream & os,
00131                               const showinfo_t2 & show2 );
00132 
00139     virtual
00140     std::ostream & serialize( std::ostream & os,
00141                               const short_showinfo_t2 & show2 );
00142 
00149     virtual
00150     std::ostream & serialize( std::ostream & os,
00151                               const msginfo_t & msg );
00152 
00160     virtual
00161     std::ostream & serialize( std::ostream & os,
00162                               const Int16 board,
00163                               const std::string & msg );
00164 
00171     virtual
00172     std::ostream & serialize( std::ostream & os,
00173                               const drawinfo_t & draw );
00174 
00181     virtual
00182     std::ostream & serialize( std::ostream & os,
00183                               const char playmode );
00184 
00192     virtual
00193     std::ostream & serialize( std::ostream & os,
00194                               const team_t & team_l,
00195                               const team_t & team_r );
00196 
00204     virtual
00205     std::ostream & serialize( std::ostream & os,
00206                               const TeamT & team_l,
00207                               const TeamT & team_r );
00208 
00215     virtual
00216     std::ostream & serialize( std::ostream & os,
00217                               const ShowInfoT & show );
00218 
00225     virtual
00226     std::ostream & serialize( std::ostream & os,
00227                               const DispInfoT & disp );
00228 
00229 };
00230 
00231 } // end of namespace rcg
00232 } // end of namespace rcsc
00233 
00234 #endif

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