Java Programming  «Prev 

Mapped methods with Corba Holders

The basic C++ mappings defines how IDL types are represented in C++. It covers:
  1. mapping for identifiers
  2. scoping rules
  3. mapping for built-in types
  4. mapping for constructed types
  5. memory management rules
For each C++ construct, the compiler generates a definition into the client-side header file, and an implementation into the client-side stub file. General definitions (in the CORBA module) are imported with
#include < OB/CORBA.h>

1) All elements defined in a module are in the same package
All elements defined in a module are in the same package
2) The interface definition results in a class for the interface containing all the elements defined in the IDL interface
The interface definition results in a class for the interface containing all the elements defined in the IDL interface

3) Each operation maps to a single method in the Java Interface generated for the IDL interface. The method name and operation name are the same.
Each operation maps to a single method in the Java Interface generated for the IDL interface. The method name and operation name are the same.
4) The return value is mapped as the primitive type rules define
The return value is mapped as the primitive type rules define

5) The parameter type of an in parameter is mapped according to the primitive type mapping rules
The parameter type of an in parameter is mapped according to the primitive type mapping rules

6) The parameter type of an out parameter is mapped to a holder type of the resulting mapped primitive type.
The parameter type of an out parameter is mapped to a holder type of the resulting mapped primitive type.

7) An inout parameter is mapped exactly like an out parameter to a holder type of the resulting mapped primitive type.
An inout parameter is mapped exactly like an out parameter to a holder type of the resulting mapped primitive type.