More IDL Syntax and Rules for Mapping Identifiers
Miscellaneous IDL features are discussed in the following subsections:
IDL constants
Recursive IDL types
Unique type identifiers—RepositoryIds
C++ mapped identifiers and keywords
Java mapped identifiers and keywords
Contexts
IDL Constants
The IDL syntax allows constants to be defined for basic types, enumerations, and aliases (typedefs) of basic types and enumerations. Listing 2.36 gives some examples of IDL constant definitions.
Listing 2.36. Sample IDL Constant Definitions
//IDL // Characters constants const char A_LETTER = 'p'; const char A_NEWLINE = '\n'; const char A_SINGLE_QUOTE = '\''; // Wide character constants const wchar A_WIDE_LETTER = L'q'; const wchar A_UNICODE_LETTER = L'\u039b'; // ... |
Get Pure CORBA now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.