Re: [Quickfix-developers] Is a field in header or body? - at runtime
Brought to you by:
orenmnero
From: <or...@qu...> - 2008-08-29 16:11:58
|
Yes. If you have a DataDictionary, you can call isHeaderField, and it will check against header fields defined in the xml/dictionary. Or, you can use the static isHeaderField method on message which checks against the standard header fields defined in the spec. > -------- Original Message -------- > Subject: [Quickfix-developers] Is a field in header or body? - at > runtime > From: Alex Marangos <ale...@ya...> > Date: Fri, July 25, 2008 6:44 am > To: qui...@li... > QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html<hr>Given a FIX field ID, is there a way I can lookup at runtime whether it is a header field or body field? I'm using QuickFix.Message (non version specific) pretty much throughout my test code. > i.e. I have a method like: > void PopulateField(int id, string value) > { > if(<field id is a header field>) > this.getHeader().setField(id, value); > else > this.fixMsg.setField(id, value); > } > I'm looking for something to put in the <field id is a header field> block!Rgds, > Alexandros > __________________________________________________________ > Not happy with your email address?. > Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html<hr>------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/<hr>_______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers |