diff options
Diffstat (limited to 'TAO/orbsvcs/examples/Notify/Filter/Filter.cpp')
-rw-r--r-- | TAO/orbsvcs/examples/Notify/Filter/Filter.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/TAO/orbsvcs/examples/Notify/Filter/Filter.cpp b/TAO/orbsvcs/examples/Notify/Filter/Filter.cpp index 93634cae215..5a1e155957f 100644 --- a/TAO/orbsvcs/examples/Notify/Filter/Filter.cpp +++ b/TAO/orbsvcs/examples/Notify/Filter/Filter.cpp @@ -3,12 +3,17 @@ #include "orbsvcs/orbsvcs/Notify/Notify_StructuredPushSupplier.h" #include "Filter.h" +// @@ Pradeep: local #includes should go first. + #define NOTIFY_FACTORY_NAME "NotifyEventChannelFactory" #define NAMING_SERVICE_NAME "NameService" #define CA_FILTER "threshold < 20" #define SA_FILTER "threshold > 10" +// @@ Pradeep: it is 'GRAMMAR' not 'GRAMMER' #define TCL_GRAMMER "TCL" +// @@ Pradeep: please don't put classes in the .cpp file... + class PushConsumer : public TAO_Notify_StructuredPushConsumer { private: @@ -33,6 +38,10 @@ public: notification.remainder_of_body >>= val; + // @@ Pradeep: for your tests try to make sure that you count the + // number of expected and sent events to verify that things work + // correctly in an automatic way... + ACE_DEBUG ((LM_DEBUG, "%s received event %d\n", myname_.fast_rep (), val)); |