[core] [oils] [libraries] [C++ messages] [coding guidelines] | [up to overview ] |
#include <msg/demo/mkeyTest.h>
mkeyTest (int id);
A simple test message just used for tests and demonstrations. It is keyed with id id
which means the only objects interested in that particular id will receive the message.
Here is how you send a message:try { mkeyTest m(id); m.Send(); } catch(exception& ex) { cerr << "an error has occurred: " << ex.what() << endl; exit(1); }