Logo Search packages:      
Sourcecode: pwlib version File versions

PAdaptiveDelay Class Reference

#include <delaychan.h>

Inheritance diagram for PAdaptiveDelay:


List of all members.

Detailed Description

Class for implementing an "adaptive" delay. This class will cause the the caller to, on average, delay the specified number of milliseconds between calls. This can be used to simulate hardware timing for a sofwtare only device

Definition at line 64 of file delaychan.h.

Comparison functions

virtual Comparison Compare (const PObject &obj) const
virtual Comparison CompareObjectMemoryDirect (const PObject &obj) const
bool operator!= (const PObject &obj) const
bool operator< (const PObject &obj) const
bool operator<= (const PObject &obj) const
bool operator== (const PObject &obj) const
bool operator> (const PObject &obj) const
bool operator>= (const PObject &obj) const
enum  Comparison { LessThan = -1, EqualTo = 0, GreaterThan = 1 }

Run Time Type functions

virtual const char * GetClass (unsigned=0) const
virtual BOOL InternalIsDescendant (const char *clsName) const
BOOL IsClass (const char *cls) const
static const char * Class ()

I/O functions

virtual void PrintOn (ostream &strm) const
virtual void ReadFrom (istream &strm)
ostream & operator<< (ostream &strm, const PObject &obj)
istream & operator>> (istream &strm, PObject &obj)

Public Member Functions

BOOL Delay (int time)
void Restart ()
Miscellaneous functions
virtual PObjectClone () const
virtual PINDEX HashFunction () const

Protected Attributes

BOOL firstTime
PTime targetTime

Private Member Functions

 PCLASSINFO (PAdaptiveDelay, PObject)

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index