官术网_书友最值得收藏!

Interfaces

The purpose of IDL is to define interfaces and their operations. To avoid name clashes when using several IDL declarations together, the module is used as a naming scope. Modules can contain nested modules. Interfaces open a new naming scope containing data type declarations, constants, attributes, and operations:

//EmployeeHiring.idl
Module EmployeeHiring {
interface Employee();
}

The process of setting up a reference to one module from another can be defined with  outer::inner as ::EmployeeHiring::Employee:

Module outer{
Module inner {
interface inside{};
};
interface outside {
inner::inside get_inside();
};
};

The get_inside() operation is for returning the object reference for the ::outer::inner::inside interface.

主站蜘蛛池模板: 石狮市| 台中市| 广州市| 黔江区| 武穴市| 江达县| 梅河口市| 新河县| 罗定市| 大新县| 嘉峪关市| 朝阳县| 广水市| 辉县市| 富源县| 湘乡市| 赤峰市| 遵义县| 西藏| 鄂温| 正镶白旗| 佳木斯市| 福清市| 深圳市| 台南市| 吉木乃县| 韩城市| 寿光市| 吉林省| 铜山县| 策勒县| 古浪县| 开阳县| 耿马| 双流县| 蚌埠市| 任丘市| 吉首市| 襄汾县| 平陆县| 临海市|