1 <!doctype html public
"-//w3c//dtd html 4.0 transitional//en">
4 <meta http-equiv=
"Content-Type" content=
"text/html; charset=iso-8859-1">
5 <meta name=
"GENERATOR" content=
"Mozilla/4.5 [en] (X11; I; SunOS 5.5.1 sun4u) [Netscape]">
6 <title>tao_ifr User's Guide
</title>
9 <body text=
"#000000" bgcolor=
"#FFFFFF" link=
"#0000FF" vlink=
"#CC0000">
13 tao_ifr User's Guide
</h3>
15 <h3> Overview
</h3> tao_ifr is TAO's interface repository loader. When executed, it will first resolve the interface repository, either by finding the interface repository's IOR in a file whose name is passed to it through the -ORBInitRef command line option, or by IP multicast (the default). Note - if the -ORBInitRef option is used, it should come first on the command line, since it will be consumed when the ORB is initialized. Then it will create entries in (or remove entries from) the repository corresponding to the declarations found in the IDL file(s) passed to it. If an entry to be removed is not found the repository, nothing happens. As stated elsewhere in the documentation, if an entry to be added is found to already exist in the repository (that is, if the interface repository id is found by lookup), the old entry will be replaced by the new one. It is the user's responsibility to make sure that no entries are unexpectedly replaced in the repository. This is also the method by which interfaces forward declared but not defined in one IDL file are fully defined in another. If the old and new entries are both interfaces, there is no way for tao_ifr to know if this is the intention, or if there is a genuine name clash. The behavior shown by tao_ifr in this case was chosen to conform to the behavior of the interface repository loaders from other ORB vendors.
21 <h3><A NAME=
"options">tao_ifr Command Line Options
</A></h3>
23 tao_ifr uses the front end of the TAO IDL compiler, which invokes your
<tt>C
</tt> (or
<tt>C++
</tt>)
24 preprocessor to resolve included IDL files. It receives the common
25 options for preprocessors (such as
<tt>-D
</tt> or
<tt>-I
</tt>). It
26 also receives other options that are specific to it
<P>
28 <table BORDER=
2 CELLSPACING=
2 CELLPADDING=
0 >
34 <tr><a NAME=
"ORBInitRef">
35 <td><tt>-ORBInitRef InterfaceRepository=
36 corbaloc:iiop:[hostname]:[port]/InterfaceRepository
</tt></td>
38 <td>Locate the Interface Repository using the
<a href=
"../INS.html">Interoperable Naming Service
</a></td>
39 <td>Without this option, the Interface Repository will be located by multicast.
</td>
43 <td><tt>-ORBInitRef InterfaceRepository=file://[filename]
</tt></td>
44 <td>Locate the Interface Repository using the IOR from a file.
</td>
46 <td>Without this option, the Interface Repository will be located by multicast.
</td>
51 <td>Prints the options given below and exits.
</td>
52 <td>Outputs to stdout by default.
</td>
58 <td>Traces tao_ifr processing stages.
</td>
65 <td>Prints version information and exits.
</td>
72 <td>Invokes the preprocessor and exits.
</td>
73 <td>Outputs to stdout by default.
</td>
79 <td>Outputs a dump of the AST.
</td>
80 <td>Outputs to stdout by default.
</td>
84 <td><tt>-D
</tt><i>macro_definition
</i></td>
86 <td><i>macro_definition
</i> is passed to the preprocessor.
</td>
91 <td><tt>-U
</tt><i>macro_name
</i></td>
93 <td><i>macro_name
</i> is passed to the preprocessor.
</td>
94 <td>Undefines
<i>macro_name
</i>.
</td>
98 <td><tt>-I
</tt><i>include_path
</i></td>
100 <td><i>include_path
</i> is passed to the preprocessor.
</td>
105 <td><tt>-A
</tt><i>assertion
</i></td>
107 <td><i>assertion
</i> is passed to the preprocessor.
</td>
108 <td>Local implementation-specific escape.
</td>
112 <td><tt>-Yp,
<i>path
</i></tt></td>
114 <td>Specifies the path for the preprocessor.
</td>
119 <td><tt>-t
</tt> <i>directory_name
</i></td>
121 <td>Temporary directory to be used by the IDL compiler.
</td>
123 Resolve ACE_DEFAULT_TEMP_DIR_ENV. If it is not defined,
129 <td><tt>-Cw
</tt></td>
131 <td>Output a warning if two identifiers in the same scope differ in
132 spelling only by case.
</td>
134 <td>Default is to output error message. This option has been added as a nicety
135 for dealing with legacy IDL files, written when the CORBA rules for name
136 resolution were not as stringent.
</td>
140 <td><tt>-Ce
</tt></td>
142 <td>Output an error if two indentifiers in the same scope differ in
143 spelling only by case.
</td>
145 <td>This will also happen by default.
</td>
151 <td>Suppress IDL compiler warning messages.
</td>
157 <td><tt>-Si
</tt></td>
159 <td>Suppress processing of included IDL files.
</td>
160 <td>Default is to process included IDL files.
</td>
166 <td>Enables locking at the IDL file level.
</td>
167 <td>Guards against the same IDL file being processed concurrently by multiple
168 threads running tao_ifr.
</td>
174 <td>Remove contents of IDL file(s) from the repository.
</td>
175 <td>Default is to add contents.
</td>
181 Back to the Interface Repository
<A HREF=
"index.html">documentation
</A>.
183 <!--#include virtual="/~schmidt/cgi-sig.html" -->