Table of Contents

Module: __init__ omni/omniORB/__init__.py

Imported modules   
import CORBA
import _omnipy
from _omnipy.omni_func import *
import exceptions
import imp
import omniORB
import omniORB.PortableServer
import os
import os.path
import string
import sys
import tcInternal
import tempfile
import types
Functions   
addWThreadHook
cdrMarshal
cdrUnmarshal
coerceAny
coreVersion
createUnknownStruct
createUnknownUnion
createUnknownUserException
findType
findTypeCode
importIDL
importIDLString
importIRStubs
newEmptyClass
newModule
omniidlArguments
openModule
registerObjref
registerType
static_is_a
  addWThreadHook 
addWThreadHook ( hook )

addWThreadHook(hook) -> None

Arrange to call "hook(WTHREAD_{CREATED,DELETED}, wt)" on the new thread whenever the runtime creates or deletes a Python "omniORB.WorkerThread" "wt" (for instance as a result of a new incoming connection). There is no concurrency control: "addWThreadHook()" must be called before the runtime creates any "WorkerThread"s.

  cdrMarshal 
cdrMarshal ( tc,  data )

cdrMarshal(TypeCode, data) -> string

Marshal data with the given type into a CDR encapsulation. The data can later be converted back into Python objects with cdrUnmarshal(). The encapsulation is language, platform, and ORB independent.

Exceptions   
TypeError( "Argument 1 must be a TypeCode" )
  cdrUnmarshal 
cdrUnmarshal ( tc,  encap )

cdrUnmarshal(TypeCode, string) -> data

Unmarshal a CDR stream created with cdrMarshal() or equivalent. The encapsulation MUST adhere to the given TypeCode.

Exceptions   
TypeError( "Argument 1 must be a TypeCode" )
  coerceAny 
coerceAny (
        v,
        fd,
        td,
        )

  coreVersion 
coreVersion ()

coreVersion()

Return a string containing the version number of the omniORB core, of the form major.minor.micro. Versions from 3.0.0 up support the full POA functionality.

  createUnknownStruct 
createUnknownStruct ( repoId,  members )

Exceptions   
TypeError("not enough arguments; expected " + str(len( self._members ) ) + ", got " + str(len( args ) ) )
TypeError("too many arguments; expected " + str(len( self._members ) ) + ", got " + str(len( args ) ) )
  createUnknownUnion 
createUnknownUnion (
        repoId,
        def_used,
        members,
        )

  createUnknownUserException 
createUnknownUserException ( repoId,  members )

Exceptions   
TypeError("not enough arguments; expected " + str(len( self._members ) ) + ", got " + str(len( args ) ) )
TypeError("too many arguments; expected " + str(len( self._members ) ) + ", got " + str(len( args ) ) )
  findType 
findType ( repoId )

  findTypeCode 
findTypeCode ( repoId )

  importIDL 
importIDL (
        idlname,
        args=None,
        inline=1,
        )

importIDL(filename [, args ] [, inline ]) -> tuple

Run the IDL compiler on the specified IDL file, and import the resulting stubs. If args is present, it must contain a list of strings used as arguments to omniidl. If args is not present, uses the default set with omniidlArguments().

Normally imports the definitions for #included files as well as the main file. Set inline to 0 to only import definitions for the main file.

Returns a tuple of Python module names corresponding to the IDL module names declared in the file. The modules can be accessed through sys.modules.

Import an IDL file by forking the IDL compiler and processing the output

Exceptions   
ImportError( "Error spawning omniidl" )
ImportError( "File " + idlname + " does not exist" )
ImportError( "Invalid output from omniidl" )
  importIDLString 
importIDLString (
        str,
        args=None,
        inline=1,
        )

importIDLString(string [, args ] [, inline ]) -> tuple

Run the IDL compiler on the given string, and import the resulting stubs. If args is present, it must contain a list of strings used as arguments to omniidl. If args is not present, uses the default set with omniidlArguments().

Normally imports the definitions for #included files as well as the main file. Set inline to 0 to only import definitions for the main file.

Returns a tuple of Python module names corresponding to the IDL module names declared in the file. The modules can be accessed through sys.modules.

  importIRStubs 
importIRStubs ()

importIRStubs() -> None

Make stubs for the Interface Repository appear in the CORBA module

  newEmptyClass 
newEmptyClass ()

Function to create a new empty class as a scope place-holder

  newModule 
newModule ( mname )

Function to create a new module, and any parent modules which do not already exist

  omniidlArguments 
omniidlArguments ( args )

omniidlArguments(list)

Set default omniidl arguments for importIDL() and importIDLString(). e.g. omniidlArguments(["-I/my/include", "-DMY_DEFINE"])

Exceptions   
TypeError( "argument must be a list of strings" )
  openModule 
openModule ( mname,  fname=None )

Function to return a Python module for the required IDL module name

  registerObjref 
registerObjref ( repoId,  objref )

  registerType 
registerType (
        repoId,
        desc,
        tc,
        )

  static_is_a 
static_is_a ( cls,  repoId )

Support for _is_a()

Classes   

AnonymousEnumItem

Enum

EnumItem

Union

WorkerThread


Table of Contents

This document was automatically generated on Wed Mar 26 19:03:09 2003 by HappyDoc version 2.1