VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
periodicTimer.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2006 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
8 #include "vrfutil/simClock.h"
9 #include "vrfcore/timer.h"
10 
19 #include "vrfcore/vrfcoreDefines.h"
20 
21 class DtSimManager;
22 
24 {
25 protected:
28 
29 public:
34  DtPeriodicTimer (const DtSimManager *clock, const unsigned int type,
35  const DtTime period, const DtTimerCallbackFcn callback,
36  void *usr, bool periodIsRealTime = false);
37 
38  virtual ~DtPeriodicTimer();
39 
40  virtual void fire();
41 
42  virtual bool periodIsRealTime() const override
43  {
44  return myPeriodIsRealTime;
45  }
46 
47 protected:
51 };
52 
53 
54 
Instances of DtTimer are used to maintain the information needed to represent some kind of scheduled ...
Definition: timer.h:38
DtTimer & operator=(const DtTimer &orig)
assignment operator
const DtSimManager * myClock
Definition: periodicTimer.h:49
bool myPeriodIsRealTime
Definition: periodicTimer.h:50
const DtTime myPeriod
Definition: periodicTimer.h:48
File: vlClock.h.
virtual void fire()
Sets off (fires) the timer. Sets the fired state to true. If a callback exists, invokes the callback...
void(* DtTimerCallbackFcn)(DtTimer *timer)
Definition: timer.h:24
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:121
virtual bool periodIsRealTime() const override
Whether or not to measure period in real time (vs. sim time). Default is false.
Definition: periodicTimer.h:42
Definition: periodicTimer.h:23
#define DT_DLL_vrfcore
This file is used to determine how to build.
Definition: vrfcoreDefines.h:25

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)