3 * @file Relay_Consumer.h
5 * @author Pradeep Gore <pradeep@oomworks.com>
8 #ifndef TAO_Notify_Tests_RELAY_CONSUMER_H
9 #define TAO_Notify_Tests_RELAY_CONSUMER_H
10 #include /**/ "ace/pre.h"
12 #include "notify_test_export.h"
14 #if !defined (ACE_LACKS_PRAGMA_ONCE)
16 #endif /* ACE_LACKS_PRAGMA_ONCE */
18 #include "Direct_Consumer.h"
21 * @class TAO_Notify_Tests_Relay_Consumer
23 * @brief Relay events to a destination consumer.
25 class TAO_NOTIFY_TEST_Export TAO_Notify_Tests_Relay_Consumer
: public TAO_Notify_Tests_Direct_Consumer
29 TAO_Notify_Tests_Relay_Consumer (ACE_CString
& destination
);
32 ~TAO_Notify_Tests_Relay_Consumer ();
34 /// Connect using options parsed and set initial QoS.
35 virtual void connect ();
37 void push_structured_event (const CosNotification::StructuredEvent
&/*notification*/);
40 /// Destination object.
41 ACE_CString destination_
;
43 /// This object is resolved in the connect method.
44 CosNotifyComm::StructuredPushConsumer_var destination_object_
;
47 #include /**/ "ace/post.h"
48 #endif /* TAO_Notify_Tests_RELAY_CONSUMER_H */