blob: 01538118790d04b5746ea24a4e8519d1e00194e4 (
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
|
<!--//$Id$ -->
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>DDS4CCM Tutorial Shapes - Executors</title>
</head>
<body>
<table width="100%" border="0">
<tr>
<td align="left"><a href="./idl.html">Previous<a></td>
<td align="center"><img width="4%" height="5%" src="./images/images.png"/></td>
<td align="right"><a href="./dds4ccm.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>Controller</h2>
<p>
In a command shell windows, navigate to the "src" directory of the
component directory of the Controller (Shapes_asm/Shapes_Control_comp/src).
After that, invoke the TAO IDL compiler by running the following command:
</p>
<p>
<code>
tao_idl -I../ports -I../ports/GeneratedCode
-I../../ports -I%TAO_ROOT% -I%TAO_ROOT%/tao -I%CIAO_ROOT%
-I%CIAO_ROOT%/ccm -I%CIAO_ROOT%/ciao -Gex
Shapes_Control_comp.idl
</code>
<br/><br/>
This will generate the executor file with "
Shapes_Control_comp_exec.cpp" as name. Once generated, the user should
implement the business logic for the controller.<br/><br/>
The generated code can be found
<a href="./Code/Shapes_Control_comp/Shapes_Control_comp_exec.cpp">here</a>.<br/>
The implemented executor can be found
<a href="../Shapes_asm/Shapes_Control_comp/src/Shapes_Control_comp_exec.cpp">
here</a><br/>
<br/>
</p>
<h2>Sender</h2>
<p>
Navigate to the Shapes_asm/Shapes_Sender_comp/src and invoke the TAO IDL
compiler by running the following command:
</p>
<p>
<code>
tao_idl -I../ports -I../../Shapes_Control_comp/ports
-I../ports/GeneratedCode -I../../ports -I%TAO_ROOT%
-I%TAO_ROOT%/tao -I%CIAO_ROOT% -I%CIAO_ROOT%/ccm -I%CIAO_ROOT%/ciao
-DCIAO_DDS4CCM_NDDS -Gex Shapes_Sender_comp.idl
</code>
<br/><br/>
The generated code can be found
<a href="./Code/Shapes_Sender_comp/Shapes_Sender_comp_exec.cpp">here</a>.<br/>
The implemented executor can be found
<a href="../Shapes_asm/Shapes_Sender_comp/src/Shapes_Sender_comp_exec.cpp">
here</a><br/>
<br/>
</p>
<h2>Receiver</h2>
<p>
Navigate to the Shapes_asm/Shapes_Receiver_comp/src and invoke the TAO IDL
compiler by running the following command:
</p>
<p>
<code>
tao_idl -I../ports -I../../Shapes_Control_comp/ports
-I../ports/GeneratedCode -I../../ports -I%TAO_ROOT%
-I%TAO_ROOT%/tao -I%CIAO_ROOT% -I%CIAO_ROOT%/ccm -I%CIAO_ROOT%/ciao
-DCIAO_DDS4CCM_NDDS -Gex Shapes_Receiver_comp.idl
</code>
<br/><br/>
The generated code can be found
<a href="./Code/Shapes_Receiver_comp/Shapes_Receiver_comp_exec.cpp">here</a>.<br/>
The implemented executor can be found
<a href="../Shapes_asm/Shapes_Receiver_comp/src/Shapes_Receiver_comp_exec.cpp">
here</a><br/>
<br/>
</p>
<hr />
<table width="100%" border="0">
<tr>
<td align="left"><a href="./idl.html">Previous<a></td>
<td align="center"><img width="4%" height="5%" src="./images/images.png"/></td>
<td align="right"><a href="./dds4ccm.html">Next<a></td>
</tr>
</table>
</body>
|