派生自 development/c++

xuxiuxi
2019-03-04 93fcc2eb2db5038ca1944acde9f4c8b751aca930
QiaoJiaSystem/VideoToImageMulth/main.cpp
@@ -24,20 +24,26 @@
}
int main(int argc, char **argv) {
    std::cout<<__DATE__<<" "<<__TIME__<<std::endl;
    std::cout << __DATE__ << " " << __TIME__ << std::endl;
    SAVE_APP_ARGS
#ifdef GLOG
        ENABLEGLOG(GET_STR_CONFIG("logPath").c_str());
    ENABLEGLOG(GET_STR_CONFIG("logPath").c_str());
#endif
    appPref.setLongData("gpu.index", 1);
    int gindx = atoi(argv[1]) % 2;
    DBG(gindx);
    appPref.setLongData("gpu.index", gindx);
    appPref.setIntData("show.image", 0);
    //todo
    appPref.setIntData("CamStart", atoi(argv[1]));
    appPref.setIntData("CamStep", atoi(argv[2]));
    appPref.setIntData("RpcServerPort", atoi(argv[3]));
    appPref.setStringData("user.loop.absolute.path", appConfig.getStringProperty("cutPath"));
    IceRpcServer<RtspAnalysManager> server("RtspAnalysServer", 10009, "tcp");
    IceRpcServer<RtspAnalysManager> server("RtspAnalysServer", appPref.getIntData("RpcServerPort"), "tcp");
    server.setMessageSizeMax(1024 * 1024 * 50);
    server.setPoolInitSize(1);
    server.setPoolMaxSize(1);