bool CMEESUT::TradeResult(PTradeResultTxnInput pTxnInput) {/* PMEESUTThreadParam pThrParam = new TMEESUTThreadParam; memset(pThrParam, 0, sizeof(TMEESUTThreadParam)); pThrParam->pCMEESUT = this; memcpy(&(pThrParam->TxnInput.m_TradeResultTxnInput), pTxnInput, sizeof(TTradeResultTxnInput)); return (RunTradeResultAsync(reinterpret_cast<void *>(pThrParam))); */ PMEESUTThreadParam pThrParam = new TMEESUTThreadParam; memset(pThrParam, 0, sizeof(TMEESUTThreadParam)); memcpy(&(pThrParam->TxnInput.m_TradeResultTxnInput), pTxnInput, sizeof(TTradeResultTxnInput)); struct TMsgDriverBrokerage request; memset(&request, 0, sizeof(TMsgDriverBrokerage)); request.TxnType = TRADE_RESULT; memcpy(&(request.TxnInput.TradeResultTxnInput), &(pThrParam->TxnInput.m_TradeResultTxnInput), sizeof(request.TxnInput.TradeResultTxnInput)); return talkToSUT(&request); }
// Trade Cleanup bool CDMSUT::TradeCleanup(PTradeCleanupTxnInput pTxnInput) { PMsgDriverBrokerage pRequest = new TMsgDriverBrokerage; memset(pRequest, 0, sizeof(TMsgDriverBrokerage)); pRequest->TxnType = TRADE_CLEANUP; memcpy(&(pRequest->TxnInput.TradeCleanupTxnInput), pTxnInput, sizeof(TTradeCleanupTxnInput)); return talkToSUT(pRequest); }
// Data Maintenance bool CDMSUT::DataMaintenance(PDataMaintenanceTxnInput pTxnInput) { PMsgDriverBrokerage pRequest = new TMsgDriverBrokerage; memset(pRequest, 0, sizeof(TMsgDriverBrokerage)); pRequest->TxnType = DATA_MAINTENANCE; memcpy(&(pRequest->TxnInput.DataMaintenanceTxnInput), pTxnInput, sizeof(TDataMaintenanceTxnInput)); return talkToSUT(pRequest); }
// Trade Cleanup bool CDMSUT::TradeCleanup(PTradeCleanupTxnInput pTxnInput) { #ifndef NO_MEE_FOR_TRADERESULT PMsgDriverBrokerage pRequest = new TMsgDriverBrokerage; memset(pRequest, 0, sizeof(TMsgDriverBrokerage)); pRequest->TxnType = TRADE_CLEANUP; memcpy(&(pRequest->TxnInput.TradeCleanupTxnInput), pTxnInput, sizeof(TTradeCleanupTxnInput)); return talkToSUT(pRequest); #else return true; #endif }
// Data Maintenance bool CDMSUT::DataMaintenance(PDataMaintenanceTxnInput pTxnInput) { #ifndef NO_MEE_FOR_TRADERESULT PMsgDriverBrokerage pRequest = new TMsgDriverBrokerage; memset(pRequest, 0, sizeof(TMsgDriverBrokerage)); pRequest->TxnType = DATA_MAINTENANCE; memcpy(&(pRequest->TxnInput.DataMaintenanceTxnInput), pTxnInput, sizeof(TDataMaintenanceTxnInput)); return talkToSUT(pRequest); #else return true; #endif }