Re: [Quickfix-users] Issue on message.get
Brought to you by:
orenmnero
From: Jonathan K. <jon...@gm...> - 2008-02-21 18:05:37
|
Here is what I do: if (message.isSet(aLastQty)) message.get(aLastQty); Then you can simply check the value of aLastQty. If you pre-initialize it to a value you know is invalid, you don't need to rely on exception handling, which might be more desirable. Enjoy, Jonathan On Wed, Feb 20, 2008 at 6:32 AM, Francesco Pispola <fpi...@gm...> wrote: > QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > > Hi everybody, > first of all, thank you for your great job. > I'm using quickfix to build a simple application and I'm experiencing this issue: > > when an execution report arrives, I crack the message and I do this: > > FIX::LastQty aLastQty; > message.get(aLastQty); > > if this field is not in the message, I receive this exception: Conditionally Required Field Missing (32). > How can I avoid this? Can I test in any way the result of get method? > > Hope I was clear, thank you for your attention. > Francesco > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Quickfix-users mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-users > > -- -- Jonathan Kalbfeld ThoughtWave Technologies LLC www.thoughtwave.com +1 424 354 1814 |