main.cpp 646 B

1234567891011121314151617181920212223242526272829303132333435
  1. #include <QCoreApplication>
  2. #include "grpcclient.h"
  3. #include "ivversion.h"
  4. int main(int argc, char *argv[])
  5. {
  6. showversion("driver_cloud_grpc_client");
  7. QCoreApplication a(argc, argv);
  8. // std::thread * ptest = new std::thread(test);
  9. // return a.exec();
  10. char stryamlpath[256];
  11. if(argc<2)
  12. {
  13. snprintf(stryamlpath,255,"driver_cloud_swap_client.yaml");
  14. // strncpy(stryamlpath,abs_ymlpath,255);
  15. }
  16. else
  17. {
  18. strncpy(stryamlpath,argv[1],255);
  19. }
  20. // dec_yaml(stryamlpath);
  21. grpcclient * pgrpcclient = new grpcclient(stryamlpath);
  22. pgrpcclient->start();
  23. return a.exec();
  24. }