blob: 7671e72d91a63c8f2e0d574d1e9f482463ec8add (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!--// -->
<HTML>
<HEAD>
<META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=windows-1252">
<TITLE>AMI4CCM Tutorial Hello - Executors</TITLE>
</HEAD>
<BODY>
<TABLE WIDTH="100%" BORDER=0 CELLPADDING=2 CELLSPACING=2 STYLE="PAGE-BREAK-BEFORE: always">
<TR>
<TD ALIGN=left><A href="02_idl.html">Previous</A></TD>
<TD ALIGN=center></TD>
<TD ALIGN=right><A href="04_ami4ccm.html">Next</A></TD></TR></TABLE>
<HR>
<H1>Executors</H1>
<P>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. </P>
<H2>Sender</H2>
<P>In a command shell windows, navigate to the
Hello_asm/Sender_comp/src and invoke the TAO IDL compiler by running the
following command: </P>
<P><CODE>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_Sender_comp.idl</CODE></P>
<FONT face="Times New Roman">An example of the generated code can be found
<A href="Code/GeneratedExec/Hello_Sender_comp_exec.cpp">here</A>. An
example of the implemented executor can be found
<A href="Code/ImplementedExec/Hello_Sender_comp_exec.cpp">here</A>.<BR>
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
<A href="Code/ImplementedExec/Hello_Sender_comp_exec.cpp">here</A>.</FONT></P>
<H2 class=western>Receiver</H2>
<P>Navigate to the Hello_asm/Receiver_comp/src and invoke the TAO IDL compiler
by running the following command: </P>
<P><CODE class=western>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<BR></CODE></p>
An example of the generated code can be found <A href="Code/GeneratedExec/Hello_Receiver_comp_exec.cpp">here</A>.
An example of the implemented executor can be found <A href="Code/ImplementedExec/Hello_Receiver_comp_exec.cpp">here</A>.<BR>
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 <A
href="Code/ImplementedExec/Hello_Receiver_comp_exec.cpp">here</A>.</FONT></P>
<P><BR><BR></P><TABLE BORDER=0 CELLPADDING =2 CELLSPACING =2 width ="100%" >
<TR>
<TD ALIGN=left><A href="02_idl.html">Previous</A></TD>
<TD ALIGN=center></TD>
<TD ALIGN=right><A href="04_ami4ccm.html">Next</A></TD></TR></TABLE>
<P><BR><BR></P></FONT></CODE>
</BODY>
</HTML>
|