Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://rtm-cs.sinp.msu.ru/manual/mico/doc/node21.html
Дата изменения: Mon Jun 7 21:54:57 1999 Дата индексирования: Mon Oct 1 21:21:30 2012 Кодировка: |
Every MICO application has to call the ORB initialization function
ORB_init()
before using MICO functionality.
int main (int argc, char *argv[]) { CORBA::ORB_var orb = CORBA::ORB_init (argc, argv, "mico-local-orb"); ... }
That way the ORB has access to the applications command line arguments.
After evaluating them the ORB removes the command line options it understands
so the application doesn't have to care about them. You can also put
ORB command line arguments into a file called .micorc
in your home
directory. Arguments given on the command line override settings from
.micorc
. Here is a description of all ORB specific command line
arguments:
mico-local-orb
is currently the
only supported ORB identifier. This option is intended for programs
that needed access to different CORBA implementations in the same
process. In this case the option -ORBId
is used to select one
of the CORBA implementations.
-ORBImplRepoAddr
nor -ORBImpRepoIOR
the ORB will run a local
implementation repository.
-ORBImplRepoIOR
but for the interface repository.
-ORBImplRepoAddr
but for the interface repository.
-ORBImplRepoIOR
but for the naming service.
-ORBImplRepoAddr
but for the naming service.
identifer
to the given object reference. This mechanism can be used both for
custom and for standard initial references (see above).
IOR-base
is an
iioploc-
or iiopname-
Style object reference. When
a previously unknown initial reference is searched for using
resolve_initial_references()
, the searched-for identifier
is concatenated to the IOR-base
string to produce the
service's location.
<level>
is a non-negative integer
with greater values giving more debug output on cerr
.
bind(const char *repoid)
should try to
bind to. This option can be used more than once to specify multiple
addresses.
~/.micorc
).
<pattern>
is a shell-like pattern that must match
the description
field of a code set in the OSF code set
registry.
For example the pattern *8859-1*
will make the ORB use the
code set ISO-8859-1 (Latin 1) as the native char code set, which is
the default if you do not specify this option. The ORB uses this
information to automatically convert characters and strings when talking
to an application that uses a different code set.
-ORBNativeWCS
, but specifies the code set the
application uses to wide characters and wide strings. Defaults
to UTF-16, a 16 bit encoding of Unicode.