You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
731 B
C++

#include "StdAfx.h"
#include "CreaterPciPortCheck.h"
#include "WorkCmdPciPortCheck.h"
#include "GlobalFunction.h"
#include "CStringFuc.h"
CCreaterPciPortCheck::CCreaterPciPortCheck(const CString &str)
:CCreaterWorkCmd(str)
{
}
CCreaterPciPortCheck::~CCreaterPciPortCheck(void)
{
}
void CCreaterPciPortCheck::Creat()
{
//<2F><><EFBFBD><EFBFBD>1 <20><>ʾ<EFBFBD>˿ڿ<CBBF><DABF>Ƶ<EFBFBD><C6B5><EFBFBD><EFBFBD><EFBFBD>
CString CtrlContent = GetPar(1);
//<2F><><EFBFBD><EFBFBD>2 <20><>ʾϣ<CABE><CFA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˿<EFBFBD><CBBF>ǿ<EFBFBD><C7BF><EFBFBD><EFBFBD>ǹ<EFBFBD>
bool NeedState = Str2Bool(GetPar(2));
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1>
int MaxDelay = CStringToInt(GetPar(3));
CWorkCmdPciPortCheck *pCmd = new CWorkCmdPciPortCheck(CtrlContent,NeedState);
if(MaxDelay>0)
{
pCmd->SetMaxCheckDelay(MaxDelay);
}
AddCmd(pCmd);
}