diff options
Diffstat (limited to 'modules/CIAO/docs/tutorials/Quoter/Simple/01.html')
-rw-r--r-- | modules/CIAO/docs/tutorials/Quoter/Simple/01.html | 838 |
1 files changed, 838 insertions, 0 deletions
diff --git a/modules/CIAO/docs/tutorials/Quoter/Simple/01.html b/modules/CIAO/docs/tutorials/Quoter/Simple/01.html new file mode 100644 index 00000000000..fb33ed38008 --- /dev/null +++ b/modules/CIAO/docs/tutorials/Quoter/Simple/01.html @@ -0,0 +1,838 @@ +<!-- $Id$ --> +<html xmlns:v="urn:schemas-microsoft-com:vml" +xmlns:o="urn:schemas-microsoft-com:office:office" +xmlns:w="urn:schemas-microsoft-com:office:word" +xmlns:p="urn:schemas-microsoft-com:office:powerpoint" +xmlns:oa="urn:schemas-microsoft-com:office:activation" +xmlns="http://www.w3.org/TR/REC-html40"> + +<head> +<meta http-equiv=Content-Type content="text/html; charset=us-ascii"> +<meta name=ProgId content=Word.Document> +<meta name=Generator content="Microsoft Word 11"> +<meta name=Originator content="Microsoft Word 11"> +<link rel=File-List href="01_files/filelist.xml"> +<link rel=Edit-Time-Data href="01_files/editdata.mso"> +<!--[if !mso]> +<style> +v\:* {behavior:url(#default#VML);} +o\:* {behavior:url(#default#VML);} +w\:* {behavior:url(#default#VML);} +.shape {behavior:url(#default#VML);} +</style> +<![endif]--> +<title>Getting Started</title> +<!--[if gte mso 9]><xml> + <o:DocumentProperties> + <o:Author>Abdullah Sowayan</o:Author> + <o:LastAuthor>Abdullah Sowayan</o:LastAuthor> + <o:Revision>22</o:Revision> + <o:TotalTime>244</o:TotalTime> + <o:Created>2006-10-09T18:21:00Z</o:Created> + <o:LastSaved>2006-12-01T17:30:00Z</o:LastSaved> + <o:Pages>1</o:Pages> + <o:Words>859</o:Words> + <o:Characters>4900</o:Characters> + <o:Company>Maritime Systems & Sensors</o:Company> + <o:Lines>40</o:Lines> + <o:Paragraphs>11</o:Paragraphs> + <o:CharactersWithSpaces>5748</o:CharactersWithSpaces> + <o:Version>11.8107</o:Version> + </o:DocumentProperties> +</xml><![endif]--><!--[if gte mso 9]><xml> + <w:WordDocument> + <w:SpellingState>Clean</w:SpellingState> + <w:GrammarState>Clean</w:GrammarState> + <w:ValidateAgainstSchemas/> + <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> + <w:IgnoreMixedContent>false</w:IgnoreMixedContent> + <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> + <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> + </w:WordDocument> +</xml><![endif]--><!--[if gte mso 9]><xml> + <w:LatentStyles DefLockedState="false" LatentStyleCount="156"> + </w:LatentStyles> +</xml><![endif]--> +<style> +<!-- + /* Font Definitions */ + @font-face + {font-family:Tahoma; + panose-1:2 11 6 4 3 5 4 4 2 4; + mso-font-charset:0; + mso-generic-font-family:swiss; + mso-font-pitch:variable; + mso-font-signature:1627421319 -2147483648 8 0 66047 0;} + /* Style Definitions */ + p.MsoNormal, li.MsoNormal, div.MsoNormal + {mso-style-parent:""; + margin:0in; + margin-bottom:.0001pt; + mso-pagination:widow-orphan; + font-size:12.0pt; + font-family:"Times New Roman"; + mso-fareast-font-family:"Times New Roman";} +h3 + {mso-margin-top-alt:auto; + margin-right:0in; + mso-margin-bottom-alt:auto; + margin-left:0in; + mso-pagination:widow-orphan; + mso-outline-level:3; + font-size:13.5pt; + font-family:"Times New Roman"; + font-weight:bold;} +a:link, span.MsoHyperlink + {color:#000FFF; + text-decoration:underline; + text-underline:single;} +a:visited, span.MsoHyperlinkFollowed + {color:#FF0F0F; + text-decoration:underline; + text-underline:single;} +p + {mso-margin-top-alt:auto; + margin-right:0in; + mso-margin-bottom-alt:auto; + margin-left:0in; + mso-pagination:widow-orphan; + font-size:12.0pt; + font-family:"Times New Roman"; + mso-fareast-font-family:"Times New Roman";} +address + {margin:0in; + margin-bottom:.0001pt; + mso-pagination:widow-orphan; + font-size:12.0pt; + font-family:"Times New Roman"; + font-style:italic;} +code + {font-family:"Courier New"; + mso-ascii-font-family:"Courier New"; + mso-fareast-font-family:"Times New Roman"; + mso-hansi-font-family:"Courier New"; + mso-bidi-font-family:"Courier New";} +p.MsoAcetate, li.MsoAcetate, div.MsoAcetate + {mso-style-noshow:yes; + margin:0in; + margin-bottom:.0001pt; + mso-pagination:widow-orphan; + font-size:8.0pt; + font-family:Tahoma; + mso-fareast-font-family:"Times New Roman";} +span.SpellE + {mso-style-name:""; + mso-spl-e:yes;} +span.GramE + {mso-style-name:""; + mso-gram-e:yes;} +@page Section1 + {size:8.5in 11.0in; + margin:1.0in 1.25in 1.0in 1.25in; + mso-header-margin:.5in; + mso-footer-margin:.5in; + mso-paper-source:0;} +div.Section1 + {page:Section1;} + /* List Definitions */ + @list l0 + {mso-list-id:137387275; + mso-list-type:hybrid; + mso-list-template-ids:268987612 67698689 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;} +@list l0:level1 + {mso-level-number-format:bullet; + mso-level-text:\F0B7; + mso-level-tab-stop:.75in; + mso-level-number-position:left; + margin-left:.75in; + text-indent:-.25in; + font-family:Symbol;} +@list l0:level2 + {mso-level-tab-stop:1.0in; + mso-level-number-position:left; + text-indent:-.25in;} +@list l0:level3 + {mso-level-tab-stop:1.5in; + mso-level-number-position:left; + text-indent:-.25in;} +@list l0:level4 + {mso-level-tab-stop:2.0in; + mso-level-number-position:left; + text-indent:-.25in;} +@list l0:level5 + {mso-level-tab-stop:2.5in; + mso-level-number-position:left; + text-indent:-.25in;} +@list l0:level6 + {mso-level-tab-stop:3.0in; + mso-level-number-position:left; + text-indent:-.25in;} +@list l0:level7 + {mso-level-tab-stop:3.5in; + mso-level-number-position:left; + text-indent:-.25in;} +@list l0:level8 + {mso-level-tab-stop:4.0in; + mso-level-number-position:left; + text-indent:-.25in;} +@list l0:level9 + {mso-level-tab-stop:4.5in; + mso-level-number-position:left; + text-indent:-.25in;} +@list l1 + {mso-list-id:425031842; + mso-list-type:hybrid; + mso-list-template-ids:158504358 67698689 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;} +@list l1:level1 + {mso-level-number-format:bullet; + mso-level-text:\F0B7; + mso-level-tab-stop:1.75in; + mso-level-number-position:left; + margin-left:1.75in; + text-indent:-.25in; + font-family:Symbol;} +@list l1:level2 + {mso-level-tab-stop:1.0in; + mso-level-number-position:left; + text-indent:-.25in;} +@list l1:level3 + {mso-level-tab-stop:1.5in; + mso-level-number-position:left; + text-indent:-.25in;} +@list l1:level4 + {mso-level-tab-stop:2.0in; + mso-level-number-position:left; + text-indent:-.25in;} +@list l1:level5 + {mso-level-tab-stop:2.5in; + mso-level-number-position:left; + text-indent:-.25in;} +@list l1:level6 + {mso-level-tab-stop:3.0in; + mso-level-number-position:left; + text-indent:-.25in;} +@list l1:level7 + {mso-level-tab-stop:3.5in; + mso-level-number-position:left; + text-indent:-.25in;} +@list l1:level8 + {mso-level-tab-stop:4.0in; + mso-level-number-position:left; + text-indent:-.25in;} +@list l1:level9 + {mso-level-tab-stop:4.5in; + mso-level-number-position:left; + text-indent:-.25in;} +@list l2 + {mso-list-id:632565866; + mso-list-type:hybrid; + mso-list-template-ids:542421050 67698689 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;} +@list l2:level1 + {mso-level-number-format:bullet; + mso-level-text:\F0B7; + mso-level-tab-stop:1.25in; + mso-level-number-position:left; + margin-left:1.25in; + text-indent:-.25in; + font-family:Symbol;} +@list l2:level2 + {mso-level-tab-stop:1.0in; + mso-level-number-position:left; + text-indent:-.25in;} +@list l2:level3 + {mso-level-tab-stop:1.5in; + mso-level-number-position:left; + text-indent:-.25in;} +@list l2:level4 + {mso-level-tab-stop:2.0in; + mso-level-number-position:left; + text-indent:-.25in;} +@list l2:level5 + {mso-level-tab-stop:2.5in; + mso-level-number-position:left; + text-indent:-.25in;} +@list l2:level6 + {mso-level-tab-stop:3.0in; + mso-level-number-position:left; + text-indent:-.25in;} +@list l2:level7 + {mso-level-tab-stop:3.5in; + mso-level-number-position:left; + text-indent:-.25in;} +@list l2:level8 + {mso-level-tab-stop:4.0in; + mso-level-number-position:left; + text-indent:-.25in;} +@list l2:level9 + {mso-level-tab-stop:4.5in; + mso-level-number-position:left; + text-indent:-.25in;} +@list l3 + {mso-list-id:974944555; + mso-list-type:hybrid; + mso-list-template-ids:1880366448 67698689 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;} +@list l3:level1 + {mso-level-number-format:bullet; + mso-level-text:\F0B7; + mso-level-tab-stop:1.25in; + mso-level-number-position:left; + margin-left:1.25in; + text-indent:-.25in; + font-family:Symbol;} +@list l3:level2 + {mso-level-tab-stop:1.0in; + mso-level-number-position:left; + text-indent:-.25in;} +@list l3:level3 + {mso-level-tab-stop:1.5in; + mso-level-number-position:left; + text-indent:-.25in;} +@list l3:level4 + {mso-level-tab-stop:2.0in; + mso-level-number-position:left; + text-indent:-.25in;} +@list l3:level5 + {mso-level-tab-stop:2.5in; + mso-level-number-position:left; + text-indent:-.25in;} +@list l3:level6 + {mso-level-tab-stop:3.0in; + mso-level-number-position:left; + text-indent:-.25in;} +@list l3:level7 + {mso-level-tab-stop:3.5in; + mso-level-number-position:left; + text-indent:-.25in;} +@list l3:level8 + {mso-level-tab-stop:4.0in; + mso-level-number-position:left; + text-indent:-.25in;} +@list l3:level9 + {mso-level-tab-stop:4.5in; + mso-level-number-position:left; + text-indent:-.25in;} +@list l4 + {mso-list-id:1876190917; + mso-list-type:hybrid; + mso-list-template-ids:-767374784 67698689 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;} +@list l4:level1 + {mso-level-number-format:bullet; + mso-level-text:\F0B7; + mso-level-tab-stop:1.75in; + mso-level-number-position:left; + margin-left:1.75in; + text-indent:-.25in; + font-family:Symbol;} +@list l4:level2 + {mso-level-tab-stop:1.0in; + mso-level-number-position:left; + text-indent:-.25in;} +@list l4:level3 + {mso-level-tab-stop:1.5in; + mso-level-number-position:left; + text-indent:-.25in;} +@list l4:level4 + {mso-level-tab-stop:2.0in; + mso-level-number-position:left; + text-indent:-.25in;} +@list l4:level5 + {mso-level-tab-stop:2.5in; + mso-level-number-position:left; + text-indent:-.25in;} +@list l4:level6 + {mso-level-tab-stop:3.0in; + mso-level-number-position:left; + text-indent:-.25in;} +@list l4:level7 + {mso-level-tab-stop:3.5in; + mso-level-number-position:left; + text-indent:-.25in;} +@list l4:level8 + {mso-level-tab-stop:4.0in; + mso-level-number-position:left; + text-indent:-.25in;} +@list l4:level9 + {mso-level-tab-stop:4.5in; + mso-level-number-position:left; + text-indent:-.25in;} +ol + {margin-bottom:0in;} +ul + {margin-bottom:0in;} +--> +</style> +<!--[if gte mso 10]> +<style> + /* Style Definitions */ + table.MsoNormalTable + {mso-style-name:"Table Normal"; + mso-tstyle-rowband-size:0; + mso-tstyle-colband-size:0; + mso-style-noshow:yes; + mso-style-parent:""; + mso-padding-alt:0in 5.4pt 0in 5.4pt; + mso-para-margin:0in; + mso-para-margin-bottom:.0001pt; + mso-pagination:widow-orphan; + font-size:10.0pt; + font-family:"Times New Roman"; + mso-ansi-language:#0400; + mso-fareast-language:#0400; + mso-bidi-language:#0400;} +</style> +<![endif]--><!-- 01.html,v 1.3 2006/02/10 14:34:35 mxiong Exp --><!--[if gte mso 9]><xml> + <o:shapedefaults v:ext="edit" spidmax="8194"/> +</xml><![endif]--><!--[if gte mso 9]><xml> + <o:shapelayout v:ext="edit"> + <o:idmap v:ext="edit" data="1"/> + </o:shapelayout></xml><![endif]--> +</head> + +<body bgcolor=white lang=EN-US link="#000FFF" vlink="#FF0F0F" style='tab-interval: +.5in'> + +<div class=Section1> + +<h3 align=center style='margin:0in;margin-bottom:.0001pt;text-align:center; +line-height:150%'><span style='color:black'>Step 1: Define your interfaces and +component types<o:p></o:p></span></h3> + +<h3 align=center style='margin:0in;margin-bottom:.0001pt;text-align:center; +line-height:150%'><span style='color:black'><img width=447 height=350 +id="_x0000_i1025" src="images/Step1.JPG"><o:p></o:p></span></h3> + +<h3 style='margin:0in;margin-bottom:.0001pt;line-height:150%'><span +style='color:black'><o:p> </o:p></span></h3> + +<h3 style='margin:0in;margin-bottom:.0001pt;line-height:150%'><span +style='font-size:12.0pt;line-height:150%;color:black;font-weight:normal; +mso-bidi-font-weight:bold'>Please make sure to read the following article to +under the Stock <span class=SpellE>Quoter</span> system architecture before +delving further into the tutorial:<o:p></o:p></span></h3> + +<p style='margin-top:0in;margin-right:0in;margin-bottom:0in;margin-left:.75in; +margin-bottom:.0001pt;text-indent:-.25in;line-height:150%;mso-list:l0 level1 lfo2; +tab-stops:list .75in'><![if !supportLists]><span style='font-family:Symbol; +mso-fareast-font-family:Symbol;mso-bidi-font-family:Symbol'><span +style='mso-list:Ignore'>·<span style='font:7.0pt "Times New Roman"'> +</span></span></span><![endif]><a +href="http://www.cuj.com/documents/s=9152/cujexp0404vinoski/">The CORBA +Component Model, Part 2: Defining Components with the IDL 3.x Types</a></p> + +<h3 style='margin:0in;margin-bottom:.0001pt;line-height:150%'><span +style='font-size:12.0pt;line-height:150%;color:black;font-weight:normal; +mso-bidi-font-weight:bold'><o:p> </o:p></span></h3> + +<h3 style='margin:0in;margin-bottom:.0001pt;line-height:150%'><span +style='font-size:12.0pt;line-height:150%;color:black'>Directory Structure:<o:p></o:p></span></h3> + +<h3 style='margin:0in;margin-bottom:.0001pt;line-height:150%'><span +style='font-size:12.0pt;line-height:150%;color:black;font-weight:normal; +mso-bidi-font-weight:bold'>The tutorial relies on the following directory +structure. Create <span class=SpellE>Quoter</span> and all its subdirectories +as shown below. We will describe the purpose of these directories later in the +tutorial.<o:p></o:p></span></h3> + +<h3 style='margin:0in;margin-bottom:.0001pt;text-indent:.5in;line-height:150%'><span +class=SpellE><span style='font-size:12.0pt;line-height:150%;color:black; +font-weight:normal;mso-bidi-font-weight:bold'>Quoter</span></span><span +style='font-size:12.0pt;line-height:150%;color:black;font-weight:normal; +mso-bidi-font-weight:bold'><o:p></o:p></span></h3> + +<h3 style='margin:0in;margin-bottom:.0001pt;line-height:150%'><span +style='font-size:12.0pt;line-height:150%;color:black;font-weight:normal; +mso-bidi-font-weight:bold'><span +style='mso-spacerun:yes'> +</span>|---- descriptors<o:p></o:p></span></h3> + +<h3 style='margin:0in;margin-bottom:.0001pt;line-height:150%'><span +style='font-size:12.0pt;line-height:150%;color:black;font-weight:normal; +mso-bidi-font-weight:bold'><span +style='mso-spacerun:yes'> +</span>|---- <span class=SpellE>Stock_Base</span><o:p></o:p></span></h3> + +<h3 style='margin:0in;margin-bottom:.0001pt;line-height:150%'><span +style='font-size:12.0pt;line-height:150%;color:black;font-weight:normal; +mso-bidi-font-weight:bold'><span +style='mso-spacerun:yes'> +</span><span style='mso-spacerun:yes'> </span>|---- Distributor<o:p></o:p></span></h3> + +<h3 style='margin:0in;margin-bottom:.0001pt;line-height:150%'><span +style='font-size:12.0pt;line-height:150%;color:black;font-weight:normal; +mso-bidi-font-weight:bold'><span +style='mso-spacerun:yes'> +</span>|---- Broker<o:p></o:p></span></h3> + +<h3 style='margin:0in;margin-bottom:.0001pt;line-height:150%'><span +style='font-size:12.0pt;line-height:150%;color:black;font-weight:normal; +mso-bidi-font-weight:bold'><o:p> </o:p></span></h3> + +<h3 style='margin:0in;margin-bottom:.0001pt;line-height:150%'><span +style='font-size:12.0pt;line-height:150%;color:black'>Preliminaries:<o:p></o:p></span></h3> + +<h3 style='margin-top:0in;margin-right:0in;margin-bottom:0in;margin-left:.75in; +margin-bottom:.0001pt;text-indent:-.25in;line-height:150%;mso-list:l0 level1 lfo2; +tab-stops:list .75in'><![if !supportLists]><span style='font-size:12.0pt; +line-height:150%;font-family:Symbol;mso-fareast-font-family:Symbol;mso-bidi-font-family: +Symbol;color:black;font-weight:normal;mso-bidi-font-weight:bold'><span +style='mso-list:Ignore'>·<span style='font:7.0pt "Times New Roman"'> +</span></span></span><![endif]><span style='font-size:12.0pt;line-height:150%; +color:black;font-weight:normal;mso-bidi-font-weight:bold'>We use the Make +Project Creator (MPC) throughout this tutorial. Understanding MPC will aid you +in understanding this tutorial. For more information on MPC please look at the +following:<o:p></o:p></span></h3> + +<h3 style='margin-top:0in;margin-right:0in;margin-bottom:0in;margin-left:1.5in; +margin-bottom:.0001pt;text-indent:-.25in;line-height:150%;mso-list:l0 level3 lfo2; +tab-stops:list 1.5in'><![if !supportLists]><span style='font-size:12.0pt; +line-height:150%;color:black;font-weight:normal;mso-bidi-font-weight:bold'><span +style='mso-list:Ignore'>1.<span style='font:7.0pt "Times New Roman"'> +</span></span></span><![endif]><span class=GramE><span style='font-size:12.0pt; +line-height:150%;color:black;font-weight:normal;mso-bidi-font-weight:bold'>MPC <a +href="http://downloads.ociweb.com/MPC/MakeProjectCreator.pdf">Chapter</a> in <span +class=SpellE>TAO’s</span> Developer’s Guide 1.4a.</span></span><span +style='font-size:12.0pt;line-height:150%;color:black;font-weight:normal; +mso-bidi-font-weight:bold'><o:p></o:p></span></h3> + +<h3 style='margin-top:0in;margin-right:0in;margin-bottom:0in;margin-left:1.5in; +margin-bottom:.0001pt;text-indent:-.25in;line-height:150%;mso-list:l0 level3 lfo2; +tab-stops:list 1.5in'><![if !supportLists]><span style='font-size:12.0pt; +line-height:150%;color:black;font-weight:normal;mso-bidi-font-weight:bold'><span +style='mso-list:Ignore'>2.<span style='font:7.0pt "Times New Roman"'> +</span></span></span><![endif]><span style='font-size:12.0pt;line-height:150%; +color:black;font-weight:normal;mso-bidi-font-weight:bold'>$ACE_ROOT/MPC/README<o:p></o:p></span></h3> + +<p class=MsoNormal style='line-height:150%'><b><span style='color:black'>Interface +Design:</span></b><span style='color:black'><o:p></o:p></span></p> + +<p class=MsoNormal style='margin-left:.75in;text-indent:-.25in;line-height: +150%;mso-list:l0 level1 lfo2;tab-stops:list .75in'><![if !supportLists]><span +style='font-family:Symbol;mso-fareast-font-family:Symbol;mso-bidi-font-family: +Symbol;color:black'><span style='mso-list:Ignore'>·<span +style='font:7.0pt "Times New Roman"'> +</span></span></span><![endif]><span style='color:black'>In the <span +class=SpellE><i style='mso-bidi-font-style:normal'>Quoter/<span +style='mso-bidi-font-style:italic'>Stock_Base</span></i></span><i> </i><span +style='mso-bidi-font-style:italic'>sub-</span>directory, place an <span +class=SpellE>idl</span> file </span><span class=SpellE><code><i><span +style='font-size:10.0pt;line-height:150%;color:black'>Stock_Base.idl</span></i></code></span><span +style='color:black'> that you could copy from <a +href="Stock_Base/Stock_Base.idl">here</a>. This file defines the interfaces and +events that will be used by both Stock Distributor and Stock Broker. We put +together the common interface definitions so the base library can be shared by +both components, reducing the size of "real" components.<o:p></o:p></span></p> + +<p class=MsoNormal style='margin-left:.75in;text-indent:-.25in;line-height: +150%;mso-list:l0 level1 lfo2;tab-stops:list .75in'><![if !supportLists]><span +style='font-family:Symbol;mso-fareast-font-family:Symbol;mso-bidi-font-family: +Symbol;color:black'><span style='mso-list:Ignore'>·<span +style='font:7.0pt "Times New Roman"'> +</span></span></span><![endif]><span style='color:black'>Next, we need to +create a Make Project Creator (MPC) file to generate the make files for us. +From the <span class=SpellE><i style='mso-bidi-font-style:normal'>Quoter/<span +style='mso-bidi-font-style:italic'>Stock_Base</span></i></span><span +style='mso-bidi-font-style:italic'> subdirectory, type the following command:</span><o:p></o:p></span></p> + +<p class=MsoNormal style='margin-left:.5in;text-indent:.5in;line-height:150%'><span +style='font-family:"Courier New";color:black;mso-bidi-font-style:italic'>generate_component_mpc.pl +–n -e <span class=SpellE>Stock_Base</span><o:p></o:p></span></p> + +<p class=MsoNormal style='margin-left:.5in;text-indent:.5in;line-height:150%'><span +style='font-family:"Courier New";color:black;mso-bidi-font-style:italic'><o:p> </o:p></span></p> + +<p class=MsoNormal style='margin-left:.5in;text-indent:.5in;line-height:150%'><span +style='color:black;mso-bidi-font-style:italic'>Note that we pass the –e option +to </span><span style='font-family:"Courier New";color:black;mso-bidi-font-style: +italic'>generate_component_mpc.pl because our </span><span class=SpellE><code><i><span +style='font-size:10.0pt;line-height:150%;color:black'>Stock_Base.idl</span></i></code></span><code><i><span +style='font-size:10.0pt;line-height:150%;color:black'> </span></i></code><span +style='color:black;mso-bidi-font-style:italic'>uses <span class=SpellE>eventtypes</span>. +If our <span class=SpellE>idl</span> file did not use <span class=SpellE>eventtypes</span>, +we would<o:p></o:p></span></p> + +<p class=MsoNormal style='margin-left:.5in;text-indent:.5in;line-height:150%'><span +class=GramE><span style='color:black;mso-bidi-font-style:italic'>not</span></span><span +style='color:black;mso-bidi-font-style:italic'> pass the –e command line +option.<o:p></o:p></span></p> + +<p class=MsoNormal style='text-indent:.5in;line-height:150%'><span +style='font-family:"Courier New";color:black;mso-bidi-font-style:italic'><o:p> </o:p></span></p> + +<p class=MsoNormal style='margin-left:.75in;line-height:150%'><span +style='color:black;mso-bidi-font-style:italic'>The command above will generate +a <span class=SpellE><i>Stock_Base.mpc</i></span> file that contains two +projects <span class=SpellE><i>Stock_Base_stub</i></span><i> </i>and <span +class=SpellE><i>Stock_Base_skel</i></span><i> </i>for the Stub and Servant code +respectively. In addition, the command above will generate export files that +will portably handle platform specific issues of import/export declarations of +dynamically linked libraries (DLLs). After executing the command above you +should see the following output on your screen.<o:p></o:p></span></p> + +<p class=MsoNormal style='margin-left:.5in;text-indent:.75in;line-height:150%'><span +style='font-family:"Courier New";color:black;mso-bidi-font-style:italic'><o:p> </o:p></span></p> + +<p class=MsoNormal style='margin-left:.5in;text-indent:.75in;line-height:150%'><span +style='font-family:"Courier New";color:black;mso-bidi-font-style:italic'>The +following commands have been executed:<o:p></o:p></span></p> + +<p class=MsoNormal style='margin-left:.5in;text-indent:.75in;line-height:150%'><span +style='font-family:"Courier New";color:black;mso-bidi-font-style:italic'><span +style='mso-spacerun:yes'> +</span>generate_export_file.pl STOCK_BASE_STUB > <span class=SpellE>Stock_Base_stub_export.h</span><o:p></o:p></span></p> + +<p class=MsoNormal style='margin-left:.5in;text-indent:.75in;line-height:150%'><span +style='font-family:"Courier New";color:black;mso-bidi-font-style:italic'><span +style='mso-spacerun:yes'> </span>generate_export_file.pl +STOCK_BASE_SKEL > <span class=SpellE>Stock_Base_skel_export.h</span><o:p></o:p></span></p> + +<p class=MsoNormal style='margin-left:.5in;text-indent:.75in;line-height:150%'><span +style='font-family:"Courier New";color:black;mso-bidi-font-style:italic'><o:p> </o:p></span></p> + +<p class=MsoNormal style='margin-left:1.75in;text-indent:-1.25in;line-height: +150%;mso-list:l1 level1 lfo4;tab-stops:list .75in 1.75in'><![if !supportLists]><span +style='font-family:Symbol;mso-fareast-font-family:Symbol;mso-bidi-font-family: +Symbol;color:black;mso-bidi-font-style:italic'><span style='mso-list:Ignore'>·<span +style='font:7.0pt "Times New Roman"'> +</span></span></span><![endif]><span style='color:black;mso-bidi-font-style: +italic'>The MPC file should look like <a href="Stock_Base/Stock_Base.mpc">this</a>. +</span><span style='font-family:"Courier New";color:black;mso-bidi-font-style: +italic'><o:p></o:p></span></p> + +<p class=MsoNormal style='margin-left:.5in;line-height:150%'><span +style='font-family:"Courier New";color:black;mso-bidi-font-style:italic'><o:p> </o:p></span></p> + +<p class=MsoNormal style='line-height:150%'><b><span style='color:black'>Component +Design:</span></b><span style='color:black'><o:p></o:p></span></p> + +<p class=MsoNormal style='text-indent:.5in;line-height:150%'><b +style='mso-bidi-font-weight:normal'><span style='color:black'>Distributor:</span></b><span +style='color:black'> <o:p></o:p></span></p> + +<p class=MsoNormal style='margin-left:1.25in;text-indent:-.25in;line-height: +150%;mso-list:l3 level1 lfo6;tab-stops:list 1.25in'><![if !supportLists]><span +style='font-family:Symbol;mso-fareast-font-family:Symbol;mso-bidi-font-family: +Symbol;color:black'><span style='mso-list:Ignore'>·<span +style='font:7.0pt "Times New Roman"'> +</span></span></span><![endif]><span style='color:black'>In the </span><span +class=SpellE><code><i><span style='font-size:10.0pt;line-height:150%; +color:black'>Quoter</span></i></code></span><code><i><span style='font-size: +10.0pt;line-height:150%;color:black'>/Distributor </span></i></code><code><span +style='mso-ansi-font-size:12.0pt;mso-bidi-font-size:12.0pt;line-height:150%; +font-family:"Times New Roman";color:black;mso-bidi-font-style:italic'>sub-directory</span></code><span +style='color:black'>, place an <span class=SpellE>idl</span> file </span><span +class=SpellE><code><i><span style='font-size:10.0pt;line-height:150%; +color:black'>Distributor.idl</span></i></code></span><span style='color:black'> +that looks like <a href="Distributor/Distributor.idl">this</a>. This file +defines the <span class=SpellE>StockDistributor</span> component interfaces.<o:p></o:p></span></p> + +<p class=MsoNormal style='margin-left:1.25in;text-indent:-.25in;line-height: +150%;mso-list:l3 level1 lfo6;tab-stops:list 1.25in'><![if !supportLists]><span +style='font-family:Symbol;mso-fareast-font-family:Symbol;mso-bidi-font-family: +Symbol;color:black'><span style='mso-list:Ignore'>·<span +style='font:7.0pt "Times New Roman"'> +</span></span></span><![endif]><span style='color:black'>Next, we need to +create a Make Project Creator (MPC) file to generate the make files for us. +From the <span class=SpellE><i style='mso-bidi-font-style:normal'>Quoter</i></span><i +style='mso-bidi-font-style:normal'>/<span style='mso-bidi-font-style:italic'>Distributor +</span></i><span style='mso-bidi-font-style:italic'><span +style='mso-spacerun:yes'> </span>sub-directory, type the following +command:</span><o:p></o:p></span></p> + +<p class=MsoNormal style='margin-left:.5in;text-indent:1.25in;line-height:150%'><span +style='font-family:"Courier New";color:black'>generate_component_mpc.pl -p <span +class=SpellE>Stock_Base</span> Distributor<o:p></o:p></span></p> + +<p class=MsoNormal style='margin-left:.5in;text-indent:1.25in;line-height:150%'><span +style='font-family:"Courier New";color:black;mso-bidi-font-style:italic'><o:p> </o:p></span></p> + +<p class=MsoNormal style='margin-left:1.25in;line-height:150%'><span +style='color:black;mso-bidi-font-style:italic'>The command above will generate +a <span class=SpellE><i>Distirubotor.mpc</i></span> file that contains three +projects <span class=SpellE><i>Distributor_stub</i></span><i>, <span +class=SpellE>Distributor_svnt</span>, and <span class=SpellE>Distributor_exec</span> +</i>for the Stub, Servant, and Executor code respectively. In addition, the +command above will generate export files that will portably handle platform +specific issues of import/export declarations of dynamically linked libraries +(DLLs). After executing the command above you should see the following output +on your screen.<o:p></o:p></span></p> + +<p class=MsoNormal style='margin-left:1.25in;text-indent:.75in;line-height: +150%'><span style='font-family:"Courier New";color:black;mso-bidi-font-style: +italic'><o:p> </o:p></span></p> + +<p class=MsoNormal style='margin-left:1.5in;line-height:150%'><span +style='font-family:"Courier New";color:black;mso-bidi-font-style:italic'>The +following commands have been executed:<o:p></o:p></span></p> + +<p class=MsoNormal style='margin-left:1.5in;line-height:150%'><span +style='font-family:"Courier New";color:black;mso-bidi-font-style:italic'><span +style='mso-spacerun:yes'> +</span>generate_export_file.pl DISTRIBUTOR_STUB > <span class=SpellE>Distributor_stub_export.h</span><o:p></o:p></span></p> + +<p class=MsoNormal style='margin-left:1.5in;line-height:150%'><span +style='font-family:"Courier New";color:black;mso-bidi-font-style:italic'><span +style='mso-spacerun:yes'> +</span>generate_export_file.pl DISTRIBUTOR_SVNT > <span class=SpellE>Distributor_svnt_export.h</span><o:p></o:p></span></p> + +<p class=MsoNormal style='margin-left:1.5in;line-height:150%'><span +style='font-family:"Courier New";color:black;mso-bidi-font-style:italic'><span +style='mso-spacerun:yes'> +</span>generate_export_file.pl DISTRIBUTOR_EXEC > <span class=SpellE>Distributor_exec_export.h</span><o:p></o:p></span></p> + +<p class=MsoNormal style='line-height:150%'><span style='color:black'><o:p> </o:p></span></p> + +<p class=MsoNormal style='margin-left:1.25in;line-height:150%'><span +style='color:black'>We will modify the generated MPC file to add an additional +project later in the tutorial.<o:p></o:p></span></p> + +<p class=MsoNormal style='margin-left:1.25in;text-indent:-.25in;line-height: +150%;mso-list:l4 level1 lfo8;tab-stops:list 1.25in 1.75in'><![if !supportLists]><span +style='font-family:Symbol;mso-fareast-font-family:Symbol;mso-bidi-font-family: +Symbol;color:black;mso-bidi-font-style:italic'><span style='mso-list:Ignore'>·<span +style='font:7.0pt "Times New Roman"'> +</span></span></span><![endif]><span style='color:black;mso-bidi-font-style: +italic'>The </span><span class=SpellE><i><span style='font-family:"Courier New"; +color:black'>Stock_Base_Distributor_stub</span></i></span><span +style='color:black;mso-bidi-font-style:italic'>, </span><span class=SpellE><i><span +style='font-family:"Courier New";color:black'>Stock_Base_Distributor_svnt</span></i></span><span +style='color:black;mso-bidi-font-style:italic'>, and </span><span class=SpellE><i><span +style='font-family:"Courier New";color:black'>Stock_Base_Distributor_exec</span></i></span><span +style='color:black;mso-bidi-font-style:italic'> projects in the MPC file should +look like <a href="Distributor/Distributor.mpc">this</a>. </span><span +style='font-family:"Courier New";color:black;mso-bidi-font-style:italic'><o:p></o:p></span></p> + +<p class=MsoNormal style='line-height:150%'><span style='color:black'><o:p> </o:p></span></p> + +<p class=MsoNormal style='text-indent:.5in;line-height:150%'><b +style='mso-bidi-font-weight:normal'><span style='color:black'>Broker:<o:p></o:p></span></b></p> + +<p class=MsoNormal style='margin-left:1.25in;text-indent:-.25in;line-height: +150%;mso-list:l2 level1 lfo10;tab-stops:list 1.25in'><![if !supportLists]><span +style='font-family:Symbol;mso-fareast-font-family:Symbol;mso-bidi-font-family: +Symbol;color:black'><span style='mso-list:Ignore'>·<span +style='font:7.0pt "Times New Roman"'> +</span></span></span><![endif]><span style='color:black'>In the </span><span +class=SpellE><code><i><span style='font-size:10.0pt;line-height:150%; +color:black'>Quoter</span></i></code></span><code><i><span style='font-size: +10.0pt;line-height:150%;color:black'>/Broker</span></i></code><span +style='color:black'> <code><span style='mso-ansi-font-size:12.0pt;mso-bidi-font-size: +12.0pt;line-height:150%;font-family:"Times New Roman";mso-bidi-font-style:italic'>sub-directory,</span></code> +place an <span class=SpellE>idl</span> file </span><span class=SpellE><code><i><span +style='font-size:10.0pt;line-height:150%;color:black'>Broker.id</span></i></code><code><span +style='font-size:10.0pt;line-height:150%;color:black'>l</span></code></span><span +style='color:black'> that looks like <a href="Broker/Broker.idl">this</a>. This +file defines the <span class=SpellE>StockBroker</span> component interface.<b +style='mso-bidi-font-weight:normal'><o:p></o:p></b></span></p> + +<p class=MsoNormal style='margin-left:1.25in;text-indent:-.25in;line-height: +150%;mso-list:l2 level1 lfo10;tab-stops:list 1.25in'><![if !supportLists]><span +style='font-family:Symbol;mso-fareast-font-family:Symbol;mso-bidi-font-family: +Symbol;color:black'><span style='mso-list:Ignore'>·<span +style='font:7.0pt "Times New Roman"'> +</span></span></span><![endif]><span style='color:black'>Next, we need to +create a Make Project Creator (MPC) file to generate the make files for us. +From the <span class=SpellE><i style='mso-bidi-font-style:normal'>Quoter</i></span><i +style='mso-bidi-font-style:normal'>/<span style='mso-bidi-font-style:italic'>Broker</span></i><span +style='mso-bidi-font-style:italic'> sub-directory, type the following command:</span><o:p></o:p></span></p> + +<p class=MsoNormal style='margin-left:.5in;text-indent:1.25in;line-height:150%'><span +style='font-family:"Courier New";color:black'>generate_component_mpc.pl -p <span +class=SpellE>Stock_Base</span> Broker<o:p></o:p></span></p> + +<p class=MsoNormal style='margin-left:.5in;text-indent:1.25in;line-height:150%'><span +style='font-family:"Courier New";color:black;mso-bidi-font-style:italic'><o:p> </o:p></span></p> + +<p class=MsoNormal style='margin-left:1.25in;line-height:150%'><span +style='color:black;mso-bidi-font-style:italic'>The command above will generate +a <span class=SpellE><i>Broker.mpc</i></span> file that contains three projects +<span class=SpellE><i>Broker_stub</i></span><i>, <span class=SpellE>Broker_svnt</span>, +and <span class=SpellE>Broker_exec</span> </i>for the Stub, Servant, and +Executor code respectively. In addition, the command above will generate export +files that will portably handle platform specific issues of import/export +declarations of dynamically linked libraries (DLLs). After executing the +command above you should see the following output on your screen.<o:p></o:p></span></p> + +<p class=MsoNormal style='margin-left:1.25in;text-indent:.75in;line-height: +150%'><span style='font-family:"Courier New";color:black;mso-bidi-font-style: +italic'><o:p> </o:p></span></p> + +<p class=MsoNormal style='margin-left:1.5in;line-height:150%'><span +style='font-family:"Courier New";color:black;mso-bidi-font-style:italic'>The +following commands have been executed:<o:p></o:p></span></p> + +<p class=MsoNormal style='margin-left:1.5in;line-height:150%'><span +style='font-family:"Courier New";color:black;mso-bidi-font-style:italic'><span +style='mso-spacerun:yes'> +</span>generate_export_file.pl BROKER_STUB > <span class=SpellE>Broker_stub_export.h</span><o:p></o:p></span></p> + +<p class=MsoNormal style='margin-left:1.5in;line-height:150%'><span +style='font-family:"Courier New";color:black;mso-bidi-font-style:italic'><span +style='mso-spacerun:yes'> +</span>generate_export_file.pl BROKER_SVNT > <span class=SpellE>Broker_svnt_export.h</span><o:p></o:p></span></p> + +<p class=MsoNormal style='margin-left:1.5in;line-height:150%'><span +style='font-family:"Courier New";color:black;mso-bidi-font-style:italic'><span +style='mso-spacerun:yes'> +</span>generate_export_file.pl BROKER_EXEC > <span class=SpellE>Broker_exec_export.h</span><o:p></o:p></span></p> + +<p class=MsoNormal style='line-height:150%'><span style='color:black'><o:p> </o:p></span></p> + +<p class=MsoNormal style='margin-left:1.25in;line-height:150%'><span +style='color:black'>We will modify the generated MPC file to add an additional +project later in the tutorial.<o:p></o:p></span></p> + +<p class=MsoNormal style='margin-left:1.75in;text-indent:-.75in;line-height: +150%;mso-list:l4 level1 lfo8;tab-stops:list 1.25in 1.75in'><![if !supportLists]><span +style='font-family:Symbol;mso-fareast-font-family:Symbol;mso-bidi-font-family: +Symbol;color:black;mso-bidi-font-style:italic'><span style='mso-list:Ignore'>·<span +style='font:7.0pt "Times New Roman"'> +</span></span></span><![endif]><span style='color:black;mso-bidi-font-style: +italic'>The </span><span class=SpellE><i><span style='font-family:"Courier New"; +color:black'>Stock_Base_Broker_stub</span></i></span><span style='color:black; +mso-bidi-font-style:italic'>, </span><span class=SpellE><i><span +style='font-family:"Courier New";color:black'>Stock_Base_Broker_svnt</span></i></span><span +style='color:black;mso-bidi-font-style:italic'>, and </span><span class=SpellE><i><span +style='font-family:"Courier New";color:black'>Stock_Base_Broker_exec</span></i></span><span +style='color:black;mso-bidi-font-style:italic'> projects in the MPC file should +look like <a href="Broker/Broker.mpc">this</a>. </span><span style='font-family: +"Courier New";color:black;mso-bidi-font-style:italic'><o:p></o:p></span></p> + +<p class=MsoNormal style='line-height:150%'><span style='color:black'><br> +<b style='mso-bidi-font-weight:normal'>Note:<o:p></o:p></b></span></p> + +<p class=MsoNormal style='line-height:150%'><span style='color:black'>To understand +the meaning of different parameters passed to </span><span style='font-family: +"Courier New";color:black;mso-bidi-font-style:italic'>generate_export_file.pl </span><span +style='color:black;mso-bidi-font-style:italic'>type the</span><span +style='color:black'> following command:<o:p></o:p></span></p> + +<p class=MsoNormal style='line-height:150%'><span style='font-family:"Courier New"; +color:black;mso-bidi-font-style:italic'>generate_export_file.pl -h</span><span +style='color:black'><br style='mso-special-character:line-break'> +<![if !supportLineBreakNewLine]><br style='mso-special-character:line-break'> +<![endif]><b style='mso-bidi-font-weight:normal'><o:p></o:p></b></span></p> + +<p class=MsoNormal style='line-height:150%'><span style='color:black'> +<o:p></o:p></span></p> + +<div class=MsoNormal align=center style='text-align:center;line-height:150%'><span +style='color:black'> + +<hr size=2 width="100%" align=center> + +</span></div> + +<address style='line-height:150%'><span style='color:black'><a +href="mailto:ming.xiong@vanderbilt.edu">Ming Xiong<br> +</a></span><a href="mailto:abdullah.sowayan@lmco.com">Abdullah Sowayan</a></address> + +<address style='line-height:150%'><span style='color:black'><o:p> </o:p></span></address> + +<p class=MsoNormal style='line-height:150%'><span style='color:black'><!-- Created: Sat Nov 27 15:25:06 CST 1999 --><!-- hhmts start -->Last +modified:<!-- hhmts end --> <o:p></o:p></span></p> + +</div> + +</body> + +</html> |