[omniORB] OmniORBpy & TypeDefs

jiwils - Jimmy Wilson jiwils@acxiom.com
Mon, 21 Aug 2000 15:53:43 -0500


Why does the idl compiler generate unusable python classes when the typedefs
are used in the IDL?  I would like to use the typedefs instead of the names
in the cases below, but I can't.  Could someone explain why using ELEMENT
and Elements below would create a problem?  Since a sequence will become a
tuple or list, I can see that the name Elements is really for ease of use,
but what about the typedef for the structure?

// Structure for element values.
typedef struct element_struct
{
	string	strName;		
	string	strValue;
} ELEMENT;
	
// Sequence to pass constraints to apply.
typedef sequence<ELEMENT>	Elements;

Jimmy
-- 
James "Jimmy" Wilson
Software Developer, Acxiom Corporation