source: ntrip/trunk/BNS/bnsmain.cpp@ 1669

Last change on this file since 1669 was 1669, checked in by weber, 15 years ago

* empty log message *

File size: 1.5 KB
Line 
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
17#include <iostream>
18
19#include "bns.h"
20#include "bnswindow.h"
21#include "bnsutils.h"
22#include "bnsappw.h"
23#include "bnssettings.h"
24
25using namespace std;
26
27// Main Program
28/////////////////////////////////////////////////////////////////////////////
29int main(int argc, char *argv[]) {
30
31 QString confFileName;
32
33 // Command-Line Options
34 // --------------------
35 bool GUIenabled = true;
36 for (int ii = 1; ii < argc; ii++) {
37 if (QString(argv[ii]) == "-nw") {
38 GUIenabled = false;
39 break;
40 }
41 }
42
43 // Main Qt Class
44 // -------------
45//QApplication app(argc, argv, GUIenabled);
46 bnsApp app(argc, argv, GUIenabled);
47
48 app.setApplicationName("BNS");
49 app.setOrganizationName("BKG");
50 app.setOrganizationDomain("www.bkg.bund.de");
51 app.setConfFileName( confFileName );
52
53 // Interactive Mode - open the main window
54 // ---------------------------------------
55 if (GUIenabled) {
56 bnsWindow* bnsWin = new bnsWindow();
57 bnsWin->show();
58 }
59
60 // Non-Interactive (Batch) Mode
61 // ----------------------------
62 else {
63 t_bns* bns = new t_bns();
64 bns->start();
65 }
66
67 return app.exec();
68}
Note: See TracBrowser for help on using the repository browser.