summaryrefslogtreecommitdiff
path: root/CIAO/connectors/ami4ccm/tutorials/Hello/Tutorial/03_executors.html
blob: 6cd9b4ecaf63d12fb95ac72534638c16d1081cea (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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<!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>
	<META NAME="GENERATOR" CONTENT="OpenOffice.org 3.2  (Win32)">
	<META NAME="CREATED" CONTENT="0;0">
	<META NAME="CHANGEDBY" CONTENT="Marijke Hengstmengel">
	<META NAME="CHANGED" CONTENT="20100625;14524300">
	<META NAME="CHANGEDBY" CONTENT="Marijke Hengstmengel">
	<!--//$Id$  -->
	<STYLE TYPE="text/css">
	<!--
		H2.cjk { font-family: "SimSun" }
		CODE.cjk { font-family: "NSimSun", monospace }
	-->
	</STYLE>
</HEAD>
<BODY LANG="nl-NL" DIR="ltr">
<TABLE WIDTH="100%" BORDER=0 CELLPADDING=2 CELLSPACING=2 STYLE="PAGE-BREAK-BEFORE: always">
	<TR>
		<TD>
			<P ALIGN=left><A href="02_idl.html">Previous</A></P></TD>
		<TD>
			<P ALIGN=center><IMG border=0 name=graphics1 align=bottom src="images/images.png" width="4%" height="5%" ></P></TD>
		<TD>
			<P ALIGN=right><A href="04_ami4ccm.html">Next</A></P></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 CLASS="western">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 CLASS="western"><FONT SIZE=3>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</CODE></P>
<FONT face="Times New Roman>An example of the generated code can be found <A href=" 
Hello_Sender_comp_exec.cpp? GeneratedExec Code></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>
<FONT face="Times New Roman">An example of the generated code can be found </FONT><A 
href="Code/GeneratedExec/Hello_Receiver_comp_exec.cpp"><FONT 
face="Times New Roman">here</FONT></A><FONT face="Times New Roman">.
An example of the implemented executor can be found 
</FONT><A href="Code/ImplementedExec/Hello_Receiver_comp_exec.cpp"><FONT 
face="Times New Roman">here</FONT></A><FONT face="Times New Roman"> 
.<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>
			<P ALIGN=left><A href="02_idl.html">Previous</A></P></TD>
		<TD>
			<P ALIGN=center><IMG border=0 name=graphics2 align=bottom src="images/images.png" width="4%" height="5%" ></P></TD>
		<TD>
			<P ALIGN=right><A href="04_ami4ccm.html">Next</A></P></TD></TR></TABLE>
<P><BR><BR></P></FONT></CODE>
</BODY>
</HTML>