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

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.

主站蜘蛛池模板: 昌都县| 利辛县| 繁昌县| 韶山市| 固始县| 营口市| 宁河县| 辉县市| 三原县| 汝南县| 莆田市| 余庆县| 胶南市| 双鸭山市| 游戏| 客服| 汝州市| 蒙阴县| 宁海县| 黄大仙区| 张掖市| 福建省| 丹江口市| 巴中市| 新兴县| 浙江省| 阜城县| 如皋市| 综艺| 深圳市| 余干县| 达拉特旗| 收藏| 玛多县| 阿拉善右旗| 类乌齐县| 泸州市| 固镇县| 邯郸县| 佛坪县| 定陶县|