stdtimer.h
来自「2009 ROBOCUP 仿真2DSERVER 源码」· C头文件 代码 · 共 92 行
H
92 行
// -*-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#if defined(_WIN32) || defined(__WIN32__) || defined (WIN32)#define _WIN32_WINNT 0x0500#include <Winsock2.h>#include <Windows.h>#endif#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; static bool gotsig; // variables needed to keep track static int timedelta; // of amount of arrived signals static bool lock_timedelta; StandardTimer( const StandardTimer& t );public: StandardTimer( Timeable &timeable );// static// StandardTimer&// instance( Timeable& timeable );// static// StandardTimer&// instance() throw( rcss::util::NullErr );// static// Ptr// create( Timeable& t);// static// void// destroy( StandardTimer* timer ); void run();#if defined(_WIN32) || defined(__WIN32__) || defined (WIN32) static VOID CALLBACK check(PVOID lpParam, BOOL TimerOrWaitFired);#else static void check();#endif};#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?