Changes to attempt to silence bcc64x
[ACE_TAO.git] / TAO / orbsvcs / examples / CosEC / Factory / CosEventChannelFactory.idl
blob56326dbcc598067421aaca93cb4cf64508a7ce4b
2 //=============================================================================
3 /**
4 * @file CosEventChannelFactory.idl
6 * @author Pradeep Gore <pradeep@cs.wustl.edu>
7 */
8 //=============================================================================
11 #ifndef TAO_COSEVENTCHANNELFACTORY_IDL
12 #define TAO_COSEVENTCHANNELFACTORY_IDL
14 #include "orbsvcs/CosEventChannelAdmin.idl"
16 module CosEventChannelFactory
18 // = TITLE
19 // Module that describes the Channel Factory.
21 exception DuplicateChannel
23 // = TITLE
24 // This exception is raised to indicate that a specified
25 // channel already exists.
28 exception NoSuchChannel
30 // = TITLE
31 // This exception is raised to indicate that a specified
32 // channel does not exist.
35 exception BindFailed
37 // = TITLE
38 // This exception is raised to indicate that the EventChannel
39 // could not be registered with the naming service.
42 interface ChannelFactory
44 // = TITLE
45 // Interface definition of the ChannelFactory.
47 // = DESCRIPTION
48 // The ChannelFactory is used to create,destroy and
49 // locate CosEventChannels.
51 CosEventChannelAdmin::EventChannel create (
52 in string channel_id,
53 in boolean store_in_naming_service) raises (DuplicateChannel, BindFailed);
54 // Creates a CosEventChannel given a channel id.
55 // The DuplicateChannel exception is raised if the channel
56 // already exists.
57 // BindFailed is raised if we failed to register the newly created channel
58 // with the naming service.
60 void destroy (
61 in string channel_id,
62 in boolean unbind_from_naming_service) raises (NoSuchChannel);
63 // Destroys the channel specified by the channel id.
64 // If the channel does not exist then the NoSuchChannel exception
65 // is raised.
67 CosEventChannelAdmin::EventChannel find (
68 in string channel_id) raises (NoSuchChannel);
69 // Finds an EventChannel given the channel id.
70 // If the channel does not exist then the NoSuchChannel exception
71 // is raised.
73 string find_channel_id (
74 in CosEventChannelAdmin::EventChannel channel) raises (NoSuchChannel);
75 // Returns a channel id given a reference to it.
76 // If the channel does not exist then the NoSuchChannel exception
77 // is raised.
81 #endif /* TAO_COSEVENTCHANNELFACTORY_IDL */