2023-02-08 11:04:11 +00:00
|
|
|
//
|
|
|
|
// BasicEvent.h
|
|
|
|
//
|
|
|
|
// Library: Foundation
|
|
|
|
// Package: Events
|
|
|
|
// Module: BasicEvent
|
|
|
|
//
|
|
|
|
// Implementation of the BasicEvent template.
|
|
|
|
//
|
|
|
|
// Copyright (c) 2006-2011, Applied Informatics Software Engineering GmbH.
|
|
|
|
// and Contributors.
|
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: BSL-1.0
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef Foundation_BasicEvent_INCLUDED
|
|
|
|
#define Foundation_BasicEvent_INCLUDED
|
|
|
|
|
|
|
|
|
2023-02-13 09:22:33 +00:00
|
|
|
#include "Poco/AbstractDelegate.h"
|
2023-02-08 11:04:11 +00:00
|
|
|
#include "Poco/AbstractEvent.h"
|
|
|
|
#include "Poco/DefaultStrategy.h"
|
|
|
|
#include "Poco/Mutex.h"
|
|
|
|
|
|
|
|
|
2023-02-13 09:22:33 +00:00
|
|
|
namespace Poco
|
|
|
|
{
|
2023-02-08 11:04:11 +00:00
|
|
|
|
|
|
|
|
2023-02-13 09:22:33 +00:00
|
|
|
template <class TArgs, class TMutex = FastMutex>
|
|
|
|
class BasicEvent : public AbstractEvent<TArgs, DefaultStrategy<TArgs, AbstractDelegate<TArgs>>, AbstractDelegate<TArgs>, TMutex>
|
|
|
|
/// A BasicEvent uses the DefaultStrategy which
|
|
|
|
/// invokes delegates in the order they have been registered.
|
|
|
|
///
|
|
|
|
/// Please see the AbstractEvent class template documentation
|
|
|
|
/// for more information.
|
2023-02-08 11:04:11 +00:00
|
|
|
{
|
|
|
|
public:
|
2023-02-13 09:22:33 +00:00
|
|
|
BasicEvent() { }
|
2023-02-08 11:04:11 +00:00
|
|
|
|
2023-02-13 09:22:33 +00:00
|
|
|
~BasicEvent() { }
|
2023-02-08 11:04:11 +00:00
|
|
|
|
|
|
|
private:
|
2023-02-13 09:22:33 +00:00
|
|
|
BasicEvent(const BasicEvent & e);
|
|
|
|
BasicEvent & operator=(const BasicEvent & e);
|
2023-02-08 11:04:11 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
} // namespace Poco
|
|
|
|
|
|
|
|
|
|
|
|
#endif // Foundation_BasicEvent_INCLUDED
|