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 12:30:49
|
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 |