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;
void print_message(
const Message & m) {
if (i != NULL) {
do {
cout << "(generic value)" << endl;
cout << "Generic values are used in Constraints, not Messages." << endl;
break;
}
cout << endl;
delete(i);
} else {
cout << "empty message!" << endl;
}
}