Rev | Line | |
---|
[747] | 1 | /* -------------------------------------------------------------------------
|
---|
| 2 | * BKG NTRIP Server
|
---|
| 3 | * -------------------------------------------------------------------------
|
---|
| 4 | *
|
---|
| 5 | * Class: main
|
---|
| 6 | *
|
---|
| 7 | * Purpose: Application starts here
|
---|
| 8 | *
|
---|
| 9 | * Author: L. Mervart
|
---|
| 10 | *
|
---|
| 11 | * Created: 29-Mar-2008
|
---|
| 12 | *
|
---|
| 13 | * Changes:
|
---|
| 14 | *
|
---|
| 15 | * -----------------------------------------------------------------------*/
|
---|
| 16 |
|
---|
[748] | 17 | #include <iostream>
|
---|
[747] | 18 |
|
---|
[756] | 19 | #include "bns.h"
|
---|
[748] | 20 | #include "bnswindow.h"
|
---|
| 21 |
|
---|
[747] | 22 | using namespace std;
|
---|
| 23 |
|
---|
| 24 | // Main Program
|
---|
| 25 | /////////////////////////////////////////////////////////////////////////////
|
---|
| 26 | int main(int argc, char *argv[]) {
|
---|
| 27 |
|
---|
[757] | 28 | // Command-Line Options
|
---|
| 29 | // --------------------
|
---|
[747] | 30 | bool GUIenabled = true;
|
---|
| 31 | for (int ii = 1; ii < argc; ii++) {
|
---|
| 32 | if (QString(argv[ii]) == "-nw") {
|
---|
| 33 | GUIenabled = false;
|
---|
| 34 | break;
|
---|
| 35 | }
|
---|
| 36 | }
|
---|
| 37 |
|
---|
[757] | 38 | // Main Qt Class
|
---|
| 39 | // -------------
|
---|
[756] | 40 | QApplication app(argc, argv, GUIenabled);
|
---|
[747] | 41 |
|
---|
[756] | 42 | app.setOrganizationName("BKG");
|
---|
| 43 | app.setOrganizationDomain("www.bkg.bund.de");
|
---|
| 44 | app.setApplicationName("BKG_NTRIP_Server");
|
---|
[747] | 45 |
|
---|
| 46 | // Interactive Mode - open the main window
|
---|
| 47 | // ---------------------------------------
|
---|
| 48 | if (GUIenabled) {
|
---|
[758] | 49 | bnsWindow* bnsWin = new bnsWindow();
|
---|
[748] | 50 | bnsWin->show();
|
---|
[747] | 51 | }
|
---|
| 52 |
|
---|
| 53 | // Non-Interactive (Batch) Mode
|
---|
| 54 | // ----------------------------
|
---|
| 55 | else {
|
---|
[758] | 56 | t_bns* bns = new t_bns();
|
---|
[757] | 57 | bns->start();
|
---|
[747] | 58 | }
|
---|
| 59 |
|
---|
| 60 | return app.exec();
|
---|
| 61 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.