serializer_v4.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_V4_H
00033 #define RCSC_RCG_SERIALIZER_V4_H
00034 
00035 #include <rcsc/rcg/serializer.h>
00036 
00037 namespace rcsc {
00038 namespace rcg {
00039 
00044 class SerializerV4
00045     : public Serializer {
00046 private:
00047 
00048     Int32 M_time; 
00049 
00050 public:
00051 
00055     SerializerV4()
00056         : M_time( 0 )
00057       { }
00058 
00062     ~SerializerV4()
00063       { }
00064 
00070     virtual
00071     std::ostream & serializeHeader( std::ostream & os );
00072 
00079     virtual
00080     std::ostream & serializeParam( std::ostream & os,
00081                                    const std::string & msg );
00082 
00088     virtual
00089     std::ostream & serialize( std::ostream & os,
00090                               const server_params_t & param );
00091 
00097     virtual
00098     std::ostream & serialize( std::ostream & os,
00099                               const player_params_t & pparam );
00100 
00106     virtual
00107     std::ostream & serialize( std::ostream & os,
00108                               const player_type_t & type );
00109 
00116     virtual
00117     std::ostream & serialize( std::ostream & os,
00118                               const dispinfo_t & disp );
00119 
00126     virtual
00127     std::ostream & serialize( std::ostream & os,
00128                               const showinfo_t & show );
00129 
00136     virtual
00137     std::ostream & serialize( std::ostream & os,
00138                               const showinfo_t2 & show2 );
00139 
00146     virtual
00147     std::ostream & serialize( std::ostream & os,
00148                               const short_showinfo_t2 & show2 );
00149 
00155     virtual
00156     std::ostream & serialize( std::ostream & os,
00157                               const msginfo_t & msg );
00158 
00166     virtual
00167     std::ostream & serialize( std::ostream & os,
00168                               const Int16 board,
00169                               const std::string & msg );
00170 
00177     virtual
00178     std::ostream & serialize( std::ostream & os,
00179                               const drawinfo_t & draw );
00180 
00187     virtual
00188     std::ostream & serialize( std::ostream & os,
00189                               const char playmode );
00190 
00198     virtual
00199     std::ostream & serialize( std::ostream & os,
00200                               const team_t & team_l,
00201                               const team_t & team_r );
00202 
00210     virtual
00211     std::ostream & serialize( std::ostream & os,
00212                               const TeamT & team_l,
00213                               const TeamT & team_r );
00214 
00221     virtual
00222     std::ostream & serialize( std::ostream & os,
00223                               const ShowInfoT & show );
00224 
00231     virtual
00232     std::ostream & serialize( std::ostream & os,
00233                               const DispInfoT & disp );
00234 
00235 };
00236 
00237 } // end of namespace rcg
00238 } // end of namespace rcsc
00239 
00240 #endif

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