Go to the first, previous, next, last section, table of contents.


CNEventList -- List of Events

SYNOPSIS

#include <CNCL/EventList.h>

TYPE

CN_EVENTLIST

BASE CLASSES

CNObject

DERIVED CLASSES

None

RELATED CLASSES

CNEvent, CNEventScheduler

DESCRIPTION

CNEventList is the list of events managed by CNEventScheduler. It is a wrapper around CNDLList for creating a list of sorted events. CNEvents are sorted by their scheduled time and their priority.

Constructors:

CNEventList();
CNEventList(CNParam *param);
Initializes the event list to empty.

In addition to the member functions required by CNCL, CNEventList provides:

void add_event(CNEvent *ev);
Adds an event to the list.
void delete_event(CNEventID id);
Deletes an event from the list, using the ID code.
void delete_events(CNEventHandler *evh, bool to);
Deletes all events from the list. If to equals TRUE the events addressed to event handler evh are deleted, else the events coming from that event handler.
void delete_all(CNEventID id);
Deletes all events from the list.
CNEvent *next_event();
Gets the next event (the one at the front) from the list.
CNEvent *peek_event();
CNEvent *peek_event(CNEventID id);
Returns a pointer to the next scheduled event or a pointer to the event with ID id, NIL if not available.


Go to the first, previous, next, last section, table of contents.