LIBRCSC Docs
Documentation for HELIOS's BASE LIBRCSC library for RoboCup 2D Simulation League.
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
serializer_v1.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_V1_H
33#define RCSC_RCG_SERIALIZER_V1_H
34
35#include <rcsc/rcg/serializer.h>
36
37namespace rcsc {
38namespace rcg {
39
45 : public Serializer {
46private:
47
48
49public:
50
55 { }
56
57
63 virtual
64 std::ostream & serializeHeader( std::ostream & os ) override;
65
72 virtual
73 std::ostream & serializeParam( std::ostream & os,
74 const std::string & msg ) override;
75
82 virtual
83 std::ostream & serialize( std::ostream & os,
84 const server_params_t & param ) override;
85
92 virtual
93 std::ostream & serialize( std::ostream & os,
94 const player_params_t & pparam ) override;
95
102 virtual
103 std::ostream & serialize( std::ostream & os,
104 const player_type_t & type ) override;
105
112 virtual
113 std::ostream & serialize( std::ostream & os,
114 const dispinfo_t & disp ) override;
115
122 virtual
123 std::ostream & serialize( std::ostream & os,
124 const showinfo_t & show ) override;
125
132 virtual
133 std::ostream & serialize( std::ostream & os,
134 const showinfo_t2 & show2 ) override;
135
142 virtual
143 std::ostream & serialize( std::ostream & os,
144 const short_showinfo_t2 & show2 ) override;
145
152 virtual
153 std::ostream & serialize( std::ostream & os,
154 const msginfo_t & msg ) override;
155
163 virtual
164 std::ostream & serialize( std::ostream & os,
165 const Int16 board,
166 const std::string & msg ) override;
167
174 virtual
175 std::ostream & serialize( std::ostream & os,
176 const drawinfo_t & draw ) override;
177
184 virtual
185 std::ostream & serialize( std::ostream & os,
186 const char playmode ) override;
187
195 virtual
196 std::ostream & serialize( std::ostream & os,
197 const team_t & team_l,
198 const team_t & team_r ) override;
199
207 virtual
208 std::ostream & serialize( std::ostream & os,
209 const TeamT & team_l,
210 const TeamT & team_r ) override;
211
218 virtual
219 std::ostream & serialize( std::ostream & os,
220 const ShowInfoT & show ) override;
221
228 virtual
229 std::ostream & serialize( std::ostream & os,
230 const DispInfoT & disp ) override;
231
232};
233
234} // end of namespace rcg
235} // end of namespace rcsc
236
237#endif
v1 format rcg data serializer interface class
Definition: serializer_v1.h:45
virtual std::ostream & serialize(std::ostream &os, const server_params_t &param) override
write server param
virtual std::ostream & serialize(std::ostream &os, const TeamT &team_l, const TeamT &team_r) override
write team info
virtual std::ostream & serialize(std::ostream &os, const drawinfo_t &draw) override
write drawinfo_t
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 showinfo_t2 &show2) override
write showinfo_t2
virtual std::ostream & serialize(std::ostream &os, const char playmode) override
write playmode
virtual std::ostream & serialize(std::ostream &os, const dispinfo_t &disp) override
write dispinfo_t.
~SerializerV1()
destruct all
Definition: serializer_v1.h:54
virtual std::ostream & serialize(std::ostream &os, const showinfo_t &show) override
write showinfo_t.
virtual std::ostream & serialize(std::ostream &os, const DispInfoT &disp) override
write DispInfoT
virtual std::ostream & serialize(std::ostream &os, const ShowInfoT &show) override
write ShowInfoT
virtual std::ostream & serializeHeader(std::ostream &os) override
write header
virtual std::ostream & serialize(std::ostream &os, const msginfo_t &msg) override
write message info
virtual std::ostream & serialize(std::ostream &os, const short_showinfo_t2 &show2) override
write short_showinfo_t2.
virtual std::ostream & serialize(std::ostream &os, const player_params_t &pparam) override
write player param
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 team_t &team_l, const team_t &team_r) override
write team info
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