#ifndef QUOTE_H
#define QUOTE_H
#include "TapQuoteAPI.h"
#include "../Common/SimpleEvent.h"
class Quote : public ITapQuoteAPINotify
{
public:
Quote(void);
~Quote(void);
void SetAPI(ITapQuoteAPI* pAPI);
void RunTest();
public:
//對ITapQuoteAPINotify的實作
virtual void TAP_CDECL OnRspLogin(TAPIINT32 errorCode, const TapAPIQuotLoginRspInfo *info);
virtual void TAP_CDECL OnAPIReady();
virtual void TAP_CDECL OnDisconnect(TAPIINT32 reasonCode);
virtual void TAP_CDECL OnRspChangePassword(TAPIUINT32 sessionID, TAPIINT32 errorCode);
virtual void TAP_CDECL OnRspQryExchange(TAPIUINT32 sessionID, TAPIINT32 errorCode, TAPIYNFLAG isLast, const TapAPIExchangeInfo *info);
virtual void TAP_CDECL OnRspQryCommodity(TAPIUINT32 sessionID, TAPIINT32 errorCode, TAPIYNFLAG isLast, const TapAPIQuoteCommodityInfo *info);
virtual void TAP_CDECL OnRspQryContract(TAPIUINT32 sessionID, TAPIINT32 errorCode, TAPIYNFLAG isLast, const TapAPIQuoteContractInfo *info);
virtual void TAP_CDECL OnRtnContract(const TapAPIQuoteContractInfo *info);
virtual void TAP_CDECL OnRspSubscribeQuote(TAPIUINT32 sessionID, TAPIINT32 errorCode, TAPIYNFLAG isLast, const TapAPIQuoteWhole *info);
virtual void TAP_CDECL OnRspUnSubscribeQuote(TAPIUINT32 sessionID, TAPIINT32 errorCode, TAPIYNFLAG isLast, const TapAPIContract *info);
virtual void TAP_CDECL OnRtnQuote(const TapAPIQuoteWhole *info);
private:
ITapQuoteAPI* m_pAPI;
TAPIUINT32 m_uiSessionID;
SimpleEvent m_Event;
bool m_bIsAPIReady;
};
#endif // QUOTE_H
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/241509.html
標籤:語言基礎/算法/系統設計
下一篇:求推薦java專案練手
