stdoutsaver.h

来自「2009 ROBOCUP 仿真2DSERVER 源码」· C头文件 代码 · 共 86 行

H
86
字号
// -*-c++-*-/***************************************************************************                                stdoutsaver.h                    Class for saving results to the standard output stream                             -------------------    begin                : 2008-10-27    copyright            : (C) 2008 by The RoboCup Soccer Simulator                           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.                                                        * *                                                                         * ***************************************************************************/#ifndef RCSS_STDOUTSAVER_H#define RCSS_STDOUTSAVER_H#include "resultsaver.hpp"class STDOutSaver    : public ResultSaver {public:    STDOutSaver();    virtual    ~STDOutSaver();private:    virtual    bool doEnabled() const;    virtual    void doSaveStart();    virtual    void doSaveTime( const tm & time );    virtual    void doSaveTeamName( team_id id,                         const std::string & name );    virtual    void doSaveCoachName( team_id id,                          const std::string & name );    virtual    void doSaveScore( team_id id,                      unsigned int score );    virtual    void doSavePenTaken( team_id id,                         unsigned int taken );    virtual    void doSavePenScored( team_id id,                          unsigned int scored );    virtual    void doSaveCoinTossWinner( team_id id );    virtual    bool doSaveComplete();    virtual    const char * doGetName() const;    tm M_time;    std::string M_team_name[ 2 ];    std::string M_coach_name[ 2 ];    unsigned int M_score[ 2 ];    unsigned int M_pen_taken[ 2 ];    unsigned int M_pen_scored[ 2 ];    bool M_left_coin;    bool M_right_coin;};#endif

⌨️ 快捷键说明

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