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

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

* empty log message *

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