⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 stdtimer.h

📁 在LINUX下运行的仿真机器人服务器源代码
💻 H
字号:
// -*-c++-*-/***************************************************************************                                   stdtimer.h                     The stadard timer used by the simualtor                             -------------------    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 STDTIMER_H#define STDTIMER_H#include "timer.h"#include "rcssexceptions.h"/** This is a subclass of the timer class. The run method specifes the    standard timer. This timer is controlled by the different server    configuration parameters that specify when the different messages    will arrive. It is a singleton class, which means it can only be    initialized once. To initialize the class, use the static instance    method with as argument the timeable object. To use this class at    a later time use the instance method with no argument. <BR>    StandardTimer::instance( Std );<BR>    StnadardTimer::instance().run(). */class StandardTimer     : public Timer{private:    static StandardTimer* s_instance;    static unsigned int s_ref_count;    bool                   gotsig;            // variables needed to keep track    int                    timedelta;         // of amount of arrived signals    bool                   lock_timedelta;      StandardTimer( Timeable &timeable );    StandardTimer( const StandardTimer& t );public:    static    StandardTimer&    instance( Timeable& timeable );    static    StandardTimer&    instance() throw( rcss::util::NullErr );    static    Ptr     create( Timeable& t);    static    void    destroy( StandardTimer* timer );        void    run();    static    void    check();};#endif

⌨️ 快捷键说明

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