Poco

template < class TArgs, bool useSender = true, bool senderIsConst = true >

class FunctionPriorityDelegate

Library: Foundation
Package: Events
Header: Poco/FunctionPriorityDelegate.h

Description

Wraps a freestanding function or static member function for use as a PriorityDelegate.

Inheritance

Direct Base Classes: AbstractPriorityDelegate < TArgs >

All Base Classes: AbstractPriorityDelegate < TArgs >

Member Summary

Member Functions: clone, disable, equals, notify, operator =

Types

NotifyFunction

typedef void (* NotifyFunction)(const void *, TArgs &);

Constructors

FunctionPriorityDelegate inline

FunctionPriorityDelegate(
    const FunctionPriorityDelegate & delegate
);

FunctionPriorityDelegate inline

FunctionPriorityDelegate(
    NotifyFunction function,
    int prio
);

Destructor

~FunctionPriorityDelegate inline

~FunctionPriorityDelegate();

Member Functions

clone inline

AbstractDelegate < TArgs > * clone() const;

disable inline

void disable();

equals inline

bool equals(
    const AbstractDelegate < TArgs > & other
) const;

notify inline

bool notify(
    const void * sender,
    TArgs & arguments
);

operator = inline

FunctionPriorityDelegate & operator = (
    const FunctionPriorityDelegate & delegate
);

Variables

_function protected

NotifyFunction _function;

_mutex protected

Mutex _mutex;

Securely control IoT edge devices from anywhere   Connect a Device