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

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.

主站蜘蛛池模板: 富川| 安多县| 娄底市| 江北区| 揭西县| 余庆县| 个旧市| 临澧县| 武汉市| 凤台县| 静乐县| 泾川县| 昭通市| 临邑县| 香河县| 崇阳县| 扎鲁特旗| 鄂托克前旗| 东丽区| 天祝| 沁阳市| 焉耆| 萝北县| 双流县| 二手房| 东至县| 许昌市| 余庆县| 九寨沟县| 乌海市| 西乌珠穆沁旗| 会理县| 温泉县| 壶关县| 阳春市| 昭觉县| 吉首市| 乳山市| 宜阳县| 祁东县| 芦溪县|