Poco::UPnP::GENA

class EventModerationPolicy

File Information

Library: UPnP/GENA
Package: StateVariables
Header: Poco/UPnP/GENA/EventModerationPolicy.h

Description

An EventModerationPolicy controls the frequency of events sent when an evented state variable changes. Any class or class template that fulfills the following criteria can be used as EventModerationPolicy:

  • The class must provide a public member function named valueChanged that takes as only argument the new value of the state variable (either passed by value or by const reference).
  • valueChanged() must check whether the criteria for firing an event are fulfilled, and in if this is the case, fire the event.
  • Typically, the Poco::BasicEvent instance will be passed to the policy object through the constructor.

Inheritance

Known Derived Classes: NoModerationPolicy, MinimumDeltaModerationPolicy, MaximumRateModerationPolicy

Securely control IoT edge devices from anywhere   Connect a Device