Siena C++ API documentation.

class Notifiable

Interested party

Public Methods

[more]virtual void notify(Event &e)
response to a notification


Documentation

A Notifiable represents an event consumer. Events are delivered to a Notifiable by calling their notify method. A Notifiable must specialize notify 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);
    // ...
    
ovirtual void notify(Event &e)
The event service calls this method to notify the interested party. The interested party specializes this method to implement its response to the event notification.
Parameters:
e - notified event


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java


This document is part of Siena. Please, direct any comment or suggestion to Antonio Carzaniga