main.cpp 469 B

123456789101112131415161718192021
  1. #include <QCoreApplication>
  2. #include "ivdriver_gps_hcp2.h"
  3. int main(int argc, char *argv[])
  4. {
  5. QCoreApplication a(argc, argv);
  6. QString strpath = QCoreApplication::applicationDirPath();
  7. if(argc < 2)
  8. strpath = strpath + "/hcp2.xml";
  9. else
  10. strpath = argv[1];
  11. std::cout<<strpath.toStdString()<<std::endl;
  12. iv::ivmodule * pivmodule = new iv::ivdriver_gps_hcp2(strpath.toStdString());
  13. pivmodule->start();
  14. return a.exec();
  15. }