mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-06-20 17:17:13 +02:00
Major plugin refactor and cleanup.
Switched to POCO library for unified platform/library interface. Deprecated the external module API. It was creating more problems than solving. Removed most built-in libraries in favor of system libraries for easier maintenance. Cleaned and secured code with help from static analyzers.
This commit is contained in:
63
vendor/POCO/Foundation/include/Poco/AbstractPriorityDelegate.h
vendored
Normal file
63
vendor/POCO/Foundation/include/Poco/AbstractPriorityDelegate.h
vendored
Normal file
@ -0,0 +1,63 @@
|
||||
//
|
||||
// AbstractPriorityDelegate.h
|
||||
//
|
||||
// Library: Foundation
|
||||
// Package: Events
|
||||
// Module: AbstractPriorityDelegate
|
||||
//
|
||||
// Implementation of the AbstractPriorityDelegate template.
|
||||
//
|
||||
// Copyright (c) 2006-2011, Applied Informatics Software Engineering GmbH.
|
||||
// and Contributors.
|
||||
//
|
||||
// SPDX-License-Identifier: BSL-1.0
|
||||
//
|
||||
|
||||
|
||||
#ifndef Foundation_AbstractPriorityDelegate_INCLUDED
|
||||
#define Foundation_AbstractPriorityDelegate_INCLUDED
|
||||
|
||||
|
||||
#include "Poco/Foundation.h"
|
||||
#include "Poco/AbstractDelegate.h"
|
||||
|
||||
|
||||
namespace Poco {
|
||||
|
||||
|
||||
template <class TArgs>
|
||||
class AbstractPriorityDelegate: public AbstractDelegate<TArgs>
|
||||
/// Base class for PriorityDelegate and PriorityExpire.
|
||||
///
|
||||
/// Extends AbstractDelegate with a priority value.
|
||||
{
|
||||
public:
|
||||
AbstractPriorityDelegate(int prio):
|
||||
_priority(prio)
|
||||
{
|
||||
}
|
||||
|
||||
AbstractPriorityDelegate(const AbstractPriorityDelegate& del):
|
||||
AbstractDelegate<TArgs>(del),
|
||||
_priority(del._priority)
|
||||
{
|
||||
}
|
||||
|
||||
virtual ~AbstractPriorityDelegate()
|
||||
{
|
||||
}
|
||||
|
||||
int priority() const
|
||||
{
|
||||
return _priority;
|
||||
}
|
||||
|
||||
protected:
|
||||
int _priority;
|
||||
};
|
||||
|
||||
|
||||
} // namespace Poco
|
||||
|
||||
|
||||
#endif // Foundation_AbstractPriorityDelegate_INCLUDED
|
Reference in New Issue
Block a user