main.cpp 527 B

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