class Siena::Event

Siena C++ API documentation.

## class Event: public AttributeSet

> event notification

## Inheritance:

## Documentation

> 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 are `AttributeValue`s. A name uniquely identifies an attribute in an `Event`.

> An `Event` is implemented as a `map<string, AttributeValue>`, therefore All the functions of the standard `map` template can be used to manipulate an `Event`. 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 an `Event` can take advantage of the access functions and assignment operators of `AttributeValue`.

>         Event e;

>         e["stock"] = "XYZ";
>         e["price"] = 12.34
>         e["quantity"] = 567;

>         int q = e["quantity"];

> The structure of names and types of an `Event` 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.

This class has no child classes.

See Also:
  AttributeSet

Alphabetic index HTML hierarchy of classes or Java

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