timeable.h

来自「在LINUX下运行的仿真机器人服务器源代码」· C头文件 代码 · 共 51 行

H
51
字号
// -*-c++-*-/***************************************************************************                                   timeale.h            The timeable class is an abstract base class used by a timer                             -------------------    begin                : AUG-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.                                                        * *                                                                         * ***************************************************************************/#ifndef TIMEABLE_H#define TIMEABLE_H/** The timeable class is an abstract class which specifies the virtual methods    that should be implemented by the subclass. */class Timeable{public:  void recvFromClients()   { doRecvFromClients();   }  void newSimulatorStep()  { doNewSimulatorStep();  }    void sendSenseBody()     { doSendSenseBody();     }      void sendVisuals()       { doSendVisuals();       }     void sendCoachMessages() { doSendCoachMessages(); }       bool sendThink()         { return doSendThink();  }         void quit()              { doQuit();              }     	protected:  // virtual methods that should be defined in subclass  virtual void doRecvFromClients()   = 0;  virtual void doNewSimulatorStep()  = 0;  virtual void doSendSenseBody()     = 0;    virtual void doSendVisuals()       = 0;   virtual void doSendCoachMessages() = 0;  virtual bool doSendThink()         = 0;  virtual void doQuit()              = 0;};#endif

⌨️ 快捷键说明

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