serializercommonstdv1.cpp

来自「2009 ROBOCUP 仿真2DSERVER 源码」· C++ 代码 · 共 133 行

CPP
133
字号
// -*-c++-*-/***************************************************************************                            serializercommonstdv1.cc                  Class for serializing data to std v1 clients                             -------------------    begin                : 27-JAN-2003    copyright            : (C) 2003 by The RoboCup Soccer Server                           Maintenance Group.    email                : sserver-admin@lists.sourceforge.net***************************************************************************//*************************************************************************** *                                                                         * *   This program is free software; you can redistribute it and/or modify  * *   it under the terms of the GNU LGPL as published by the Free Software  * *   Foundation; either version 2 of the License, or (at your option) any  * *   later version.                                                        * *                                                                         * ***************************************************************************/#include "serializercommonstdv1.h"#include "clangmsg.h"namespace rcss {SerializerCommonStdv1::SerializerCommonStdv1(){}SerializerCommonStdv1::~SerializerCommonStdv1(){}constSerializerCommonStdv1 &SerializerCommonStdv1::instance(){    static SerializerCommonStdv1 ser;    return ser;}voidSerializerCommonStdv1::serializeServerParamBegin( std::ostream & ) const{}voidSerializerCommonStdv1::serializeServerParamEnd( std::ostream & ) const{}voidSerializerCommonStdv1::serializePlayerParamBegin( std::ostream & ) const{}voidSerializerCommonStdv1::serializePlayerParamEnd( std::ostream & ) const{}voidSerializerCommonStdv1::serializePlayerTypeBegin( std::ostream & ) const{}voidSerializerCommonStdv1::serializePlayerTypeEnd( std::ostream & ) const{}voidSerializerCommonStdv1::serializeParam( std::ostream &,                                       const int ) const{}voidSerializerCommonStdv1::serializeParam( std::ostream &,                                       const unsigned int ) const{}voidSerializerCommonStdv1::serializeParam( std::ostream &,                                       const bool ) const{}voidSerializerCommonStdv1::serializeParam( std::ostream &,                                       const double & ) const{}voidSerializerCommonStdv1::serializeParam( std::ostream &,                                       const std::string & ) const{}namespace {constSerializerCommon &create(){    return SerializerCommonStdv1::instance();}RegHolder v1 = SerializerCommon::factory().autoReg( &create, 1 );RegHolder v2 = SerializerCommon::factory().autoReg( &create, 2 );RegHolder v3 = SerializerCommon::factory().autoReg( &create, 3 );RegHolder v4 = SerializerCommon::factory().autoReg( &create, 4 );RegHolder v5 = SerializerCommon::factory().autoReg( &create, 5 );RegHolder v6 = SerializerCommon::factory().autoReg( &create, 6 );}}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?