📄 serializeronlinecoachstdv8.cc
字号:
// -*-c++-*-/*************************************************************************** serializeronlinecoachstdv8.cc Class for serializing data to std v8 online coaches ------------------- begin : 27-MAY-2002 copyright : (C) 2002 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 "serializeronlinecoachstdv8.h"namespace rcss{ SerializerOnlineCoachStdv8::SerializerOnlineCoachStdv8( const SerializerCommon& common ) : SerializerOnlineCoachStdv7( common ) {} SerializerOnlineCoachStdv8::~SerializerOnlineCoachStdv8() {} const SerializerOnlineCoachStdv8* SerializerOnlineCoachStdv8::instance() { rcss::SerializerCommon::Creator cre; if( !rcss::SerializerCommon::factory().getCreator( cre, 8 ) ) return NULL; static SerializerOnlineCoachStdv8 ser( cre() ); return &ser; } void SerializerOnlineCoachStdv8::serializePlayerClangVer( std::ostream& strm, const std::string& name, const unsigned int& min, const unsigned int& max ) const { strm << "(clang (ver " << name << " " << min << " " << max << "))"; } namespace { const SerializerOnlineCoach* create() { return SerializerOnlineCoachStdv8::instance(); } lib::RegHolder v8 = SerializerOnlineCoach::factory().autoReg( &create, 8 ); lib::RegHolder v9 = SerializerOnlineCoach::factory().autoReg( &create, 9 ); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -