Next Previous Up Top Contents Index

A.4 Mapping in more detail

A.4.7 The package_prefix pragma

Apackage_prefix pragma has the form:

#pragma package_prefix string 

wherestring is an IDL string literal. For example,#pragma package_prefix COM.HARLEQUIN.

Apackage_prefix pragma affects the mapping of all top-level modules whose definition textually follows that pragma in the IDL file. The name of the scoping symbol for such a top-level module is the concatenation of the givenpackage_prefix with the name of the module.

#pragma package_prefix COM/HARLEQUIN

module a{ module b{ interface c{}; }; };

The scoped symbol for the interface isCOM/HARLEQUIN/A/B:C.


Developing Component Software with CORBA - 22 Jan 1999

Next Previous Up Top Contents Index

Generated with Harlequin WebMaker