Interested party
ANotifiable
represents an event consumer. Events are delivered to aNotifiable
by calling theirnotify
method. ANotifiable
must specializenotify
to implement its specific response to event notifications. Example:class Ticker : public Notifiable { virtual void notify(Event &e) { cout << e["price"].int_value() << endl; }; } // ... Filter f; Ticker t; f.add_constraint("price", Siena_lt, 500); S->subscribe(f, t); // ...
Alphabetic index HTML hierarchy of classes or Java