summaryrefslogtreecommitdiff
path: root/CIAO/ccm/Entity/CCM_Entity2Context.idl
blob: 84cba2712026d41ffb64726582e6ea50e75eed65 (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
// Compliant with OMG 06-04-01 Section 9.4.3.7

#if !defined (CCM_ENTITY2CONTEXT_IDL)
#define CCM_ENTITY2CONTEXT_IDL

#include "ccm/Entity/CCM_EntityContext.idl"
#include "ccm/Entity/CCM_ComponentId.idl"
#include "ccm/Extended/CCM_CCM2Context.idl"
#include "ccm/Extended/CCM_BadComponentReference.idl"

// *************** Extended Container Interfaces ***************

#if !defined (CCM_LW)

module Components
{
  typeprefix Components "omg.org";

  local interface Entity2Context : EntityContext, CCM2Context
  {
    ComponentId get_component_id ()
      raises (IllegalState);

    ComponentId create_component_id (in FacetId target_facet,
                                     in SegmentId target_segment,
                                     in SegmentDescrSeq seq_descrs);

    ComponentId create_monolithic_component_id (in FacetId target_facet,
                                                in StateIdValue sid);

    Object create_ref_from_cid (in CORBA::RepositoryId repid,
                                in ComponentId cid);

    ComponentId get_cid_from_ref (in Object objref)
      raises (BadComponentReference);
  };
};
#endif

#endif /* CCM_ENTITY2CONTEXT_IDL */