#include #include "rdbconn.h" #include #include "xmlparam.h" #include "rdbmodulecomm.h" #define DEFAULT_PORT 48190 /* for image port it should be 48192 */ #define IMAGE_PORT 48192 // TS 2020.12.28 int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); std::string strparapath; if(argc<2) { strparapath = "./vtd_rdb.xml"; } else { strparapath = argv[1]; } iv::xmlparam::Xmlparam xp(strparapath); std::string strcommonmsgname = xp.GetParam("commonmsgname","rdbcommon"); std::string strpicturemsgname = xp.GetParam("picturemsgname","rdbpicture"); std::string strvtdip = xp.GetParam("vtdip","10.14.0.234"); int ncommonport = xp.GetParam("defaultport",DEFAULT_PORT); int npictureport = xp.GetParam("pictureport",IMAGE_PORT); rdbmodulecomm * prm = new rdbmodulecomm(strcommonmsgname,strpicturemsgname,strvtdip,ncommonport,strvtdip,npictureport); (void)prm; return a.exec(); }