omniORBpy: string to omniORB.EnumItem instance
chris williams via omniORB-list <[email protected]> Tue, 30 Jan 2018 16:30:28 -0500
| Newsgroups | gmane.comp.corba.omniorb.user |
|---|---|
| Message-ID | <CAN0Sa0zDVt00i=h=U78814P37aOLi2sxUCdjCvY6aTJNcfh9dA@mail.gmail.com> |
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!
_______________________________________________
omniORB-list mailing list
[email protected]
http://www.omniorb-support.com/mailman/listinfo/omniorb-list