3 * @file Direct_Supplier.h
5 * @author Pradeep Gore <pradeep@oomworks.com>
8 #ifndef TAO_Notify_Tests_DIRECT_SUPPLIER_H
9 #define TAO_Notify_Tests_DIRECT_SUPPLIER_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 "Periodic_Supplier.h"
21 * @class TAO_Notify_Tests_Direct_Supplier
23 * @brief Send Directly to a consumer.
25 class TAO_NOTIFY_TEST_Export TAO_Notify_Tests_Direct_Supplier
: public TAO_Notify_Tests_Periodic_Supplier
29 TAO_Notify_Tests_Direct_Supplier (ACE_CString
& target
);
32 ~TAO_Notify_Tests_Direct_Supplier ();
34 /// Connect using options parsed and set initial QoS.
35 virtual void connect ();
37 // Send one event. Bypass sending to the Notify and send directly to taget consumer.
38 virtual void send_event (const CosNotification::StructuredEvent
& event
);
44 /// This object is resolved in the connect method.
45 CosNotifyComm::StructuredPushConsumer_var target_object_
;
48 #if defined (__ACE_INLINE__)
49 #include "Direct_Supplier.inl"
50 #endif /* __ACE_INLINE__ */
52 #include /**/ "ace/post.h"
53 #endif /* TAO_Notify_Tests_DIRECT_SUPPLIER_H */