summaryrefslogtreecommitdiff
path: root/CIAO/ccm/CCM_Navigation.idl
blob: 6ab638772a773f1348ef87a53875de05e04553fb (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
/// $Id$
/// Compliant with OMG 06-04-01 Section 6.4.3.3

#if !defined (CCM_NAVIGATION_IDL)
#define CCM_NAVIGATION_IDL

#include "tao/orb_types.pidl"
#include "tao/StringSeq.pidl"

module Components
{
  typeprefix Components "omg.org";

  typedef string FeatureName;
  typedef sequence<FeatureName> NameList;

#if !defined (CCM_LW)
  valuetype PortDescription
  {
    public FeatureName name;
    public CORBA::RepositoryId type_id;
  };
#endif

#if !defined (CCM_LW)
  valuetype FacetDescription : PortDescription
  {
    public Object facet_ref;
  };

  typedef sequence<FacetDescription> FacetDescriptions;
#endif

  exception InvalidName {};
  interface Navigation
  {
    Object provide_facet (in FeatureName name)
      raises (InvalidName);
#if !defined (CCM_LW)
    FacetDescriptions get_all_facets();
#endif

#if !defined (CCM_LW)
    FacetDescriptions get_named_facets (in NameList names)
      raises (InvalidName);
#endif

#if !defined (CCM_LW)
    boolean same_component (in Object object_ref);
#endif
  };
};
#endif /* CCM_NAVIGATION_IDL */