Re: [Quickfix-developers] How can I check if message contains some field.
Brought to you by:
orenmnero
From: Joerg T. <Joe...@ma...> - 2003-06-20 13:19:23
|
Vjacheslav Tretjak wrote: > Hello! Privet. > Do you speak Russian? Da, govorju. Desjat let v shkolje (GDR). > 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. But if it derives from Message? Sorry, but I am just about to leave the office so I have no time to analyse this further. Just put this message on Cc: to the developers list. These guys are very helpful... Cheers i poka, Jörg > ----- 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 >> > > > -- 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 |