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.

30 lines
585 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. return true;
  20. }
  21. };
  22. typedef basicRingElement<basicEventHandler> EventHandlerIterator;
  23. typedef basicRing<basicEventHandler> EventHandlerRing;
  24. #endif // __BASICEVENTHANDLER_H_INCL__