24 #ifndef OMNIEVENTS__EVENTQUEUE_H 25 #define OMNIEVENTS__EVENTQUEUE_H 63 bool moreEvents()
const;
64 CORBA::Any* nextEvent();
74 auto_ptr<Filter> f(filter);
78 inline void append(CORBA::Any* event)
80 if(!_filter.get() || _filter->keep(*event))
84 _next=(_next+1)%_size;
100 #endif // OMNIEVENTS__EVENTQUEUE_H long _next
Always points to the next slot to which an event will be written.
The EventQueue is a circular buffer, that contains _size-1 events.
void append(CORBA::Any *event)
int _next
Points to the next event to read.
auto_ptr< Filter > _filter
void setFilter(Filter *filter)