event notification
A notification in Siena is a set of named attributes.Event
represents an event notification. Attribute names are standard C++string
s while attribute values areAttributeValue
s. A name uniquely identifies an attribute in anEvent
.An
Event
is implemented as amap<string, AttributeValue>
, therefore All the functions of the standardmap
template can be used to manipulate anEvent
. For instance:Event e; // ... // prints out attribute names of e // for(Event::iterator i = e.begin(); i != e.end(); ++i) cout << (*i).first;Of course, every operation on anEvent
can take advantage of the access functions and assignment operators ofAttributeValue
.Event e; e["stock"] = "XYZ"; e["price"] = 12.34 e["quantity"] = 567; int q = e["quantity"];The structure of names and types of anEvent
is completely arbitrary for Siena. In other words, Siena does not require any pre-defined attribute. It is up to applications to agree on sets of names, types, and semantics of attributes.
Alphabetic index HTML hierarchy of classes or Java