BOOL OAPIConverter::Converter(VidCamera &from, oapi::OAPICamera &to) { to.strId = from.strid(); to.strName = from.strname(); to.nType = from.ntype(); to.strIP = from.strip(); to.strPort = from.strport(); to.strUser = from.struser(); to.strPasswd = from.strpasswd(); to.strONVIFAddress = from.stronvifaddress(); to.bProfileToken = from.bprofiletoken(); to.strProfileToken1 = from.strprofiletoken1(); to.strProfileToken2 = from.strprofiletoken2(); to.strFile = from.strfile(); to.strRTSPUrl = from.strrtspurl(); to.bHWaccel = from.bhwaccel(); to.bServerMotion = from.bservermotion(); to.nConnectType = from.nconnecttype(); return TRUE; }