Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / orbsvcs / tests / Notify / lib / Direct_Supplier.h
blob695c9357a91a69e1a020c6332440ccae26b3d58e
1 /* -*- C++ -*- */
2 /**
3 * @file Direct_Supplier.h
5 * @author Pradeep Gore <pradeep@oomworks.com>
6 */
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)
15 # pragma once
16 #endif /* ACE_LACKS_PRAGMA_ONCE */
18 #include "Periodic_Supplier.h"
20 /**
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
27 public:
28 /// Constructor
29 TAO_Notify_Tests_Direct_Supplier (ACE_CString& target);
31 /// Destructor
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);
40 protected:
41 /// Target object.
42 ACE_CString target_;
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 */