Re: [Quickfix-developers] how to disable range checking on enums
Brought to you by:
orenmnero
From: <or...@qu...> - 2008-08-04 15:06:52
|
#3 is the best option. It works and best expresses your intention in the spec document. This is what I do to in this scenario. --oren > -------- Original Message -------- > Subject: [Quickfix-developers] how to disable range checking on enums > From: "Nick Richardson" <nic...@gm...> > Date: Thu, July 31, 2008 8:57 pm > To: qui...@li... > > > QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html<hr>There is no config parameter to disable the range checking on enum fields. > > A broker we connect to has their own user defined values for tag 102. > > I'd like to keep validation enabled but would like QF to not throw > FIX::IncorrectTagValue for added values in tag 102. > > eg - 58=Value is incorrect (out of range) for this tag|371=102| > > As i see it I have three options, > 1. disable validation all together, which I don't want to do. > > 2. change the xml file for that broker and add their values. probably not > good from a maintainability point of view going forward > > <field number="102" name="CxlRejReason" type="INT"> > <value enum="0" description="TOO_LATE_TO_CANCEL"/> > <value enum="1" description="UNKNOWN_ORDER"/> > <value enum="2" description="BROKER_OPTION"/> > <value enum="100" description="BROKER_OPTION_100)"/> > <value enum="101" description="BROKER_OPTION_101)"/> > </field> > > > 3. remove the enum values for that tag in the brokers xml file. > <field number="102" name="CxlRejReason" type="INT"> > </field> > > I leaning towards option 3 but thought i'd throw the question out to the > group to see what other people do. > > regards > nick<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 |