LIBRCSC Docs
Documentation for HELIOS's BASE LIBRCSC library for RoboCup 2D Simulation League.
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
serializer_v2.h
Go to the documentation of this file.
1// -*-c++-*-
2
8/*
9 *Copyright:
10
11 Copyright (C) Hidehisa AKIYAMA
12
13 This code is free software; you can redistribute it and/or
14 modify it under the terms of the GNU Lesser General Public
15 License as published by the Free Software Foundation; either
16 version 3 of the License, or (at your option) any later version.
17
18 This library is distributed in the hope that it will be useful,
19 but WITHOUT ANY WARRANTY; without even the implied warranty of
20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21 Lesser General Public License for more details.
22
23 You should have received a copy of the GNU Lesser General Public
24 License along with this library; if not, write to the Free Software
25 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26
27 *EndCopyright:
28 */
29
31
32#ifndef RCSC_RCG_SERIALIZER_V2_H
33#define RCSC_RCG_SERIALIZER_V2_H
34
35#include <rcsc/rcg/serializer.h>
36
37namespace rcsc {
38namespace rcg {
39
45 : public Serializer {
46private:
47
48
49public:
50
55 { }
56
62 virtual
63 std::ostream & serializeHeader( std::ostream & os ) override;
64
71 virtual
72 std::ostream & serializeParam( std::ostream & os,
73 const std::string & msg ) override;
74
81 virtual
82 std::ostream & serialize( std::ostream & os,
83 const server_params_t & param ) override;
84
91 virtual
92 std::ostream & serialize( std::ostream & os,
93 const player_params_t & pparam ) override;
94
101 virtual
102 std::ostream & serialize( std::ostream & os,
103 const player_type_t & type ) override;
104
111 virtual
112 std::ostream & serialize( std::ostream & os,
113 const dispinfo_t & disp ) override;
114
121 virtual
122 std::ostream & serialize( std::ostream & os,
123 const showinfo_t & show ) override;
124
131 virtual
132 std::ostream & serialize( std::ostream & os,
133 const showinfo_t2 & show2 ) override;
134
141 virtual
142 std::ostream & serialize( std::ostream & os,
143 const short_showinfo_t2 & show2 ) override;
144
151 virtual
152 std::ostream & serialize( std::ostream & os,
153 const msginfo_t & msg ) override;
154
162 virtual
163 std::ostream & serialize( std::ostream & os,
164 const Int16 board,
165 const std::string & msg ) override;
166
173 virtual
174 std::ostream & serialize( std::ostream & os,
175 const drawinfo_t & draw ) override;
176
183 virtual
184 std::ostream & serialize( std::ostream & os,
185 const char playmode ) override;
186
194 virtual
195 std::ostream & serialize( std::ostream & os,
196 const team_t & team_l,
197 const team_t & team_r ) override;
198
206 virtual
207 std::ostream & serialize( std::ostream & os,
208 const TeamT & team_l,
209 const TeamT & team_r ) override;
210
217 virtual
218 std::ostream & serialize( std::ostream & os,
219 const ShowInfoT & show ) override;
220
227 virtual
228 std::ostream & serialize( std::ostream & os,
229 const DispInfoT & disp ) override;
230
231};
232
233} // end of namespace rcg
234} // end of namespace rcsc
235
236#endif
v2 format rcg data serializer interface class
Definition: serializer_v2.h:45
virtual std::ostream & serialize(std::ostream &os, const msginfo_t &msg) override
write message info
virtual std::ostream & serialize(std::ostream &os, const showinfo_t &show) override
write showinfo_t.
virtual std::ostream & serialize(std::ostream &os, const server_params_t &param) override
write server param
virtual std::ostream & serialize(std::ostream &os, const player_params_t &pparam) override
write player param
virtual std::ostream & serialize(std::ostream &os, const drawinfo_t &draw) override
write drawinfo_t
virtual std::ostream & serialize(std::ostream &os, const DispInfoT &disp) override
write DispInfoT
virtual std::ostream & serialize(std::ostream &os, const showinfo_t2 &show2) override
write showinfo_t2
virtual std::ostream & serialize(std::ostream &os, const TeamT &team_l, const TeamT &team_r) override
write team info
virtual std::ostream & serializeHeader(std::ostream &os) override
write header
virtual std::ostream & serialize(std::ostream &os, const ShowInfoT &show) override
write ShowInfoT
virtual std::ostream & serialize(std::ostream &os, const team_t &team_l, const team_t &team_r) override
write team info
virtual std::ostream & serialize(std::ostream &os, const Int16 board, const std::string &msg) override
write message info
virtual std::ostream & serialize(std::ostream &os, const dispinfo_t &disp) override
write dispinfo_t.
virtual std::ostream & serialize(std::ostream &os, const short_showinfo_t2 &show2) override
write short_showinfo_t2.
~SerializerV2()
destruct all
Definition: serializer_v2.h:54
virtual std::ostream & serialize(std::ostream &os, const player_type_t &type) override
write player type param
virtual std::ostream & serializeParam(std::ostream &os, const std::string &msg) override
write parameter message
virtual std::ostream & serialize(std::ostream &os, const char playmode) override
write playmode
rcg data serializer interface class
Definition: serializer.h:50
std::int16_t Int16
type of the 16bits integer value
Definition: types.h:46
rcg serializer class Header File.
display information
Definition: types.h:1131
show information
Definition: types.h:1121
team information
Definition: types.h:1017
data block for rcssmonitor v1 protocol and rcg v1/v2
Definition: types.h:220
drawing data
Definition: types.h:207
message data
Definition: types.h:165
heterogenious player trade-off parametors
Definition: types.h:484
player type parameters
Definition: types.h:307
server parametors
Definition: types.h:341
view data.
Definition: types.h:297
view data of rcssmonitor v2 protocol
Definition: types.h:283
view data of rcssmonitor v1 protocol
Definition: types.h:154
team data
Definition: types.h:145