Re: [Quickfix-developers] How to set custom/user-defined fields
Brought to you by:
orenmnero
From: Caleb E. <ca...@bk...> - 2004-05-17 14:08:43
|
On Mon, May 17, 2004 at 09:00:48AM -0500, Vijay Singh Yadav wrote: > Hello All, This should be a fairly elementary question. How does one > set a user-defined tag in a message (I need to do this for both > NewOrderSingle and CancelReplace classses). We have a custom tag > 9707 that needs to take a value 20 so I need to append 9707=20 to > all the messages I have. My current code works but this is a new > requirement I would like to introduce this change with minimal > impact. Use one of these methods: FieldMap::setField (const FieldBase& field, bool overwrite = true); FieldMap::setField (int field, const std::string value); The message classes all derive from FieldMap. Oren: any reason the second form of setField takes a "const std::string" and not a "const std::string&"? -- Caleb Epstein | bklyn . org | Military secrets are the most fleeting of all. cae at | Brooklyn Dust | -- Spock, "The Enterprise bklyn dot org | Bunny Mfg. | Incident", stardate 5027.4 |