Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / orbsvcs / tests / Notify / lib / PushConsumer.h
blobd547df8b1cb4464f14b03b3276adc24d96e7f289
1 /* -*- C++ -*- */
2 /**
3 * @file PushConsumer.h
5 * @author Pradeep Gore <pradeep@oomworks.com>
6 */
8 #ifndef TAO_Notify_Tests_PUSHCONSUMER_H
9 #define TAO_Notify_Tests_PUSHCONSUMER_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 "Consumer_T.h"
23 class TAO_NOTIFY_TEST_Export TAO_Notify_Tests_ProxyPushSupplier_Traits
25 public:
26 typedef CosNotifyChannelAdmin::ProxyPushSupplier INTERFACE;
27 typedef CosNotifyChannelAdmin::ProxyPushSupplier_ptr PTR;
28 typedef CosNotifyChannelAdmin::ProxyPushSupplier_var VAR;
29 typedef CosNotifyChannelAdmin::ProxyID ID;
32 class TAO_NOTIFY_TEST_Export TAO_Notify_Tests_PushConsumer_Traits
34 public:
35 TAO_Notify_Tests_PushConsumer_Traits ();
37 typedef CosNotifyComm::PushConsumer INTERFACE;
38 typedef CosNotifyComm::PushConsumer_ptr PTR;
39 typedef CosNotifyComm::PushConsumer_var VAR;
40 typedef POA_CosNotifyComm::PushConsumer SKELETON;
42 typedef TAO_Notify_Tests_ProxyPushSupplier_Traits Proxy_Traits;
43 typedef TAO_Notify_Tests_ConsumerAdmin_Traits Admin_Traits;
44 typedef TAO_Notify_Tests_ConsumerAdmin_Ext_Traits Admin_Ext_Traits;
46 const CosNotifyChannelAdmin::ClientType type_;
49 typedef TAO_Notify_Tests_Consumer_T<TAO_Notify_Tests_PushConsumer_Traits> TAO_Notify_Tests_PushConsumer_Base;
51 /**
52 * @class TAO_Notify_Tests_PushConsumer
54 * @brief PushConsumer implementation.
56 class TAO_NOTIFY_TEST_Export TAO_Notify_Tests_PushConsumer : public TAO_Notify_Tests_PushConsumer_Base
58 typedef TAO_Notify_Tests_PushConsumer_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_PushConsumer ();
67 /// Destructor
68 virtual ~TAO_Notify_Tests_PushConsumer ();
70 protected:
71 /// Connect to Peer.
72 virtual void connect_to_peer (Proxy_Traits::PTR proxy_ptr, Peer_Traits::PTR peer_ptr);
74 /// Disconnect from proxy.
75 virtual void disconnect_from_proxy ();
77 // = PushConsumer methods
78 virtual void disconnect_push_consumer ();
80 /// Default does nothing.
81 void push (const CORBA::Any & data);
84 #if defined (__ACE_INLINE__)
85 #include "PushConsumer.inl"
86 #endif /* __ACE_INLINE__ */
88 #include /**/ "ace/post.h"
89 #endif /* TAO_Notify_Tests_PUSHCONSUMER_H */