event notification
A notification in Siena is a set of named attributes.Eventrepresents an event notification. Attribute names are standard C++strings while attribute values areAttributeValues. A name uniquely identifies an attribute in anEvent.An
Eventis implemented as amap<string, AttributeValue>, therefore All the functions of the standardmaptemplate 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 anEventcan 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 anEventis 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