summaryrefslogtreecommitdiff
path: root/modules/CIAO/ccm/CCM_Receptacle.idl
blob: cc7f19c9c4ba1f256e7794e4ebd8d0f4fc8f3aef (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
/// $Id$
/// Compliant with OMG 06-04-01 Section 6.5.3

#if !defined (CCM_RECEPTACLE_IDL)
#define CCM_RECEPTACLE_IDL

#include "ccm/CCM_Base.idl"
#include "ccm/CCM_Navigation.idl"
#include "ccm/CCM_Cookie.idl"

module Components
{
  typeprefix Components "omg.org";

#if !defined (CCM_LW)
  valuetype ConnectionDescription
  {
    public Cookie ck;
    public Object objref;
  };
  typedef sequence<ConnectionDescription> ConnectionDescriptions;
#endif

#if !defined (CCM_LW)
  valuetype ReceptacleDescription : PortDescription
  {
    public boolean is_multiple;
    public ConnectionDescriptions connections;
  };
  typedef sequence<ReceptacleDescription> ReceptacleDescriptions;
#endif

  exception ExceededConnectionLimit {};
  exception CookieRequired {};

  interface Receptacles
  {
    Cookie connect (in FeatureName name, in Object connection )
      raises (InvalidName,
              InvalidConnection,
              AlreadyConnected,
              ExceededConnectionLimit);

    Object disconnect (in FeatureName name, in Cookie ck)
      raises (InvalidName,
              InvalidConnection,
              CookieRequired,
              NoConnection);

#if !defined (CCM_LW)
    ConnectionDescriptions get_connections (in FeatureName name)
      raises (InvalidName);
#endif

#if !defined (CCM_LW)
    ReceptacleDescriptions get_all_receptacles ();
#endif

#if !defined (CCM_LW)
    ReceptacleDescriptions get_named_receptacles (in NameList names)
      raises (InvalidName);
#endif
  };
};
#endif /* CCM_RECEPTACLE_IDL */