Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / orbsvcs / tests / Notify / lib / StructuredPushSupplier.h
blob906df4ed2799710785e2f65af34f396d67a595b6
1 /* -*- C++ -*- */
2 /**
3 * @file StructuredPushSupplier.h
5 * @author Pradeep Gore <pradeep@oomworks.com>
6 */
8 #ifndef TAO_Notify_Tests_STRUCTUREDPUSHSUPPLIER_H
9 #define TAO_Notify_Tests_STRUCTUREDPUSHSUPPLIER_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 "orbsvcs/CosNotifyChannelAdminS.h"
19 #include "orbsvcs/NotifyExtC.h"
21 #include "Supplier_T.h"
23 class TAO_NOTIFY_TEST_Export TAO_Notify_Tests_StructuredProxyPushConsumer_Traits
25 public:
26 typedef CosNotifyChannelAdmin::StructuredProxyPushConsumer INTERFACE;
27 typedef CosNotifyChannelAdmin::StructuredProxyPushConsumer_ptr PTR;
28 typedef CosNotifyChannelAdmin::StructuredProxyPushConsumer_var VAR;
29 typedef CosNotifyChannelAdmin::ProxyID ID;
32 class TAO_NOTIFY_TEST_Export TAO_Notify_Tests_StructuredPushSupplier_Traits
34 public:
35 TAO_Notify_Tests_StructuredPushSupplier_Traits ();
37 typedef CosNotifyComm::StructuredPushSupplier INTERFACE;
38 typedef CosNotifyComm::StructuredPushSupplier_ptr PTR;
39 typedef CosNotifyComm::StructuredPushSupplier_var VAR;
40 typedef POA_CosNotifyComm::StructuredPushSupplier SKELETON;
42 typedef TAO_Notify_Tests_StructuredProxyPushConsumer_Traits Proxy_Traits;
43 typedef TAO_Notify_Tests_SupplierAdmin_Traits Admin_Traits;
44 typedef TAO_Notify_Tests_SupplierAdmin_Ext_Traits Admin_Ext_Traits;
46 const CosNotifyChannelAdmin::ClientType type_;
49 typedef TAO_Notify_Tests_Supplier_T<TAO_Notify_Tests_StructuredPushSupplier_Traits> TAO_Notify_Tests_StructuredPushSupplier_Base;
51 /**
52 * @class TAO_Notify_Tests_StructuredPushSupplier
54 * @brief StructuredPushSupplier Implementation.
56 class TAO_NOTIFY_TEST_Export TAO_Notify_Tests_StructuredPushSupplier : public TAO_Notify_Tests_StructuredPushSupplier_Base
58 typedef TAO_Notify_Tests_StructuredPushSupplier_Traits Peer_Traits;
59 typedef Peer_Traits::Admin_Traits Admin_Traits;
60 typedef Peer_Traits::Admin_Ext_Traits Admin_Ext_Traits;
61 typedef Peer_Traits::Proxy_Traits Proxy_Traits;
63 public:
64 /// Constructor
65 TAO_Notify_Tests_StructuredPushSupplier ();
67 /// Destructor
68 virtual ~TAO_Notify_Tests_StructuredPushSupplier ();
70 /// Send one event.
71 virtual void send_event (const CosNotification::StructuredEvent& event);
73 protected:
74 /// Connect to Peer.
75 virtual void connect_to_peer (Proxy_Traits::PTR proxy_ptr, Peer_Traits::PTR peer_ptr);
77 /// Disconnect from proxy.
78 virtual void disconnect_from_proxy ();
80 // = StructuredPushSupplier method
81 virtual void disconnect_structured_push_supplier ();
84 #if defined (__ACE_INLINE__)
85 #include "StructuredPushSupplier.inl"
86 #endif /* __ACE_INLINE__ */
88 #include /**/ "ace/post.h"
89 #endif /* TAO_Notify_Tests_STRUCTUREDPUSHSUPPLIER_H */