[omniORB] How to do TypeCodes in omniORBpy?

Craig Rodrigues rodrigc@mediaone.net
Thu, 12 Apr 2001 10:55:35 -0400


Hi,

I am reading the Python Language Mapping at:
http://cgi.omg.org/cgi-bin/doc?formal/01-02-66

and am trying to figure out how TypeCodes work.

Section 1.3.8 is a bit vague about TypeCodes
for basic IDL types.

Is CORBA.tk_string the typecode for a string?
Or is it CORBA.TCKind.tk_string?

I am guessing this from reading the CORBA 2.4
specification and Chapter 16.3.1 of
"Advanced CORBA Programming with C++" by Henning
and Vinoski.

What I want to do is:

any1 = CORBA.Any ( type code for string, "someString")
an2 = CORBA.Any ( type code for long, 35)

Any help would be appreciated.
-- 
Craig Rodrigues        
http://www.gis.net/~craigr    
rodrigc@mediaone.net