5 #include <visp3/core/vpConfig.h>
6 #include <visp3/core/vpException.h>
7 #include <visp3/core/vpImage.h>
10 #include <QtWidgets/QApplication>
13 #include "usNetworkServer.h"
14 #include "usServerMainWindow.h"
16 int main(
int argc,
char *argv[])
18 QApplication a(argc, argv);
21 if (a.arguments().contains(QString(
"--probeSettingsFile"))) {
22 std::cout <<
"using settings file : "
23 << a.arguments().at(a.arguments().indexOf(QString(
"--probeSettingsFile")) + 1).toStdString() << std::endl;
25 a.arguments().at(a.arguments().indexOf(QString(
"--probeSettingsFile")) + 1).toStdString());
28 if (a.arguments().contains(QString(
"--usm"))) {
29 std::cout <<
"using usm version : "
30 << a.arguments().at(a.arguments().indexOf(QString(
"--usm")) + 1).toStdString() << std::endl;
32 a.arguments().at(a.arguments().indexOf(QString(
"--usm")) + 1).toInt());
35 if (a.arguments().contains(QString(
"--pci"))) {
36 std::cout <<
"using pci version : "
37 << a.arguments().at(a.arguments().indexOf(QString(
"--pci")) + 1).toStdString() << std::endl;
39 a.arguments().at(a.arguments().indexOf(QString(
"--pci")) + 1).toInt());
44 QObject::connect(window,SIGNAL(startServer()), &server, SLOT(startServerSlot()));
45 QObject::connect(window,SIGNAL(stopServer()), &server, SLOT(stopServerSlot()));
48 window->activateWindow();
void useProbeConfigFile(std::string configFileName)
void setPCIVersion(int pciVersion)
void setUSMVersion(int usmVersion)