This example shows how to iterate through a message. The same iteration model used in this example can be also be applied to filter and predicate objects.
#include <iostream>
using namespace std;
using namespace siena;
class smart_message:
public message {
}
int main(int argc, char * argv[]) {
smart_message m;
if (i != NULL) {
do {
cout <<
"attribute: " << i->
name();
}
cout << endl;
delete(i);
} else {
cout << "empty message!" << endl;
}
}