[omniORB] omniORBpy: string to omniORB.EnumItem instance

chris williams chrswilliams516 at gmail.com
Tue Jan 30 21:30:28 GMT 2018


Is it possible to convert a string to omniORB.EnumItem instance ?  I want
to be able to accept a command line parameter and convert that to enum.

I have an enum defined as such in IDL:

enum IdlCommandType
{
   IDL_SETTINGS,
   IDL_STATS
}

If I accept a command line parameter  "IDL_SETTINGS" (as a string), what is
the python code to convert this to type _GlobalIDL.IDL_SETTINGS ?

Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20180130/ae2bd479/attachment.html>


More information about the omniORB-list mailing list