Fw: [Quickfix-developers] How can I check if message contains some field.
Brought to you by:
orenmnero
From: ???????? ??????? <sil...@tu...> - 2003-06-20 13:40:17
|
----- Original Message ----- From: "???????? ???????" <sil...@tu...> To: <Joe...@ma...> Sent: Friday, June 20, 2003 3:52 PM Subject: Re: [Quickfix-developers] How can I check if message contains some field. > Hello! Privet. > Do you speak Russian? > > I use quickfix.dll for .Net(c#). > I have a QuickFix42.SecurityDefinition message. This message does contain > method isSetField and > QuickFix42.SecurityDefinition does not derive from FieldMap class. > > Best regards. > > ----- Original Message ----- > From: "Joerg Thoennes" <Joe...@ma...> > To: "???????? ???????" <sil...@tu...> > Cc: <qui...@li...> > Sent: Friday, June 20, 2003 3:30 PM > Subject: Re: [Quickfix-developers] How can I check if message contains some > field. > > > > Hello Vjacheslav, > > > > > How can I check if message contains some field(i.e. tag 269)? > > > > Just use > > > > if ( message->isSetField(269) ) { > > ... > > } > > > > This is difficult to find, this this method is in the class FieldMap > > which is the base class of message. > > > > If you use getField( 269 ), a FieldNotFound exception will be thrown > > if the field does not exist. > > > > Privet, Jörg ;-) > > > > -- > > Joerg Thoennes > > http://macd.com > > Tel.: +49 (0)241 44597-24 Macdonald Associates GmbH > > Fax : +49 (0)241 44597-10 Lothringer Str. 52, D-52070 Aachen > > > |