You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

31 lines
639 B

#ifndef __BASICEVENTHANDLER_H_INCL__
#define __BASICEVENTHANDLER_H_INCL__
#include "basicEvent.h"
#include "basicRing.h"
/**
* Class to add a dispatchEvent functionality to derival classes
*
* @author Gagua
*/
class basicEventHandler
{
public:
// Constructor
basicEventHandler();
// Destructor
virtual ~basicEventHandler();
virtual bool dispatchEvent(EVENT_CONTAINER * Evt)
{
if ( Evt == NULL ) return false;
return true;
}
};
typedef basicRingElement<basicEventHandler> EventHandlerIterator;
typedef basicRing<basicEventHandler> EventHandlerRing;
#endif // __BASICEVENTHANDLER_H_INCL__