DWORD DispensationImpl::start(int _AccountReceived,WORD _DealMoney,int _FareTier,int _Count,CSTTokenDispensingPolicyAttribute _Policy,TRW::WriteTokenType_t _WriteTokenType,int _PayType) { m_TicketInfoList.clear(); m_LastError = ERR::ERR_SUCCESS; //m_BusinessDay = _BusinessDay; m_AccountReceived = _AccountReceived; m_DealMoney = _DealMoney; //m_paymentMode = PM_Cash; m_CountShouldSold = _Count; m_CountSold = 0; m_ValidNum = 0; m_FareTier = _FareTier; m_PayType = _PayType; if(m_CountShouldSold == 0) return m_LastError; if((*m_pTicketBoxes)[TBT_SJT_1_ForSale].isNearlyEmpty() && (*m_pTicketBoxes)[TBT_SJT_2_ForSale].isNearlyEmpty()) m_Policy = _Policy; else if((*m_pTicketBoxes)[TBT_SJT_1_ForSale].isNearlyEmpty()) m_Policy = HopperBOnly; else if((*m_pTicketBoxes)[TBT_SJT_2_ForSale].isNearlyEmpty()) m_Policy = HopperAOnly; else m_Policy = _Policy; m_isInDispending = true;//修改2013-01-21 m_WriteTokenType = _WriteTokenType; m_pThreadPool->start(fastdelegate::MakeDelegate(this, &DispensationImpl::sell), L"DispensationImpl::sell"); return 0; }
时间: 2024-04-18 14:26:31 浏览: 54
MRF.rar_ICM_MRF minimization_lbp_mrf_mrf+lbp
这是一个C++函数的代码片段,名为`ensationImpl::start`,它接受一些参数并返回一个DWORD类型的值。函数中的代码主要是对一些成员变量进行初始化和赋值,并调用了一个名为`sell`的函数。最后,函数返回一个值。
值得注意的是,这段代码中还有一些被注释掉的代码,例如`m_BusinessDay`和`m_paymentMode`等。这些代码可能在其他地方使用或者是之前版本的遗留代码。
阅读全文