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

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef __BASICEVENTHANDLER_H_INCL__
  2. #define __BASICEVENTHANDLER_H_INCL__
  3. #include "basicEvent.h"
  4. #include "basicRing.h"
  5. /**
  6. * Class to add a dispatchEvent functionality to derival classes
  7. *
  8. * @author Gagua
  9. */
  10. class basicEventHandler
  11. {
  12. public:
  13. // Constructor
  14. basicEventHandler();
  15. // Destructor
  16. virtual ~basicEventHandler();
  17. virtual bool dispatchEvent(EVENT_CONTAINER * Evt)
  18. {
  19. if ( Evt == NULL ) return false;
  20. return true;
  21. }
  22. };
  23. typedef basicRingElement<basicEventHandler> EventHandlerIterator;
  24. typedef basicRing<basicEventHandler> EventHandlerRing;
  25. #endif // __BASICEVENTHANDLER_H_INCL__