示例#1
0
bool OAPIConverter::Converter(oapi::OAPICamera &from, VidCamera &to)
{
	to.set_strid(from.strId);
	to.set_strname(from.strName);
	to.set_ntype((VidConf::CameraType)from.nType);

	to.set_strip(from.strIP);
	to.set_strport(from.strPort);
	to.set_struser(from.strUser);
	to.set_strpasswd(from.strPasswd);

	to.set_stronvifaddress(from.strONVIFAddress);
	to.set_bprofiletoken(from.bProfileToken);
	to.set_strprofiletoken1(from.strProfileToken1);
	to.set_strprofiletoken2(from.strProfileToken2);

	to.set_strfile(from.strFile);
	to.set_strrtspurl(from.strRTSPUrl);

	to.set_bhwaccel(from.bHWaccel);
	to.set_bservermotion(from.bServerMotion);

	to.set_nconnecttype((VidConf::CameraConnectType)from.nConnectType);
	
	return TRUE;
}