RE: [Quickfix-developers] checking for field before getting it?
Brought to you by:
orenmnero
|
From: Vamsi K. <Vam...@ib...> - 2003-02-28 18:22:22
|
When I include <Application.h> in my process and attach quickfix.lib to
the project.
I am getting winsock errors... Do I miss something.
Thanks in advance
/-----Original Message-----
/From: qui...@li... [mailto:quickfix-
/dev...@li...] On Behalf Of Rob Kulseth
/Sent: Friday, February 28, 2003 12:59 PM
/To: Qui...@li...
/Subject: [Quickfix-developers] checking for field before getting it?
/
/is there a way to check if a field exists in a message before trying to
/extract it. For example the following code extracts FIX info into a
data
/structure. if one of the fields I try to extract are missing, my app
will
/send a reject message. without looking at the actual fix message
string, I
/would like to see if a field is there before I try to get it. If a
/particular field is not there, I can maybe fill it in with the correct
/data. Any help would be appreciated.
/
/public void Update(Fix42.SecurityStatus inMsg){
/if(inMsg != null)
/{
/ mSymbol = inMsg.getSymbol();
/ mSecurityID = inMsg.getSecurityID();
/ mSecurityType = inMsg.getSecurityType();
/ mTradingSessionID = inMsg.getTradingSessionID();
/ mUnsolicitedUndicator = inMsg.getUnsolicitedIndicator();
/ mSecurityTradingstatus = inMsg.getSecurityTradingStatus();
/ //mTransactTime = inMsg.getTransactTime();
/ //mSecurityExchange = inMsg.getSecurityExchange();
/ //mSecurityDesc = inMsg.getSecurityDesc();
/ switch(mSecurityType.getValue())
/ {
/ case "OPT":
/ mMaturityMonthYear =
inMsg.getMaturityMonthYear();
/ mMaturityDay = inMsg.getMaturityDay();
/ mPutOrCall = inMsg.getPutOrCall();
/ mStrikePrice = inMsg.getStrikePrice();
/ break;
/ case "FUT":
/ mMaturityMonthYear =
inMsg.getMaturityMonthYear();
/ mMaturityDay = inMsg.getMaturityDay();
/ break;
/ }
/ }
/}
/
/
/-------------------------------------------------------
/This sf.net email is sponsored by:ThinkGeek
/Welcome to geek heaven.
/http://thinkgeek.com/sf
/_______________________________________________
/Quickfix-developers mailing list
/Qui...@li...
/https://lists.sourceforge.net/lists/listinfo/quickfix-developers
|