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

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.

主站蜘蛛池模板: 福安市| 长兴县| 阿克苏市| 梅州市| 南华县| 屯门区| 资中县| 周宁县| 塘沽区| 山西省| 离岛区| 睢宁县| 颍上县| 丰镇市| 阿克陶县| 龙州县| 宜阳县| 汽车| 盐亭县| 杨浦区| 吉木萨尔县| 南澳县| 岢岚县| 齐河县| 河西区| 新田县| 瓦房店市| 安塞县| 定兴县| 赞皇县| 河间市| 嘉祥县| 翼城县| 禹州市| 东明县| 丹江口市| 凯里市| 花莲市| 嘉峪关市| 隆林| 辽源市|