BasicEvent.h 1.1 KB

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