Poco

template < class C >

class TimerCallback

Library: Foundation
Package: Threading
Header: Poco/Timer.h

Description

This template class implements an adapter that sits between a Timer and an object's method invoked by the timer. It is quite similar in concept to the RunnableAdapter, but provides some Timer specific additional methods. See the Timer class for information on how to use this template class.

Inheritance

Direct Base Classes: AbstractTimerCallback

All Base Classes: AbstractTimerCallback

Member Summary

Member Functions: clone, invoke, operator =

Inherited Functions: clone, invoke, operator =

Types Aliases

Callback

using Callback = void (C::*)(Timer &);

Constructors

TimerCallback

TimerCallback() = delete;

TimerCallback inline

TimerCallback(
    const TimerCallback & callback
);

TimerCallback inline

TimerCallback(
    C & object,
    Callback method
);

Destructor

~TimerCallback virtual

~TimerCallback() override = default;

Member Functions

clone virtual inline

AbstractTimerCallback * clone() const override;

invoke virtual inline

void invoke(
    Timer & timer
) const override;

operator = inline

TimerCallback & operator = (
    const TimerCallback & callback
);