Realizing server operations

About this task

Classes that inherit from CORBA interfaces must implement each operation of the CORBA interface. Each of the realizing operations must have the same name and the same number and order of arguments as the operation in the parent CORBA interface. The argument types in the realizing operation must be derived from the interface according to the IDL-to-C++ mapping scheme specified by the CORBA standard.

For example, if the following CORBA interface operation, the argument has type long:

op1(long arg1);

The type of the argument of the corresponding operation in the realizing class CORBA::long is as follows:

op1(CORBA::long arg1);

The type conversion is done automatically when you copy (drag-and-drop) the operation from the CORBA interface to the realizing class.

The CORBA::TAO::EnvParamType property specifies whether to generate an additional CORBA_env& parameter for operations. This property is normally set at the component level, thus affecting all packages, classes, and operations within the scope of the component.


Feedback