#include #include "grpcclient.h" #include "ivversion.h" int main(int argc, char *argv[]) { showversion("driver_cloud_grpc_client"); QCoreApplication a(argc, argv); // std::thread * ptest = new std::thread(test); // return a.exec(); char stryamlpath[256]; if(argc<2) { snprintf(stryamlpath,255,"driver_cloud_swap_client.yaml"); // strncpy(stryamlpath,abs_ymlpath,255); } else { strncpy(stryamlpath,argv[1],255); } // dec_yaml(stryamlpath); grpcclient * pgrpcclient = new grpcclient(stryamlpath); pgrpcclient->start(); return a.exec(); }