2 #ifndef INTERFACEREPO_IDL3_TEST
3 #define INTERFACEREPO_IDL3_TEST
5 // This module is here to contain the base valuetype for
6 // h_key below. This base class is required when a valuetype
7 // is used as a primary key. This module replaces the original
8 // #include of Components.idl, and breaks the resulting
9 // dependency of this test on CIAO. Note that this workaround
10 // is sufficient for the IFR loader, which is the only thing
11 // that processes this IDL file in the test. If the IDL
12 // compiler is executed on this file, there will be
13 // lookup errors, since it needs to find more things from
17 typeprefix Components
"omg.org";
19 abstract valuetype PrimaryKeyBase
{};
32 component c_base supports c_supp1
, c_supp2
{};
33 valuetype v_base_base
{};
34 valuetype v_base
: v_base_base
{};
36 abstract
interface v_supp2
{};
38 valuetype h_key
: Components
::PrimaryKeyBase
45 home h_base supports h_supp1
, h_supp2 manages c_base
{};
50 interface c_provides1
{};
53 eventtype c_emits1
{};
54 eventtype c_publishes1
{};
55 eventtype c_consumes1
{};
60 component test_component
: help
::c_base
62 attribute
long c_attr1
64 setraises
(help
::whups
, help
::doh
);
66 provides help
::c_provides1 test_provides1
;
68 uses help
::c_uses1 test_uses1
;
70 uses multiple help
::c_uses2 test_uses2
;
72 emits help
::c_emits1 test_emits1
;
74 publishes help
::c_publishes1 test_publishes1
;
76 consumes help
::c_consumes1 test_consumes1
;
79 valuetype test_valuetype
80 : help
::v_base supports help
::v_supp1
, help
::v_supp2
82 attribute
long c_attr1
84 setraises
(help
::whups
, help
::doh
);
86 string v_op
(inout
string inoutarg
,
87 in help
::v_supp1 inarg
,
89 raises
(help
::doh
, help
::whups
);
91 public string test_mem1
;
92 private
short test_mem2
;
94 factory default_factory
(in string set_tm1
);
95 factory create_tv
(in string set_tm1a
,
97 raises
(help
::whups
, help
::doh
);
100 home test_home
: help
::h_base
101 manages test_component primarykey help
::h_key
103 factory create_tc
(in string set_uid
)
106 finder find_tc
(in long id_number
,
109 raises
(help
::whups
);
112 eventtype test_eventtype
113 : help
::v_base supports help
::v_supp1
, help
::v_supp2
115 attribute
long c_attr1
116 getraises
(help
::doh
)
117 setraises
(help
::whups
, help
::doh
);
119 string v_op
(inout
string inoutarg
,
120 in help
::v_supp1 inarg
,
122 raises
(help
::doh
, help
::whups
);
124 public string test_mem1
;
125 private
short test_mem2
;
127 factory default_factory
(in string set_tm1
);
128 factory create_tv
(in string set_tm1a
,
130 raises
(help
::whups
, help
::doh
);
134 #endif
/* INTERFACEREPO_IDL3_TEST */