BasicEvent.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. //
  2. // BasicEvent.h
  3. //
  4. // $Id: //poco/1.4/Foundation/include/Poco/BasicEvent.h#2 $
  5. //
  6. // Library: Foundation
  7. // Package: Events
  8. // Module: BasicEvent
  9. //
  10. // Implementation of the BasicEvent template.
  11. //
  12. // Copyright (c) 2006-2011, Applied Informatics Software Engineering GmbH.
  13. // and Contributors.
  14. //
  15. // SPDX-License-Identifier: BSL-1.0
  16. //
  17. #ifndef Foundation_BasicEvent_INCLUDED
  18. #define Foundation_BasicEvent_INCLUDED
  19. #include "Poco/AbstractEvent.h"
  20. #include "Poco/DefaultStrategy.h"
  21. #include "Poco/AbstractDelegate.h"
  22. #include "Poco/Mutex.h"
  23. namespace Poco {
  24. template <class TArgs, class TMutex = FastMutex>
  25. class BasicEvent: public AbstractEvent <
  26. TArgs, DefaultStrategy<TArgs, AbstractDelegate<TArgs> >,
  27. AbstractDelegate<TArgs>,
  28. TMutex
  29. >
  30. /// A BasicEvent uses the DefaultStrategy which
  31. /// invokes delegates in the order they have been registered.
  32. ///
  33. /// Please see the AbstractEvent class template documentation
  34. /// for more information.
  35. {
  36. public:
  37. BasicEvent()
  38. {
  39. }
  40. ~BasicEvent()
  41. {
  42. }
  43. private:
  44. BasicEvent(const BasicEvent& e);
  45. BasicEvent& operator = (const BasicEvent& e);
  46. };
  47. } // namespace Poco
  48. #endif // Foundation_BasicEvent_INCLUDED