123456789101112131415161718192021 |
- #include <QCoreApplication>
- #include <iostream>
- #include "ivdriver_gps_hcp2.h"
- int main(int argc, char *argv[])
- {
- QCoreApplication a(argc, argv);
- QString strpath = QCoreApplication::applicationDirPath();
- if(argc < 2)
- strpath = strpath + "/hcp2.xml";
- else
- strpath = argv[1];
- std::cout<<strpath.toStdString()<<std::endl;
- iv::ivmodule * pivmodule = new iv::ivdriver_gps_hcp2(strpath.toStdString());
- pivmodule->start();
- return a.exec();
- }
|