Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

Timeout Class Reference

A timeout class for linux and win32. More...

#include <Timeout.h>

Collaboration diagram for Timeout:

Collaboration graph
[legend]
List of all members.

Public Types

typedef bool (* Callback )(void*)

Public Methods

 Timeout (long milliseconds, bool periodic = false, Callback callback = 0, void* data = 0)
 ~Timeout ()
void Set (long milliseconds)
 Set the interval for the timeout.

void Start ()
 Start the timeout.

void Stop ()
 Stop the timeout.

void Wait ()
 Wait for the timeout to occurr if it hasn't already.

void SetCallback (Callback callback, void* data = 0)
 Set the function to callback when the timeout occurs.

void SetPeriodic ()
void SetOneShot ()

Detailed Description

A timeout class for linux and win32.

The callback doesn't work under linux. You'll have to use wait instead.


The documentation for this class was generated from the following files:
Generated at Mon Nov 27 01:47:20 2000 for LibPenguinPlay by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000