Complete publish_<msgName>_Message() in a generated stub by initializing variables, adding error handling, and including the appropriate methods to set field values.
-
For all fields in the message, initialize variables (Instrument, Quote_Date, and so on) that are to contain the data of the message.
These variables are required for the PUB_SEND_MESSAGE_CONTEXT structure.
-
Add error handling and logging where indicated in the stub comments.
-
For fields that can be null, test for NULL and either:
- Uncomment calls to pub_setNullField(), or,
- Call another pub_set<type>Field() method.
-
(Optional) For decimal fields, to use a different method, comment out pub_setDecimalField and uncomment the method you want.
-
Add other processing as needed.