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.

48 lines
1.3 KiB

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef __BASICEVENTHANDLER_H_INCL__
  2. #define __BASICEVENTHANDLER_H_INCL__
  3. #include "basicRing.h"
  4. #include "basicEvent.h"
  5. /**
  6. * TODO: Add class description
  7. *
  8. * @author Gagua
  9. */
  10. class basicEventHandler {
  11. public:
  12. // Constructor
  13. explicit basicEventHandler( bool atBottom = false );
  14. // Destructor
  15. virtual ~basicEventHandler();
  16. virtual void dispatchEvent( basicEvent *Evt ){};
  17. // Copy constructor
  18. // TODO: Uncomment the copy constructor when you need it.
  19. //basicEventHandler(const basicEventHandler& src);
  20. // Assignment operator
  21. // TODO: Uncomment the assignment operator when you need it.
  22. //basicEventHandler& operator=(const basicEventHandler& src);
  23. };
  24. // TODO: Uncomment the copy constructor when you need it.
  25. //inline basicEventHandler::basicEventHandler(const basicEventHandler& src)
  26. //{
  27. // // TODO: copy
  28. //}
  29. // TODO: Uncomment the assignment operator when you need it.
  30. //inline basicEventHandler& basicEventHandler::operator=(const basicEventHandler& rhs)
  31. //{
  32. // if (this == &rhs) {
  33. // return *this;
  34. // }
  35. //
  36. // // TODO: assignment
  37. //
  38. // return *this;
  39. //}
  40. typedef basicRingElement< basicEventHandler > EventHandlerIterator;
  41. typedef basicRing< basicEventHandler > EventHandlerRing;
  42. #endif // __BASICEVENTHANDLER_H_INCL__