VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
interruptFlag.h
Go to the documentation of this file.
1 #pragma once
2 
4 #include "boost/timer/timer.hpp"
5 
10 {
11 public:
13  virtual ~DtInterruptFlag() {};
14  virtual bool interrupt() const = 0;
15 
16 private:
18  DtInterruptFlag(const DtInterruptFlag& orig);
20  DtInterruptFlag& operator=(const DtInterruptFlag& orig);
21 
22 protected:
23 };
24 
27 {
28 public:
30  virtual bool interrupt() const { return false; };
31 };
32 
36 {
37 public:
38  DtTimerInterrupt(unsigned int milliseconds);
39  virtual bool interrupt() const;
40 
41 private:
44 
45 protected:
46  boost::timer::cpu_timer myTimer;
47  boost::timer::nanosecond_type myExpireTime;
48 };
DtIndefiniteInterrupt()
Definition: interruptFlag.h:29
boost::timer::cpu_timer myTimer
Definition: interruptFlag.h:46
Interface for a customizable interrupt flag that can be passed into a function to allow the calling c...
Definition: interruptFlag.h:9
virtual bool interrupt() const =0
A DtInterruptFlag which triggers interrupt after a number of milliseconds defined at the creation tim...
Definition: interruptFlag.h:35
boost::timer::nanosecond_type myExpireTime
Definition: interruptFlag.h:47
DtInterruptFlag()
Definition: interruptFlag.h:12
#define DT_DLL_vrfutil
This file is used to determine how to build Disable inconsistent dll linkage warning Visual Studio 6...
Definition: vrfutilDefines.h:34
virtual ~DtInterruptFlag()
Definition: interruptFlag.h:13
A concrete DtInterruptFlag which never triggers an interrupt.
Definition: interruptFlag.h:26
virtual bool interrupt() const
Definition: interruptFlag.h:30

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)