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

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.

主站蜘蛛池模板: 淮北市| 徐汇区| 阿城市| 曲周县| 托克托县| 长垣县| 蚌埠市| 连平县| 井陉县| 那曲县| 浪卡子县| 凤山市| 军事| 青铜峡市| 阜阳市| 奉贤区| 汉沽区| 江孜县| 郎溪县| 乌拉特前旗| 金寨县| 普洱| 新郑市| 江山市| 梧州市| 广河县| 沂源县| 永川市| 嵩明县| 藁城市| 临洮县| 和林格尔县| 阳朔县| 汕头市| 甘肃省| 冀州市| 湾仔区| 德昌县| 阜宁县| 曲周县| 册亨县|