blob: 46a6094d3049adbe23e92d1add9e596cca1556db (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
|
/* -*- C++ -*- */
/**
* @file PushConsumer.h
*
* $Id$
*
* @author Pradeep Gore <pradeep@oomworks.com>
*
*
*/
#ifndef TAO_NS_PUSHCONSUMER_H
#define TAO_NS_PUSHCONSUMER_H
#include "ace/pre.h"
#include "notify_test_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "orbsvcs/orbsvcs/CosNotifyChannelAdminS.h"
#include "orbsvcs/orbsvcs/NotifyExtC.h"
#include "Consumer_T.h"
class TAO_NOTIFY_TEST_Export TAO_NS_ProxyPushSupplier_Traits
{
public:
typedef CosNotifyChannelAdmin::ProxyPushSupplier INTERFACE;
typedef CosNotifyChannelAdmin::ProxyPushSupplier_ptr PTR;
typedef CosNotifyChannelAdmin::ProxyPushSupplier_var VAR;
typedef CosNotifyChannelAdmin::ProxyID ID;
};
class TAO_NOTIFY_TEST_Export TAO_NS_PushConsumer_Traits
{
public:
TAO_NS_PushConsumer_Traits (void);
typedef CosNotifyComm::PushConsumer INTERFACE;
typedef CosNotifyComm::PushConsumer_ptr PTR;
typedef CosNotifyComm::PushConsumer_var VAR;
typedef POA_CosNotifyComm::PushConsumer SKELETON;
typedef TAO_NS_ProxyPushSupplier_Traits Proxy_Traits;
typedef TAO_NS_ConsumerAdmin_Traits Admin_Traits;
typedef TAO_NS_ConsumerAdmin_Ext_Traits Admin_Ext_Traits;
const CosNotifyChannelAdmin::ClientType type_;
};
typedef TAO_NS_Consumer_T<TAO_NS_PushConsumer_Traits> TAO_NS_PushConsumer_Base;
/**
* @class TAO_NS_PushConsumer
*
* @brief PushConsumer implementation.
*
*/
class TAO_NOTIFY_TEST_Export TAO_NS_PushConsumer : public TAO_NS_PushConsumer_Base
{
typedef TAO_NS_PushConsumer_Traits Peer_Traits;
typedef Peer_Traits::Admin_Traits Admin_Traits;
typedef Peer_Traits::Admin_Ext_Traits Admin_Ext_Traits;
typedef Peer_Traits::Proxy_Traits Proxy_Traits;
public:
/// Constuctor
TAO_NS_PushConsumer (void);
/// Destructor
virtual ~TAO_NS_PushConsumer ();
protected:
/// Connect to Peer.
virtual void connect_to_peer (Proxy_Traits::PTR proxy_ptr, Peer_Traits::PTR peer_ptr ACE_ENV_ARG_DECL);
/// Disconnect from proxy.
virtual void disconnect_from_proxy (ACE_ENV_SINGLE_ARG_DECL);
// = PushConsumer methods
virtual void disconnect_push_consumer (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((
CORBA::SystemException
));
/// Default does nothing.
void push (
const CORBA::Any & data
ACE_ENV_ARG_DECL
)
ACE_THROW_SPEC ((
CORBA::SystemException,
CosEventComm::Disconnected
));
};
#if defined (__ACE_INLINE__)
#include "PushConsumer.inl"
#endif /* __ACE_INLINE__ */
#include "ace/post.h"
#endif /* TAO_NS_PUSHCONSUMER_H */
|