Python bindings for ORBit

Documentation
* Dynamic IDL
* CORBA
* CORBA.ORB
* POA
* Servants

* CVS ChangeLog

 

Project Links
* SourceForge
* Downloads
* Bugzilla
* CVS
* Mailing List

 

Links
* ORBit2
* ORBit2 Resources
* Perl bindings
* C++ bindings
Documentation: CORBA Module

CORBA


ORB_init(argv, orb_identifier)

Arguments:

argv: (list) argument list to pass to the ORB
orb_identifier: (string) Specifies the type of ORB

Description:

Initialize the ORB and return a CORBA.ORB object.

Example:

import sys, CORBA
orb = CORBA.ORB_init(sys.argv, CORBA.ORB_ID)

_load_idl(filename)

Arguments:

filename: (string) file to dynamically load

Description:

Forces O-P to load and parse the specified file. Note that it is usually unnecessary to call _load_idl directly. It should be sufficient just to import the IDL via Python's import command.

Example:

import CORBA
CORBA._load_idl("/usr/share/idl/oaf.idl")

TypeCode(repoid)

Arguments:

repoid: (string or CORBA.Object) If a string is specified, is is the repository id of the requested typecode. If an object is given, it must be a CORBA.Object, in which case a typecode object is created based on the repository id of the given object.

Description:

Creates a type code object (CORBA.TypeCode) based on the given argument.

Example:

import CORBA
CORBA.TypeCode("IDL:CORBA/String:1.0")

Any(typecode, value)

Arguments:

typecode: (CORBA.TypeCode) specifies the type of the value argument
value: (object) (object) an object of the type given by typecode

Description:

Creates a CORBA.Any object of the type 'typecode' whose value is given with 'value.' CORBA.Any objects can represent any CORBA object.

Example:

import CORBA
CORBA.Any( CORBA.TypeCode("IDL:CORBA/String:1.0"), "foobarbaz!" )