📄 test.idl
字号:
// -*- C++ -*-
// test.idl,v 1.9 2003/08/05 22:35:04 parsons Exp
module help
{
exception doh {};
exception whups {};
};
module help
{
interface c_supp1 {};
interface c_supp2 {};
component c_base {};
valuetype v_base_base {};
valuetype v_base : v_base_base {};
interface v_supp1 {};
abstract interface v_supp2 {};
home h_base manages c_base {};
valuetype h_key {};
interface h_supp1 {};
interface h_supp2 {};
};
module help
{
interface c_provides1 {};
interface c_uses1 {};
interface c_uses2 {};
eventtype c_emits1 {};
eventtype c_publishes1 {};
eventtype c_consumes1 {};
};
module mod
{
component test_component
: help::c_base supports help::c_supp1, help::c_supp2
{
attribute long c_attr1
getraises (help::doh)
setraises (help::whups, help::doh);
provides help::c_provides1 test_provides1;
uses help::c_uses1 test_uses1;
uses multiple help::c_uses2 test_uses2;
emits help::c_emits1 test_emits1;
publishes help::c_publishes1 test_publishes1;
consumes help::c_consumes1 test_consumes1;
};
valuetype test_valuetype
: help::v_base supports help::v_supp1, help::v_supp2
{
attribute long c_attr1
getraises (help::doh)
setraises (help::whups, help::doh);
string v_op (inout string inoutarg,
in help::v_supp1 inarg,
out long outarg)
raises (help::doh, help::whups);
public string test_mem1;
private short test_mem2;
factory default_factory (in string set_tm1);
factory create_tv (in string set_tm1a,
in short set_tm2)
raises (help::whups, help::doh);
};
home test_home : help::h_base supports help::h_supp1, help::h_supp2
manages test_component primarykey help::h_key
{
factory create_tc (in string set_uid)
raises (help::doh);
finder find_tc (in long id_number,
in string id_string,
in help::h_key pkey)
raises (help::whups);
};
eventtype test_eventtype
: help::v_base supports help::v_supp1, help::v_supp2
{
attribute long c_attr1
getraises (help::doh)
setraises (help::whups, help::doh);
string v_op (inout string inoutarg,
in help::v_supp1 inarg,
out long outarg)
raises (help::doh, help::whups);
public string test_mem1;
private short test_mem2;
factory default_factory (in string set_tm1);
factory create_tv (in string set_tm1a,
in short set_tm2)
raises (help::whups, help::doh);
};
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -