SubscribeMatch

virtual PSubscription ISignal::SubscribeMatch(const SDoubleCondition &condition, SignalMatchHandler<double> handler) = 0

Subscribes a callback to be executed when the signal matches the specified condition.

Parameters
  • condition – SDoubleCondition specifying when callback is to be executed.

  • handler – Function to be called when match occurs.

Returns

PSubscription – An ISubscription for the callback.

Throws