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.

23 lines
571 B
C++

#include "StdAfx.h"
#include "CreaterPciPortSwitch.h"
#include "WorkCmdPciPortSwitch.h"
#include "GlobalFunction.h"
#include "CStringFuc.h"
CCreaterPciPortSwitch::CCreaterPciPortSwitch(const CString &str)
:CCreaterWorkCmd(str)
{
}
CCreaterPciPortSwitch::~CCreaterPciPortSwitch(void)
{
}
void CCreaterPciPortSwitch::Creat()
{
//参数1 表示端口控制的内容
CString CtrlContent = GetPar(1);
//参数2 表示打开还是关闭
bool bOpen = Str2Bool(GetPar(2));
CWorkCmd *pCmd = NULL;
pCmd = new CWorkCmdPciPortSwitch(CtrlContent,bOpen);
AddCmd(pCmd);
}