[Quickfix-developers] Enumerating all repeating groups in a FIX message
Brought to you by:
orenmnero
From: Alex M. <ale...@ya...> - 2009-04-29 18:35:19
|
Hi, I'm working on a simple FIX log formatter for my application, and I'm a bit stuck when it comes to iterating through repeating groups in a FIX message. What I've currently done is as follows (this is all in C#): internal string FormatMessage(QuickFix.Message msg) { foreach(QuickFix.StringField fld in msg.getHeader()) result += FormatField(fld); foreach(QuickFix.StringField fld in msg) result += FormatField(fld); foreach(QuickFix.StringField fld in msg.getTrailer()) result += FormatField(fld); } I'm looking for a simple way to extend the above to handle repeating groups in the message body. I don't want to use a DataDictionary, as this needs to be as generic as possible (I have no idea what FIX version the message will be and what groups may or may not be in the message). Alternatively, is there a way to enumerate through *all* fields of the message, regardless of whether they are in a group or not? Thanks, Alexandros |