コード例 #1
0
ファイル: MEESUT.cpp プロジェクト: EvilMcJerkface/quro
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);

}
コード例 #2
0
ファイル: DMSUT.cpp プロジェクト: gauthier-voron/DBT-5
// 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);
}
コード例 #3
0
ファイル: DMSUT.cpp プロジェクト: gauthier-voron/DBT-5
// 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);
}
コード例 #4
0
ファイル: DMSUT.cpp プロジェクト: EvilMcJerkface/quro
// 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
}
コード例 #5
0
ファイル: DMSUT.cpp プロジェクト: EvilMcJerkface/quro
// 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
}