blob: 5f93bb7b506950308bb0bd01b467f0d8cc571354 (
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
|
/* -*- C++ -*- */
/**
* @file EventChannelFactory.h
*
* $Id$
*
* @author Pradeep Gore <pradeep@oomworks.com>
*
*
*/
#ifndef TAO_NS_EVENTCHANNELFACTORY_H
#define TAO_NS_EVENTCHANNELFACTORY_H
#include "ace/pre.h"
#include "notify_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "orbsvcs/CosNotifyChannelAdminS.h"
#include "Container_T.h"
#include "Destroy_Callback.h"
class TAO_NS_EventChannel;
/**
* @class TAO_NS_EventChannelFactory
*
* @brief Implementation of CosNotifyChannelAdmin::EventChannelFactory
*
*/
class TAO_Notify_Export TAO_NS_EventChannelFactory : public virtual POA_CosNotifyChannelAdmin::EventChannelFactory, public TAO_NS_Container_T <TAO_NS_EventChannel, TAO_NS_EventChannelFactory>, public TAO_NS_Destroy_Callback
{
friend class TAO_NS_Builder;
public:
/// Constuctor
TAO_NS_EventChannelFactory (void);
/// Destructor
virtual ~TAO_NS_EventChannelFactory ();
/// Return servant
virtual PortableServer::Servant servant (void);
/// = ServantBase Methods
virtual void _add_ref (ACE_ENV_SINGLE_ARG_DECL);
virtual void _remove_ref (ACE_ENV_SINGLE_ARG_DECL);
/// TAO_NS_Destroy_Callback methods
virtual void release (void);
protected:
/// = Data Members
/// = CosNotifyChannelAdmin Methods
virtual ::CosNotifyChannelAdmin::EventChannel_ptr create_channel (
const CosNotification::QoSProperties & initial_qos,
const CosNotification::AdminProperties & initial_admin,
CosNotifyChannelAdmin::ChannelID_out id ACE_ENV_ARG_DECL
)
ACE_THROW_SPEC ((
CORBA::SystemException
, CosNotification::UnsupportedQoS
, CosNotification::UnsupportedAdmin
));
virtual ::CosNotifyChannelAdmin::ChannelIDSeq * get_all_channels (
)
ACE_THROW_SPEC ((
CORBA::SystemException
));
virtual ::CosNotifyChannelAdmin::EventChannel_ptr get_event_channel (
CosNotifyChannelAdmin::ChannelID id
)
ACE_THROW_SPEC ((
CORBA::SystemException
, CosNotifyChannelAdmin::ChannelNotFound
));
};
#if defined (__ACE_INLINE__)
#include "EventChannelFactory.inl"
#endif /* __ACE_INLINE__ */
#include "ace/post.h"
#endif /* TAO_NS_EVENTCHANNELFACTORY_H */
|