Previous Next

Executors

Once the IDL files are created, the business logic for the components should be implemented. Since components can be complex, we can use the IDL compiler to create empty executor files. This part of the tutorial explains how this can be done.

Sender

In a command shell windows, navigate to the Hello_asm/Sender_comp/src and invoke the TAO IDL compiler by running the following command:

tao_idl -I../../ports -I../../GeneratedCode -I%TAO_ROOT% -I%TAO_ROOT%/tao -I%CIAO_ROOT% -I%CIAO_ROOT%/ccm -I%CIAO_ROOT%/ciao -Gex Hello_Senmder_comp.idl

An example of the generated code can be found here. An example of the implemented executor can be found here.
Be aware that running this command, will overwrite the already implemented exec code in the Hello_asm/Sender_comp directory. A copy of the implemented executor can be found here.

Receiver

Navigate to the Hello_asm/Receiver_comp/src and invoke the TAO IDL compiler by running the following command:

tao_idl -I../../ports -I../../GeneratedCode -I%TAO_ROOT% -I%TAO_ROOT%/tao -I%CIAO_ROOT% -I%CIAO_ROOT%/ccm -I%CIAO_ROOT%/ciao -Gex Hello_Receiver_comp.idl.

An example of the generated code can be found here. An example of the implemented executor can be found here.
Be aware that running this command, will overwrite the already implemented exec code in the Hello_asm/Receiver_comp directory. A copy of the implemented executor can be found here.



Previous Next