| | |
| | | |
| | | int main(int argc, char **argv) { |
| | | SAVE_APP_ARGS |
| | | |
| | | std::cout << __DATE__ << " " << __TIME__ << std::endl; |
| | | #ifdef GLOG |
| | | ENABLEGLOG(GET_STR_CONFIG("logPath").c_str()); |
| | | ENABLEGLOG(GET_STR_CONFIG("logPath").c_str()); |
| | | #endif |
| | | |
| | | #ifndef GB28181 |
| | | DBG("no GB28181"); |
| | | #else |
| | | DBG("hava GB28181"); |
| | | #endif |
| | | |
| | | appPref.setLongData("gpu.index", 0); |
| | | appPref.setIntData("show.image", 0); |
| | | |
| | | //todo |
| | | appPref.setIntData("CamStart", atoi(argv[1])); |
| | | appPref.setIntData("CamStep", atoi(argv[2])); |
| | | appPref.setIntData("RpcServerPort", atoi(argv[3])); |
| | | |
| | | //#todo get from config File |
| | | // appPref.setStringData("ipAdd", "192.168.1.185"); |
| | |
| | | |
| | | bool loopRet = true; |
| | | while (loopRet) { |
| | | switch (_dbTool.searchDevTypeFromConfigTable()) { |
| | | switch (_dbTool.searchDevTypeFromConfigTable()) { |
| | | |
| | | case 0: { |
| | | DBG("case 0"); |