Znav |
---|
next | Implementing an IceStorm Publisher |
---|
prev | IceStorm Interfaces |
---|
|
Now we'll expand on the earlier weather monitoring example, demonstrating how to create, subscribe to and publish messages on a topic. We use the following Slice definitions in our example:
Wiki Markup |
---|
{zcode:slice}
struct Measurement {
string tower; // tower id
float windSpeed; // knots
short windDirection; // degrees
float temperature; // degrees Celsius
};
interface Monitor {
void report(Measurement m);
};
{zcode} |
Monitor
is our topic interface. For the sake of simplicity, it defines just one operation, report
, taking a Measurement
struct as its only parameter.
Topics
See Also
Znav |
---|
next | Implementing an IceStorm Publisher |
---|
prev | IceStorm Interfaces |
---|
|