FIFOStrategy.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. //
  2. // FIFOStrategy.h
  3. //
  4. // $Id: //poco/1.4/Foundation/include/Poco/FIFOStrategy.h#3 $
  5. //
  6. // Library: Foundation
  7. // Package: Events
  8. // Module: FIFOStragegy
  9. //
  10. // Implementation of the FIFOStrategy 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_FIFOStrategy_INCLUDED
  18. #define Foundation_FIFOStrategy_INCLUDED
  19. #include "Poco/DefaultStrategy.h"
  20. namespace Poco {
  21. //@ deprecated
  22. template <class TArgs, class TDelegate>
  23. class FIFOStrategy: public DefaultStrategy<TArgs, TDelegate>
  24. /// Note: As of release 1.4.2, DefaultStrategy already
  25. /// implements FIFO behavior, so this class is provided
  26. /// for backwards compatibility only.
  27. {
  28. public:
  29. FIFOStrategy()
  30. {
  31. }
  32. FIFOStrategy(const FIFOStrategy& s):
  33. DefaultStrategy<TArgs, TDelegate>(s)
  34. {
  35. }
  36. ~FIFOStrategy()
  37. {
  38. }
  39. FIFOStrategy& operator = (const FIFOStrategy& s)
  40. {
  41. DefaultStrategy<TArgs, TDelegate>::operator = (s);
  42. return *this;
  43. }
  44. };
  45. } // namespace Poco
  46. #endif // Foundation_FIFOStrategy_INCLUDED