#include "pip.h" class A: public PIObject { PIOBJECT(A) public: EVENT1(ev1, float, f) }; class B: public PIObject { PIOBJECT(B) public: EVENT_HANDLER0(void, eh0) {piCout << "eh0";} EVENT_HANDLER1(void, eh1, float, f) {piCout << "eh1_1" << f;} EVENT_HANDLER2(void, eh1, float, f, int, s) {piCout << "eh1_2" << f << s;} }; #include int main(int argc, char *argv[]) { A a; B b; /*CONNECTU_QUEUED(&a, ev1, &b, eh0, &b); CONNECTU_QUEUED(&a, ev1, &b, eh1, &a); piCout << "start"; a.ev1(1.5); piSleep(1); piCout << a.maybeCallQueuedEvents(); piSleep(1); piCout << b.maybeCallQueuedEvents();*/ //piCout << "end"; b.executeQueued(&a, "eh1", PIVariant(0.1), "0150", 10, 40); piSleep(1); a.maybeCallQueuedEvents(); //dumpApplication(); return 0; }