Modified:
trunk/ib/opt/message.py
Log:
Added ib.opt.message.messageTypeNames() to easily generate a list of
names of the various message types.
Modified: trunk/ib/opt/message.py
==============================================================================
--- trunk/ib/opt/message.py (original)
+++ trunk/ib/opt/message.py Fri Jul 18 15:47:59 2008
@@ -147,3 +147,11 @@
# A (partial) method so other modules can use the same mappings we
# have.
wrapperMethods = partial(selectWrapperMethods, EWrapper)
+
+
+def messageTypeNames():
+ """ Builds set of message type names.
+
+ @return set of all message type names as strings
+ """
+ return set([t.typeName for t in registry.values()])