diff options
Diffstat (limited to 'ACE/TAO/orbsvcs/tests/Notify/Bug_2415_Regression/Notify_Push_Consumer.h')
-rw-r--r-- | ACE/TAO/orbsvcs/tests/Notify/Bug_2415_Regression/Notify_Push_Consumer.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/ACE/TAO/orbsvcs/tests/Notify/Bug_2415_Regression/Notify_Push_Consumer.h b/ACE/TAO/orbsvcs/tests/Notify/Bug_2415_Regression/Notify_Push_Consumer.h new file mode 100644 index 00000000000..0599cf07acc --- /dev/null +++ b/ACE/TAO/orbsvcs/tests/Notify/Bug_2415_Regression/Notify_Push_Consumer.h @@ -0,0 +1,40 @@ +/* -*- C++ -*- */ +// $Id$ +// ========================================================================== +// +// = LIBRARY +// TAO/orbsvcs/tests/Notify/Discarding +// +// = FILENAME +// Notify_Push_Consumer.h +// +// = DESCRIPTION +// A push consumer implementation. +// +// = AUTHOR +// Chad Elliott <elliott_c@ociweb.com> +// +// ========================================================================== +#ifndef TAO_NOTIFY_PUSH_CONSUMER_H +#define TAO_NOTIFY_PUSH_CONSUMER_H +#include "Notify_StructuredPushConsumer.h" + +class Notify_Test_Client; + +class Notify_Push_Consumer: public TAO_Notify_Tests_StructuredPushConsumer +{ +public: + Notify_Push_Consumer (Notify_Test_Client& client); + void _connect (CosNotifyChannelAdmin::ConsumerAdmin_ptr consumer_admin, + CosNotifyFilter::Filter_ptr filter); + + int messages_received(); + +protected: + void push_structured_event (const CosNotification::StructuredEvent&); + + Notify_Test_Client& client_; + int messages_received_; +}; + +#endif /* TAO_NOTIFY_PUSH_CONSUMER_H */ |