Merge pull request #2317 from jwillemsen/jwi-deleteop
[ACE_TAO.git] / TAO / orbsvcs / tests / Notify / MC / Notify_Structured_Push_Consumer.h
blob45f3853f613930ce84957ccb4d26788f67ed572c
1 /* -*- C++ -*- */
2 //=============================================================================
3 /**
4 * @file Notify_Structured_Push_Consumer.h
6 * A structured push consumer implementation.
8 * @author Chad Elliott <elliott_c@ociweb.com>
9 */
10 //=============================================================================
12 #ifndef TAO_NOTIFY_STRUCTURED_PUSH_CONSUMER_H
13 #define TAO_NOTIFY_STRUCTURED_PUSH_CONSUMER_H
15 #include "Notify_StructuredPushConsumer.h"
16 #include "orbsvcs/TimeBaseC.h"
18 class Notify_Test_Client;
20 class Notify_Structured_Push_Consumer:
21 public TAO_Notify_Tests_StructuredPushConsumer
23 public:
24 Notify_Structured_Push_Consumer (const char* name,
25 unsigned int expected,
26 Notify_Test_Client& client);
28 void _connect (CosNotifyChannelAdmin::ConsumerAdmin_ptr consumer_admin);
29 void set_delay_parameters (unsigned int delayCount_, unsigned long delayPeriod_);
31 protected:
32 void push_structured_event (const CosNotification::StructuredEvent&);
34 ACE_CString name_;
35 unsigned int expected_;
36 unsigned int count_;
37 unsigned int delay_count_;
38 unsigned long delay_period_;
39 Notify_Test_Client& client_;
42 #endif /* TAO_NOTIFY_STRUCTURED_PUSH_CONSUMER_H */