├── src
└── trunk
│ ├── BNS
│ ├── bns.rc
│ ├── bnshelp.html
│ ├── bnsflowchart.png
│ ├── ntrip-logo.ico
│ ├── ntrip-logo.png
│ ├── bnsversion.h
│ ├── bns.qrc
│ ├── bnssettings.h
│ ├── timeutils.h
│ ├── bnshtml.h
│ ├── bnsapp.h
│ ├── bnshlpdlg.h
│ ├── bnsrinex.h
│ ├── bnssp3.h
│ ├── bnscaster.h
│ ├── bnsabout.html
│ ├── bnctime.h
│ ├── bnsoutf.h
│ ├── bnscustomtrafo.h
│ ├── tst_glo.cpp
│ ├── bnsutils.h
│ ├── bnshtml.cpp
│ ├── newmat
│ │ ├── newmatio.h
│ │ └── controlw.h
│ ├── bnsapp.cpp
│ └── tst_glo.pro
│ ├── BNC
│ ├── src
│ │ ├── bnc.rc
│ │ ├── map
│ │ │ ├── reddot.png
│ │ │ ├── crosshair.png
│ │ │ └── yellowdot.png
│ │ ├── ntrip-logo.ico
│ │ ├── ntrip-logo.png
│ │ ├── bncflowchart.png
│ │ ├── IMG
│ │ │ ├── BKG_Logo_oS.jpg
│ │ │ ├── screenshot01.png
│ │ │ ├── screenshot02.png
│ │ │ ├── screenshot03.png
│ │ │ ├── screenshot04.png
│ │ │ ├── screenshot05.png
│ │ │ ├── screenshot06.png
│ │ │ ├── screenshot07.png
│ │ │ ├── screenshot08.png
│ │ │ ├── screenshot09.png
│ │ │ ├── screenshot10.png
│ │ │ ├── screenshot11.png
│ │ │ ├── screenshot12.png
│ │ │ ├── screenshot13.png
│ │ │ ├── screenshot14.png
│ │ │ ├── screenshot15.png
│ │ │ ├── screenshot16.png
│ │ │ ├── screenshot17.png
│ │ │ ├── screenshot18.png
│ │ │ ├── screenshot19.png
│ │ │ ├── screenshot20.png
│ │ │ ├── screenshot21.png
│ │ │ ├── screenshot22.png
│ │ │ ├── screenshot23.png
│ │ │ ├── screenshot24.png
│ │ │ ├── screenshot25.png
│ │ │ ├── screenshot26.png
│ │ │ ├── screenshot27.png
│ │ │ ├── screenshot28.png
│ │ │ ├── screenshot29.png
│ │ │ ├── screenshot30.png
│ │ │ ├── screenshot31.png
│ │ │ ├── screenshot32.png
│ │ │ ├── screenshot33.png
│ │ │ ├── screenshot34.png
│ │ │ ├── screenshot35.png
│ │ │ ├── screenshot36.png
│ │ │ ├── screenshot37.png
│ │ │ ├── screenshot38.png
│ │ │ ├── screenshot39.png
│ │ │ ├── screenshot40.png
│ │ │ ├── screenshot41.png
│ │ │ └── screenshot42.png
│ │ ├── Doxyfile
│ │ ├── src.pro
│ │ ├── src_plugin.pro
│ │ ├── bncsslconfig.h
│ │ ├── run_valgrind
│ │ ├── rinex
│ │ │ ├── dopplot.h
│ │ │ ├── availplot.h
│ │ │ ├── eleplot.h
│ │ │ └── corrfile.h
│ │ ├── bncversion.h
│ │ ├── test_serial.cpp
│ │ ├── app.h
│ │ ├── RTCM3
│ │ │ └── ephEncoder.h
│ │ ├── upload
│ │ │ ├── bncephuploadcaster.h
│ │ │ ├── bnccustomtrafo.h
│ │ │ ├── bncuploadcaster.h
│ │ │ └── bncrtnetdecoder.h
│ │ ├── PPP_SSR_I
│ │ │ ├── pppUtils.h
│ │ │ └── pppUtils.cpp
│ │ ├── pppMain.h
│ │ ├── bncnetqueryv0.h
│ │ ├── bncsettings.h
│ │ ├── bncnetquerys.h
│ │ ├── pppCrdFile.h
│ │ ├── bncclockrinex.h
│ │ ├── pppThread.h
│ │ ├── bncnetqueryudp0.h
│ │ ├── RTCM
│ │ │ └── rtcm_utils.h
│ │ ├── ppp.gpt
│ │ ├── bncnetqueryv1.h
│ │ ├── serial
│ │ │ ├── qextserialport.h
│ │ │ ├── win_qextserialport.h
│ │ │ └── posix_qextserialport.h
│ │ ├── test_tcpip_client.pl
│ │ ├── tstClock.pl
│ │ ├── bncnetqueryrtp.h
│ │ ├── bncnetqueryudp.h
│ │ ├── bncsinextro.h
│ │ ├── qtfilechooser.h
│ │ ├── bncoutf.h
│ │ ├── bncnetquery.h
│ │ ├── bncnetqueryv2.h
│ │ ├── gen_rtk_neu.pl
│ │ ├── bncabout.html
│ │ ├── bnchtml.h
│ │ ├── bncbytescounter.h
│ │ ├── app.cpp
│ │ ├── bnczerodecoder.h
│ │ ├── bnchlpdlg.h
│ │ ├── bncsp3.h
│ │ ├── bnctableitem.h
│ │ ├── bncfigurelate.h
│ │ └── bncrawfile.h
│ ├── Example_Configs
│ │ ├── 27_CompareSp3.sh
│ │ ├── 24_RinexEph.sh
│ │ ├── 25_ScanLate.sh
│ │ ├── 22_RinexQC.sh
│ │ ├── Input
│ │ │ └── APRIORI_ETRF.CRD
│ │ ├── 23_RinexConcat.sh
│ │ └── 26_RinexObs.sh
│ ├── bnc_plugin.pro
│ ├── bnc.pro
│ ├── qwt
│ │ ├── qwt.pro
│ │ ├── qwt.h
│ │ ├── qwt_point_3d.cpp
│ │ ├── qwt_abstract_legend.cpp
│ │ ├── qwt_clipper.h
│ │ ├── qwt_compat.h
│ │ ├── qwt_global.h
│ │ ├── qwt_plot_xml.cpp
│ │ ├── qwt_sampling_thread.h
│ │ ├── qwt_pixel_matrix.cpp
│ │ ├── qwt_system_clock.h
│ │ ├── qwt_plot_magnifier.h
│ │ ├── qwt_arrow_button.h
│ │ ├── qwt_plot_panner.h
│ │ ├── qwt_plot_svgitem.h
│ │ ├── qwt_plot_dict.h
│ │ └── qwt_math.cpp
│ ├── newmat
│ │ ├── newmat.pro
│ │ ├── newmatio.h
│ │ └── controlw.h
│ └── qwtpolar
│ │ ├── qwt_polar_fitter.h
│ │ ├── qwt_polar_global.h
│ │ ├── qwtpolar.pro
│ │ ├── qwt_polar_panner.h
│ │ ├── qwt_polar_itemdict.h
│ │ ├── qwt_polar_magnifier.h
│ │ └── qwt_polar.h
│ ├── GnssCenter
│ ├── thrift
│ │ ├── rtnet_sdo_example
│ │ │ ├── common
│ │ │ │ └── CMakeLists.txt
│ │ │ ├── RtnetDataRequest.h
│ │ │ ├── thrift_template
│ │ │ │ ├── rtnet.thrift
│ │ │ │ └── rtnet_js.thrift
│ │ │ ├── RtnetDataListener.h
│ │ │ ├── ConnectionRequiredRunnable.h
│ │ │ ├── Client.h
│ │ │ ├── RtnetDataRequest.cpp
│ │ │ ├── CMakeLists.txt
│ │ │ ├── RtnetDataHandler.h
│ │ │ ├── ConnectionRequiredRunnable.cpp
│ │ │ ├── ConnectionStatusMonitor.h
│ │ │ ├── Client.cpp
│ │ │ └── RtnetDataListener.cpp
│ │ ├── test1
│ │ │ ├── myservice.thrift
│ │ │ ├── Makefile
│ │ │ ├── blabla
│ │ │ ├── client.cpp
│ │ │ └── server.cpp
│ │ ├── test2
│ │ │ ├── myservice.thrift
│ │ │ ├── Makefile
│ │ │ └── client.cpp
│ │ └── bidi_java
│ │ │ ├── BidiMessages.thrift
│ │ │ ├── client
│ │ │ ├── MessageListener.java
│ │ │ ├── ConnectionStatusListener.java
│ │ │ ├── MessageReceiver.java
│ │ │ └── MessageSender.java
│ │ │ └── server
│ │ │ ├── MessageServiceClient.java
│ │ │ └── Server.java
│ ├── monitor
│ │ ├── monitor.qrc
│ │ ├── const.cpp
│ │ ├── const.h
│ │ ├── utils.h
│ │ ├── dlgconf.h
│ │ ├── worldplot.h
│ │ ├── monitor.pro
│ │ └── monitor.h
│ ├── GnssCenter.pro
│ ├── main
│ │ ├── mdiarea.h
│ │ ├── main.pro
│ │ ├── plugininterface.h
│ │ ├── app.h
│ │ ├── settings.h
│ │ ├── mdiarea.cpp
│ │ ├── main.cpp
│ │ ├── mainwin.h
│ │ └── app.cpp
│ ├── inpedit
│ │ ├── lineedit.h
│ │ ├── uniline.h
│ │ ├── tabwidget.h
│ │ ├── inpedit.pro
│ │ ├── keyword.h
│ │ ├── inpedit.h
│ │ ├── selwin.h
│ │ ├── panel.h
│ │ └── lineedit.cpp
│ └── qwt
│ │ ├── qwt.h
│ │ ├── qwt_point_3d.cpp
│ │ ├── qwt_clipper.h
│ │ ├── qwt_compat.h
│ │ ├── qwt_math.cpp
│ │ ├── qwt_plot_xml.cpp
│ │ ├── qwt_sampling_thread.h
│ │ ├── qwt_global.h
│ │ ├── qwt_system_clock.h
│ │ ├── qwt_plot_magnifier.h
│ │ ├── qwt_plot_dict.h
│ │ ├── qwt_plot_panner.h
│ │ ├── qwt_legend_itemmanager.h
│ │ └── qwt_plot_svgitem.h
│ ├── ntripserver
│ ├── startntripserver.sh
│ └── makefile
│ ├── rtcm3torinex
│ └── makefile
│ ├── ntripclient
│ ├── makefile
│ └── startntripclient.sh
│ └── clock_and_orbit
│ ├── makefile
│ └── ssr1_cogps_old_data
│ └── CLCK4_080423.txt
├── .gitignore
└── README.md
/src/trunk/BNS/bns.rc:
--------------------------------------------------------------------------------
1 | IDI_ICON1 ICON DISCARDABLE "ntrip-logo.ico"
2 |
--------------------------------------------------------------------------------
/src/trunk/BNC/src/bnc.rc:
--------------------------------------------------------------------------------
1 | IDI_ICON1 ICON DISCARDABLE "ntrip-logo.ico"
2 |
--------------------------------------------------------------------------------
/src/trunk/GnssCenter/thrift/rtnet_sdo_example/common/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | ADD_SUBDIRECTORY(thrift)
2 |
--------------------------------------------------------------------------------
/src/trunk/BNS/bnshelp.html:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/goblimey/c-ntripserver/HEAD/src/trunk/BNS/bnshelp.html
--------------------------------------------------------------------------------
/src/trunk/BNS/bnsflowchart.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/goblimey/c-ntripserver/HEAD/src/trunk/BNS/bnsflowchart.png
--------------------------------------------------------------------------------
/src/trunk/BNS/ntrip-logo.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/goblimey/c-ntripserver/HEAD/src/trunk/BNS/ntrip-logo.ico
--------------------------------------------------------------------------------
/src/trunk/BNS/ntrip-logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/goblimey/c-ntripserver/HEAD/src/trunk/BNS/ntrip-logo.png
--------------------------------------------------------------------------------
/src/trunk/BNC/src/map/reddot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/goblimey/c-ntripserver/HEAD/src/trunk/BNC/src/map/reddot.png
--------------------------------------------------------------------------------
/src/trunk/BNC/src/ntrip-logo.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/goblimey/c-ntripserver/HEAD/src/trunk/BNC/src/ntrip-logo.ico
--------------------------------------------------------------------------------
/src/trunk/BNC/src/ntrip-logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/goblimey/c-ntripserver/HEAD/src/trunk/BNC/src/ntrip-logo.png
--------------------------------------------------------------------------------
/src/trunk/BNC/src/bncflowchart.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/goblimey/c-ntripserver/HEAD/src/trunk/BNC/src/bncflowchart.png
--------------------------------------------------------------------------------
/src/trunk/BNC/src/map/crosshair.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/goblimey/c-ntripserver/HEAD/src/trunk/BNC/src/map/crosshair.png
--------------------------------------------------------------------------------
/src/trunk/BNC/src/map/yellowdot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/goblimey/c-ntripserver/HEAD/src/trunk/BNC/src/map/yellowdot.png
--------------------------------------------------------------------------------
/src/trunk/GnssCenter/thrift/test1/myservice.thrift:
--------------------------------------------------------------------------------
1 |
2 | service myService {
3 | string answer(1:string question)
4 | }
5 |
--------------------------------------------------------------------------------
/src/trunk/BNC/src/IMG/BKG_Logo_oS.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/goblimey/c-ntripserver/HEAD/src/trunk/BNC/src/IMG/BKG_Logo_oS.jpg
--------------------------------------------------------------------------------
/src/trunk/GnssCenter/thrift/test2/myservice.thrift:
--------------------------------------------------------------------------------
1 |
2 | service myService {
3 | oneway void answer(1:string question)
4 | }
5 |
--------------------------------------------------------------------------------
/src/trunk/BNC/Example_Configs/27_CompareSp3.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ../bnc -nw -conf 20_CompareSp3.bnc -key sp3CompExclude G06,R
4 |
5 |
--------------------------------------------------------------------------------
/src/trunk/BNC/src/IMG/screenshot01.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/goblimey/c-ntripserver/HEAD/src/trunk/BNC/src/IMG/screenshot01.png
--------------------------------------------------------------------------------
/src/trunk/BNC/src/IMG/screenshot02.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/goblimey/c-ntripserver/HEAD/src/trunk/BNC/src/IMG/screenshot02.png
--------------------------------------------------------------------------------
/src/trunk/BNC/src/IMG/screenshot03.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/goblimey/c-ntripserver/HEAD/src/trunk/BNC/src/IMG/screenshot03.png
--------------------------------------------------------------------------------
/src/trunk/BNC/src/IMG/screenshot04.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/goblimey/c-ntripserver/HEAD/src/trunk/BNC/src/IMG/screenshot04.png
--------------------------------------------------------------------------------
/src/trunk/BNC/src/IMG/screenshot05.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/goblimey/c-ntripserver/HEAD/src/trunk/BNC/src/IMG/screenshot05.png
--------------------------------------------------------------------------------
/src/trunk/BNC/src/IMG/screenshot06.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/goblimey/c-ntripserver/HEAD/src/trunk/BNC/src/IMG/screenshot06.png
--------------------------------------------------------------------------------
/src/trunk/BNC/src/IMG/screenshot07.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/goblimey/c-ntripserver/HEAD/src/trunk/BNC/src/IMG/screenshot07.png
--------------------------------------------------------------------------------
/src/trunk/BNC/src/IMG/screenshot08.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/goblimey/c-ntripserver/HEAD/src/trunk/BNC/src/IMG/screenshot08.png
--------------------------------------------------------------------------------
/src/trunk/BNC/src/IMG/screenshot09.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/goblimey/c-ntripserver/HEAD/src/trunk/BNC/src/IMG/screenshot09.png
--------------------------------------------------------------------------------
/src/trunk/BNC/src/IMG/screenshot10.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/goblimey/c-ntripserver/HEAD/src/trunk/BNC/src/IMG/screenshot10.png
--------------------------------------------------------------------------------
/src/trunk/BNC/src/IMG/screenshot11.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/goblimey/c-ntripserver/HEAD/src/trunk/BNC/src/IMG/screenshot11.png
--------------------------------------------------------------------------------
/src/trunk/BNC/src/IMG/screenshot12.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/goblimey/c-ntripserver/HEAD/src/trunk/BNC/src/IMG/screenshot12.png
--------------------------------------------------------------------------------
/src/trunk/BNC/src/IMG/screenshot13.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/goblimey/c-ntripserver/HEAD/src/trunk/BNC/src/IMG/screenshot13.png
--------------------------------------------------------------------------------
/src/trunk/BNC/src/IMG/screenshot14.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/goblimey/c-ntripserver/HEAD/src/trunk/BNC/src/IMG/screenshot14.png
--------------------------------------------------------------------------------
/src/trunk/BNC/src/IMG/screenshot15.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/goblimey/c-ntripserver/HEAD/src/trunk/BNC/src/IMG/screenshot15.png
--------------------------------------------------------------------------------
/src/trunk/BNC/src/IMG/screenshot16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/goblimey/c-ntripserver/HEAD/src/trunk/BNC/src/IMG/screenshot16.png
--------------------------------------------------------------------------------
/src/trunk/BNC/src/IMG/screenshot17.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/goblimey/c-ntripserver/HEAD/src/trunk/BNC/src/IMG/screenshot17.png
--------------------------------------------------------------------------------
/src/trunk/BNC/src/IMG/screenshot18.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/goblimey/c-ntripserver/HEAD/src/trunk/BNC/src/IMG/screenshot18.png
--------------------------------------------------------------------------------
/src/trunk/BNC/src/IMG/screenshot19.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/goblimey/c-ntripserver/HEAD/src/trunk/BNC/src/IMG/screenshot19.png
--------------------------------------------------------------------------------
/src/trunk/BNC/src/IMG/screenshot20.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/goblimey/c-ntripserver/HEAD/src/trunk/BNC/src/IMG/screenshot20.png
--------------------------------------------------------------------------------
/src/trunk/BNC/src/IMG/screenshot21.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/goblimey/c-ntripserver/HEAD/src/trunk/BNC/src/IMG/screenshot21.png
--------------------------------------------------------------------------------
/src/trunk/BNC/src/IMG/screenshot22.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/goblimey/c-ntripserver/HEAD/src/trunk/BNC/src/IMG/screenshot22.png
--------------------------------------------------------------------------------
/src/trunk/BNC/src/IMG/screenshot23.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/goblimey/c-ntripserver/HEAD/src/trunk/BNC/src/IMG/screenshot23.png
--------------------------------------------------------------------------------
/src/trunk/BNC/src/IMG/screenshot24.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/goblimey/c-ntripserver/HEAD/src/trunk/BNC/src/IMG/screenshot24.png
--------------------------------------------------------------------------------
/src/trunk/BNC/src/IMG/screenshot25.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/goblimey/c-ntripserver/HEAD/src/trunk/BNC/src/IMG/screenshot25.png
--------------------------------------------------------------------------------
/src/trunk/BNC/src/IMG/screenshot26.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/goblimey/c-ntripserver/HEAD/src/trunk/BNC/src/IMG/screenshot26.png
--------------------------------------------------------------------------------
/src/trunk/BNC/src/IMG/screenshot27.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/goblimey/c-ntripserver/HEAD/src/trunk/BNC/src/IMG/screenshot27.png
--------------------------------------------------------------------------------
/src/trunk/BNC/src/IMG/screenshot28.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/goblimey/c-ntripserver/HEAD/src/trunk/BNC/src/IMG/screenshot28.png
--------------------------------------------------------------------------------
/src/trunk/BNC/src/IMG/screenshot29.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/goblimey/c-ntripserver/HEAD/src/trunk/BNC/src/IMG/screenshot29.png
--------------------------------------------------------------------------------
/src/trunk/BNC/src/IMG/screenshot30.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/goblimey/c-ntripserver/HEAD/src/trunk/BNC/src/IMG/screenshot30.png
--------------------------------------------------------------------------------
/src/trunk/BNC/src/IMG/screenshot31.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/goblimey/c-ntripserver/HEAD/src/trunk/BNC/src/IMG/screenshot31.png
--------------------------------------------------------------------------------
/src/trunk/BNC/src/IMG/screenshot32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/goblimey/c-ntripserver/HEAD/src/trunk/BNC/src/IMG/screenshot32.png
--------------------------------------------------------------------------------
/src/trunk/BNC/src/IMG/screenshot33.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/goblimey/c-ntripserver/HEAD/src/trunk/BNC/src/IMG/screenshot33.png
--------------------------------------------------------------------------------
/src/trunk/BNC/src/IMG/screenshot34.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/goblimey/c-ntripserver/HEAD/src/trunk/BNC/src/IMG/screenshot34.png
--------------------------------------------------------------------------------
/src/trunk/BNC/src/IMG/screenshot35.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/goblimey/c-ntripserver/HEAD/src/trunk/BNC/src/IMG/screenshot35.png
--------------------------------------------------------------------------------
/src/trunk/BNC/src/IMG/screenshot36.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/goblimey/c-ntripserver/HEAD/src/trunk/BNC/src/IMG/screenshot36.png
--------------------------------------------------------------------------------
/src/trunk/BNC/src/IMG/screenshot37.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/goblimey/c-ntripserver/HEAD/src/trunk/BNC/src/IMG/screenshot37.png
--------------------------------------------------------------------------------
/src/trunk/BNC/src/IMG/screenshot38.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/goblimey/c-ntripserver/HEAD/src/trunk/BNC/src/IMG/screenshot38.png
--------------------------------------------------------------------------------
/src/trunk/BNC/src/IMG/screenshot39.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/goblimey/c-ntripserver/HEAD/src/trunk/BNC/src/IMG/screenshot39.png
--------------------------------------------------------------------------------
/src/trunk/BNC/src/IMG/screenshot40.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/goblimey/c-ntripserver/HEAD/src/trunk/BNC/src/IMG/screenshot40.png
--------------------------------------------------------------------------------
/src/trunk/BNC/src/IMG/screenshot41.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/goblimey/c-ntripserver/HEAD/src/trunk/BNC/src/IMG/screenshot41.png
--------------------------------------------------------------------------------
/src/trunk/BNC/src/IMG/screenshot42.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/goblimey/c-ntripserver/HEAD/src/trunk/BNC/src/IMG/screenshot42.png
--------------------------------------------------------------------------------
/src/trunk/GnssCenter/monitor/monitor.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | world.svg
4 |
5 |
6 |
--------------------------------------------------------------------------------
/src/trunk/BNC/src/Doxyfile:
--------------------------------------------------------------------------------
1 | EXTRACT_PRIVATE = YES
2 | RECURSIVE = YES
3 | GENERATE_LATEX = NO
4 |
5 | # silence majority of warnings
6 | WARN_IF_UNDOCUMENTED = NO
7 |
--------------------------------------------------------------------------------
/src/trunk/BNS/bnsversion.h:
--------------------------------------------------------------------------------
1 |
2 | #ifndef BNSVERSION_H
3 | #define BNSVERSION_H
4 |
5 | #define BNSVERSION "1.3"
6 | #define BNSPGMNAME "BNS 1.3"
7 |
8 | #endif
9 |
--------------------------------------------------------------------------------
/src/trunk/GnssCenter/GnssCenter.pro:
--------------------------------------------------------------------------------
1 |
2 | TEMPLATE = subdirs
3 |
4 | CONFIG += ordered
5 |
6 | SUBDIRS = qwt \
7 | inpedit \
8 | monitor \
9 | main
10 |
--------------------------------------------------------------------------------
/src/trunk/GnssCenter/monitor/const.cpp:
--------------------------------------------------------------------------------
1 | #include "const.h"
2 |
3 | using namespace GnssCenter;
4 |
5 | const double t_CST::aell = 6378137.000;
6 | const double t_CST::fInv = 298.2572236;
7 |
--------------------------------------------------------------------------------
/src/trunk/BNC/bnc_plugin.pro:
--------------------------------------------------------------------------------
1 |
2 | TEMPLATE = subdirs
3 |
4 | CONFIG += ordered
5 |
6 | SUBDIRS = newmat \
7 | qwt \
8 | qwtpolar \
9 | src/src_plugin.pro
10 |
--------------------------------------------------------------------------------
/src/trunk/BNC/src/src.pro:
--------------------------------------------------------------------------------
1 |
2 | TARGET = ../bnc
3 |
4 | CONFIG -= debug
5 | CONFIG += release
6 |
7 | include(src.pri)
8 |
9 | HEADERS += app.h
10 |
11 | SOURCES += bncmain.cpp app.cpp
12 |
--------------------------------------------------------------------------------
/src/trunk/BNS/bns.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | ntrip-logo.png
4 | bnsflowchart.png
5 | bnshelp.html
6 | bnsabout.html
7 |
8 |
9 |
--------------------------------------------------------------------------------
/src/trunk/BNC/bnc.pro:
--------------------------------------------------------------------------------
1 | greaterThan(QT_MAJOR_VERSION, 4): QT += printer widgets
2 | QT += svg
3 |
4 | TEMPLATE = subdirs
5 |
6 | CONFIG += c++11
7 | CONFIG += ordered
8 |
9 | SUBDIRS = newmat \
10 | qwt \
11 | qwtpolar \
12 | src
13 |
--------------------------------------------------------------------------------
/src/trunk/BNC/qwt/qwt.pro:
--------------------------------------------------------------------------------
1 |
2 |
3 | TEMPLATE = lib
4 | TARGET = qwt
5 | CONFIG += staticlib
6 |
7 | CONFIG -= debug
8 | CONFIG += release
9 | QWT_CONFIG = QwtPlot QwtWidgets QwtSvg
10 |
11 | OBJECTS_DIR = .obj
12 | MOC_DIR = .moc
13 |
14 | include ( src.pri )
15 |
--------------------------------------------------------------------------------
/src/trunk/BNS/bnssettings.h:
--------------------------------------------------------------------------------
1 |
2 | #ifndef BNSSETTINGS_H
3 | #define BNSSETTINGS_H
4 |
5 | #include
6 |
7 | class bnsSettings : public QSettings {
8 | public:
9 | bnsSettings();
10 | virtual ~bnsSettings() {};
11 | private:
12 | };
13 | #endif
14 |
15 |
--------------------------------------------------------------------------------
/src/trunk/BNC/src/src_plugin.pro:
--------------------------------------------------------------------------------
1 |
2 | TEMPLATE = lib
3 | CONFIG += plugin debug
4 | TARGET = $$qtLibraryTarget(gnsscenter_bnc)
5 | DESTDIR = ../../GnssCenter/plugins
6 | DEFINES += GNSSCENTER_PLUGIN
7 | INCLUDEPATH += ../../GnssCenter/main
8 |
9 | include(src.pri)
10 |
--------------------------------------------------------------------------------
/src/trunk/ntripserver/startntripserver.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | # $Id: startntripserver.sh,v 1.1 2007/08/30 07:45:59 stoecker Exp $
3 | # Purpose: Start ntripserver
4 |
5 | while true; do ./ntripserver -M 1 -i /dev/ttys0 -b 9600 -O 2 -a www.euref-ip.net -p 2101 -m Mount2 -n serverID -c serverPass; sleep 60; done
6 |
--------------------------------------------------------------------------------
/src/trunk/BNS/timeutils.h:
--------------------------------------------------------------------------------
1 | #ifndef TIMEUTILS_H
2 | #define TIMEUTILS_H
3 |
4 | double djul(long j1, long m1, double tt);
5 | double gpjd(double second, int nweek) ;
6 | void jdgp(double tjul, double & second, long & nweek);
7 | void jmt (double djul, long& jj, long& mm, double& dd);
8 |
9 | #endif
10 |
--------------------------------------------------------------------------------
/src/trunk/BNS/bnshtml.h:
--------------------------------------------------------------------------------
1 |
2 | #ifndef BNSHTML_H
3 | #define BNSHTML_H
4 |
5 | #include
6 |
7 | class bnsHtml : public QTextBrowser {
8 | Q_OBJECT
9 |
10 | public:
11 | bnsHtml();
12 | ~bnsHtml();
13 |
14 | public slots:
15 | void slotAnchorClicked(const QUrl& url);
16 | };
17 | #endif
18 |
--------------------------------------------------------------------------------
/src/trunk/GnssCenter/thrift/bidi_java/BidiMessages.thrift:
--------------------------------------------------------------------------------
1 | #!/usr/local/bin/thrift --gen java:beans:hashcode -O ../
2 |
3 | namespace java com.joelpm.bidiMessages.generated
4 |
5 | struct Message {
6 | 1: string clientName,
7 | 2: string message
8 | }
9 |
10 | service MessageService {
11 | oneway void sendMessage(Message msg),
12 | }
13 |
--------------------------------------------------------------------------------
/src/trunk/GnssCenter/main/mdiarea.h:
--------------------------------------------------------------------------------
1 | #ifndef GnssCenter_MDIAREA_H
2 | #define GnssCenter_MDIAREA_H
3 |
4 | #include
5 |
6 | namespace GnssCenter {
7 |
8 | class t_mdiArea : public QMdiArea {
9 | Q_OBJECT
10 | public:
11 | t_mdiArea(QWidget* parent);
12 | virtual ~t_mdiArea();
13 | };
14 |
15 | } // namespace GnssCenter
16 |
17 | #endif
18 |
--------------------------------------------------------------------------------
/src/trunk/BNC/src/bncsslconfig.h:
--------------------------------------------------------------------------------
1 | #ifndef BNCSSLCONFIG_H
2 | #define BNCSSLCONFIG_H
3 |
4 | #include
5 |
6 | // Singleton Class
7 | // ---------------
8 | class bncSslConfig : public QSslConfiguration {
9 | public:
10 | bncSslConfig();
11 | ~bncSslConfig();
12 | static QString defaultPath();
13 | private:
14 | };
15 |
16 | #endif
17 |
--------------------------------------------------------------------------------
/src/trunk/BNC/src/run_valgrind:
--------------------------------------------------------------------------------
1 | #/bin/bash
2 | if [ "$1" == "start" ]
3 | then
4 | valgrind --num-callers=50 --leak-check=full ./bnc --file bnc_cmb.raw_110221 --staID "FFMJ1" --conf POST.conf --format RTCM_3 2> valgrind.txt &
5 | elif [ "$1" == "stop" ]
6 | then
7 | kill -SIGINT `ps | grep memcheck | cut -b 1-6`
8 | else
9 | echo "usage: run_valgrind start|stop"
10 | fi
11 |
--------------------------------------------------------------------------------
/src/trunk/GnssCenter/inpedit/lineedit.h:
--------------------------------------------------------------------------------
1 | #ifndef GnssCenter_LINEEDIT_H
2 | #define GnssCenter_LINEEDIT_H
3 |
4 | #include
5 |
6 | namespace GnssCenter {
7 |
8 | class t_lineEdit : public QLineEdit {
9 | Q_OBJECT
10 |
11 | public:
12 | t_lineEdit(QWidget* parent = 0);
13 | ~t_lineEdit();
14 | private:
15 | };
16 |
17 | } // namespace GnssCenter
18 |
19 | #endif
20 |
--------------------------------------------------------------------------------
/src/trunk/GnssCenter/monitor/const.h:
--------------------------------------------------------------------------------
1 | #ifndef CONST_H
2 | #define CONST_H
3 |
4 | namespace GnssCenter {
5 |
6 | static const char pluginName[] = "RTNet Monitor";
7 |
8 | class t_CST {
9 | public:
10 | enum t_irc {failure = -1, success, fatal}; // return code
11 | static const double aell;
12 | static const double fInv;
13 | };
14 |
15 | } // namespace GnssCenter
16 |
17 | #endif
18 |
--------------------------------------------------------------------------------
/src/trunk/BNC/Example_Configs/24_RinexEph.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ../bnc -nw -conf /dev/null \
4 | -key mountPoints "//Example:Configs@products.igs-ip.net:80/RTCM3EPH RTCM_3 DEU 50.09 8.66 no 1" \
5 | -key ephPath Output \
6 | -key logFile Output/RinexEph.log \
7 | -key ephIntr "1 hour" \
8 | -key ephV3 2 &
9 |
10 | psID=`echo $!`
11 | sleep 10
12 | kill $psID
13 |
14 |
--------------------------------------------------------------------------------
/src/trunk/BNC/src/rinex/dopplot.h:
--------------------------------------------------------------------------------
1 | #ifndef DOPPLOT_H
2 | #define DOPPLOT_H
3 |
4 | #include
5 | #include
6 | #include
7 | #include
8 | #include "reqcanalyze.h"
9 |
10 | class t_dopPlot: public QwtPlot {
11 | Q_OBJECT
12 |
13 | public:
14 | t_dopPlot(QWidget* parent, const t_plotData& plotData);
15 |
16 | private:
17 | };
18 |
19 | #endif
20 |
--------------------------------------------------------------------------------
/src/trunk/BNC/src/bncversion.h:
--------------------------------------------------------------------------------
1 |
2 | #ifndef BNCVERSION_H
3 | #define BNCVERSION_H
4 |
5 | #define BNCVERSION "2.13.0"
6 | #define BNCPGMNAME "BNC " BNCVERSION
7 |
8 | #if defined(Q_OS_LINUX)
9 | # define BNC_OS "LINUX"
10 | #elif defined(Q_OS_MAC)
11 | # define BNC_OS "MAC"
12 | #elif defined(Q_OS_WIN32)
13 | # define BNC_OS "WIN32"
14 | #else
15 | # define BNC_OS "UNKNOWN"
16 | #endif
17 |
18 | #endif
19 |
--------------------------------------------------------------------------------
/src/trunk/BNC/Example_Configs/25_ScanLate.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ../bnc -nw -conf /dev/null \
4 | -key mountPoints "//Example:Configs@mgex.igs-ip.net:2101/CUT000AUS0 RTCM_3.2 AUS -32.00 115.89 no 1" \
5 | -key miscMount CUT000AUS0 \
6 | -key miscScanRTCM 2 \
7 | -key miscIntr "10 sec" \
8 | -key logFile Output/SCAN.log &
9 |
10 | psID=`echo $!`
11 | sleep 20
12 | kill $psID
13 |
14 |
--------------------------------------------------------------------------------
/src/trunk/rtcm3torinex/makefile:
--------------------------------------------------------------------------------
1 | # probably works not with all compilers. Thought this should be easy
2 | # fixable. There is nothing special at this source.
3 |
4 | rtcm3torinex: lib/rtcm3torinex.c lib/rtcm3torinex.h
5 | $(CC) -Wall -W -O3 -Ilib lib/rtcm3torinex.c -lm -o $@
6 |
7 | archive:
8 | zip -9 rtcm3torinex.zip lib/rtcm3torinex.c lib/rtcm3torinex.h rtcm3torinex.txt makefile
9 |
10 | clean:
11 | $(RM) rtcm3torinex rtcm3torinex.zip
--------------------------------------------------------------------------------
/src/trunk/GnssCenter/monitor/utils.h:
--------------------------------------------------------------------------------
1 | #ifndef UTILS_H
2 | #define UTILS_H
3 |
4 | #include "const.h"
5 |
6 | namespace GnssCenter {
7 |
8 | class t_utils {
9 | public:
10 | static t_CST::t_irc xyz2ell(const double* XYZ, double* Ell);
11 |
12 | static void xyz2neu(const double* Ell, const double* xyz, double* neu);
13 |
14 | static void neu2xyz(const double* Ell, const double* neu, double* xyz);
15 | };
16 |
17 | } // namespace GnssCenter
18 |
19 | #endif
20 |
--------------------------------------------------------------------------------
/src/trunk/BNS/bnsapp.h:
--------------------------------------------------------------------------------
1 |
2 | #ifndef BNSAPP_H
3 | #define BNSAPP_H
4 |
5 | #include
6 | #include
7 |
8 | class bnsApp : public QApplication {
9 | Q_OBJECT
10 | public:
11 | bnsApp(int& argc, char* argv[], bool GUIenabled);
12 | virtual ~bnsApp();
13 | void setConfFileName(const QString& confFileName);
14 | QString confFileName() const {return _confFileName;}
15 |
16 | private:
17 | QString _confFileName;
18 | };
19 | #endif
20 |
--------------------------------------------------------------------------------
/src/trunk/BNC/src/test_serial.cpp:
--------------------------------------------------------------------------------
1 |
2 | #include
3 | #include
4 | #include
5 |
6 | int main(int argc, char* argv[]) {
7 |
8 | FILE* fp = fopen("/dev/ttyS0", "r");
9 |
10 | if (!fp) {
11 | printf("Cannot open file.\n");
12 | exit(1);
13 | }
14 |
15 | char msg[100];
16 |
17 | while (true) {
18 | int nb = fread(msg, sizeof(msg), 1, fp);
19 | printf("read %d\n", nb);
20 | sleep(1);
21 | }
22 |
23 | return 0;
24 | }
25 |
--------------------------------------------------------------------------------
/src/trunk/BNC/src/app.h:
--------------------------------------------------------------------------------
1 | #ifndef GnssCenter_APP_H
2 | #define GnssCenter_APP_H
3 |
4 | #include
5 | #include
6 | #include
7 |
8 |
9 | QCoreApplication* createApplication(int& argc, char* argv[], bool GUIenabled);
10 |
11 | class t_app : public QApplication {
12 | Q_OBJECT
13 | public:
14 | t_app(int& argc, char* argv[]);
15 | virtual ~t_app();
16 | protected:
17 | virtual bool event(QEvent* ev);
18 | private:
19 | };
20 |
21 |
22 | #endif
23 |
--------------------------------------------------------------------------------
/src/trunk/GnssCenter/main/main.pro:
--------------------------------------------------------------------------------
1 |
2 | TEMPLATE = app
3 | TARGET = ../GnssCenter
4 | CONFIG += debug
5 |
6 | debug:OBJECTS_DIR = .obj/debug
7 | debug:MOC_DIR = .moc/debug
8 | release:OBJECTS_DIR = .obj/release
9 | release:MOC_DIR = .moc/release
10 |
11 | HEADERS += app.h mdiarea.h \
12 | settings.h mainwin.h plugininterface.h
13 |
14 | SOURCES += main.cpp app.cpp mdiarea.cpp \
15 | settings.cpp mainwin.cpp
16 |
17 |
--------------------------------------------------------------------------------
/src/trunk/GnssCenter/monitor/dlgconf.h:
--------------------------------------------------------------------------------
1 | #ifndef GnssCenter_DLGCONF_H
2 | #define GnssCenter_DLGCONF_H
3 |
4 | #include
5 | #include "const.h"
6 |
7 | namespace GnssCenter {
8 |
9 | class t_dlgConf : public QDialog {
10 | Q_OBJECT
11 | public:
12 | t_dlgConf(QWidget* parent);
13 | ~t_dlgConf();
14 | public slots:
15 | virtual void accept();
16 | private:
17 | QLineEdit* _hostLineEdit;
18 | QLineEdit* _portLineEdit;
19 | };
20 |
21 | } // namespace GnssCenter
22 |
23 | #endif
24 |
--------------------------------------------------------------------------------
/src/trunk/BNC/Example_Configs/22_RinexQC.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | /usr/bin/Xvfb :1 -screen 0 1280x1024x8 2>/dev/null &
4 | psID=`echo $!`
5 |
6 | ../bnc -nw -conf /dev/null -display :1 \
7 | -key reqcAction Analyze \
8 | -key reqcObsFile Input/cut0350a.12o \
9 | -key reqcNavFile Input/brdc350a.12p \
10 | -key reqcSkyPlotSignals "C:2&7 E:1&5 G:1&2 J:1&2 R:1&2 S:1&5" \
11 | -key reqcOutLogFile Output/RinexQc.log \
12 | -key reqcPlotDir Output
13 |
14 | kill $psID
15 |
16 |
--------------------------------------------------------------------------------
/src/trunk/BNC/Example_Configs/Input/APRIORI_ETRF.CRD:
--------------------------------------------------------------------------------
1 | #
2 | # Apriori coordinates with eccentricities, antennas and receivers, Reference System ETRF2000
3 | # ------------------------------------------------------------------------------------------
4 | FFMJ1 4053456.1577 617729.4239 4869395.4986 0.0000 0.0000 0.0450 LEIAR25.R4 LEIT JAVAD TRE_G3TH DELTA
5 | FFMJ00DEU0 4053456.1577 617729.4239 4869395.4986 0.0000 0.0000 0.0450 LEIAR25.R4 LEIT JAVAD TRE_G3TH DELTA
6 |
--------------------------------------------------------------------------------
/src/trunk/GnssCenter/main/plugininterface.h:
--------------------------------------------------------------------------------
1 | #ifndef GnssCenter_PLUGININTERFACE_H
2 | #define GnssCenter_PLUGININTERFACE_H
3 |
4 | #include
5 | #include
6 |
7 | namespace GnssCenter {
8 |
9 | class t_pluginFactoryInterface {
10 | public:
11 | virtual QWidget* create() = 0;
12 | virtual QString getName() const = 0;
13 | };
14 |
15 | } // namespace GnssCenter
16 |
17 | Q_DECLARE_INTERFACE(GnssCenter::t_pluginFactoryInterface, "GnssCenter_pluginFactoryInterface")
18 |
19 | #endif
20 |
--------------------------------------------------------------------------------
/src/trunk/BNC/src/RTCM3/ephEncoder.h:
--------------------------------------------------------------------------------
1 | #ifndef EPHENCODER_H
2 | #define EPHENCODER_H
3 |
4 | #include "ephemeris.h"
5 | #include "bncutils.h"
6 |
7 | class t_ephEncoder {
8 | public:
9 | static int RTCM3(const t_ephGPS& eph, unsigned char *);
10 | static int RTCM3(const t_ephGlo& eph, unsigned char *);
11 | static int RTCM3(const t_ephGal& eph, unsigned char *);
12 | static int RTCM3(const t_ephSBAS& eph, unsigned char *);
13 | static int RTCM3(const t_ephBDS& eph, unsigned char *);
14 | };
15 |
16 | #endif
17 |
--------------------------------------------------------------------------------
/src/trunk/GnssCenter/thrift/bidi_java/client/MessageListener.java:
--------------------------------------------------------------------------------
1 | package com.joelpm.bidiMessages.client;
2 |
3 | import com.joelpm.bidiMessages.generated.Message;
4 |
5 | /**
6 | * Interface implemented by classes that want to be notified when
7 | * new messages are received.
8 | *
9 | * @author Joel Meyer
10 | */
11 | public interface MessageListener {
12 | /**
13 | * Called when a new message is received.
14 | * @param msg The message that was received.
15 | */
16 | public void messageReceived(Message msg);
17 | }
18 |
19 |
--------------------------------------------------------------------------------
/src/trunk/BNC/Example_Configs/23_RinexConcat.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ../bnc -nw -conf /dev/null \
4 | -key reqcAction Edit/Concatenate \
5 | -key reqcObsFile Input/brux350a\*.12o \
6 | -key reqcRnxVersion 3 \
7 | -key reqcSampling 30 \
8 | -key reqcStartDateTime 1967-11-02T00:00:00 \
9 | -key reqcEndDateTime 2099-01-01T00:00:00 \
10 | -key reqcNewMarkerName BRUX_MARKER \
11 | -key reqcOutLogFile Output/RinexConcat.log \
12 | -key reqcOutObsFile Output/brux350a.12o
13 |
14 |
--------------------------------------------------------------------------------
/src/trunk/GnssCenter/inpedit/uniline.h:
--------------------------------------------------------------------------------
1 | #ifndef GnssCenter_UNILINE_H
2 | #define GnssCenter_UNILINE_H
3 |
4 | #include
5 |
6 | namespace GnssCenter {
7 |
8 | class t_uniLine : public QTableWidget {
9 | Q_OBJECT
10 |
11 | public:
12 | t_uniLine(const QString& fldMask, const QStringList& values,
13 | QWidget* parent = 0);
14 | ~t_uniLine();
15 |
16 | private slots:
17 | void slotItemClicked(QTableWidgetItem* item);
18 |
19 | private:
20 | };
21 |
22 | } // namespace GnssCenter
23 |
24 | #endif
25 |
--------------------------------------------------------------------------------
/src/trunk/BNC/Example_Configs/26_RinexObs.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ../bnc -nw -conf /dev/null \
4 | -key mountPoints "//Example:Configs@mgex.igs-ip.net:80/CUT000AUS0 RTCM_3.2 AUS -32.00 115.89 no 1;//Example:Configs@www.igs-ip.net:2101/FFMJ00DEU1 RTCM_3.1 DEU 50.09 8.66 no 1" \
5 | -key logFile Output/RinexObs.log \
6 | -key rnxPath Output \
7 | -key rnxIntr "15 min" \
8 | -key rnxSkel SKL \
9 | -key rnxSampl 0 \
10 | -key rnxV3 2 &
11 |
12 | psID=`echo $!`
13 | sleep 30
14 | kill $psID
15 |
16 |
--------------------------------------------------------------------------------
/src/trunk/BNC/src/upload/bncephuploadcaster.h:
--------------------------------------------------------------------------------
1 | #ifndef BNCEPHUPLOADCASTER_H
2 | #define BNCEPHUPLOADCASTER_H
3 |
4 | #include
5 | #include "bncuploadcaster.h"
6 | #include "bncephuser.h"
7 |
8 | class bncEphUploadCaster : public bncEphUser {
9 | Q_OBJECT
10 | public:
11 | bncEphUploadCaster();
12 | virtual ~bncEphUploadCaster();
13 | signals:
14 | void newBytes(QByteArray staID, double nbyte);
15 | protected:
16 | virtual void ephBufferChanged();
17 | private:
18 | QVector _casters;
19 | };
20 |
21 | #endif
22 |
--------------------------------------------------------------------------------
/src/trunk/BNC/src/PPP_SSR_I/pppUtils.h:
--------------------------------------------------------------------------------
1 | #ifndef PPPUTILS_H
2 | #define PPPUTILS_H
3 |
4 | #include
5 | #include
6 | #include "satObs.h"
7 |
8 | namespace BNC_PPP {
9 |
10 | class t_pppUtils {
11 | public:
12 | t_pppUtils();
13 | ~t_pppUtils();
14 | void putCodeBias(t_satCodeBias* satCodeBias);
15 | const t_satCodeBias* satCodeBias(const t_prn& prn) const {
16 | return _satCodeBiases[prn.toInt()];
17 | }
18 |
19 | private:
20 | t_satCodeBias* _satCodeBiases[t_prn::MAXPRN+1];
21 | };
22 |
23 | }
24 |
25 | #endif
26 |
--------------------------------------------------------------------------------
/src/trunk/GnssCenter/thrift/bidi_java/client/ConnectionStatusListener.java:
--------------------------------------------------------------------------------
1 | package com.joelpm.bidiMessages.client;
2 |
3 | /**
4 | * Interface implemented by classes that need to be notified
5 | * when the connection is lost or established.
6 | *
7 | * @author Joel Meyer
8 | */
9 | public interface ConnectionStatusListener {
10 | /**
11 | * Called when the connection has been lost.
12 | */
13 | public void connectionLost();
14 |
15 | /**
16 | * Called when the connection has been established.
17 | */
18 | public void connectionEstablished();
19 | }
20 |
21 |
--------------------------------------------------------------------------------
/src/trunk/BNC/src/pppMain.h:
--------------------------------------------------------------------------------
1 | #ifndef PPPMAIN_H
2 | #define PPPMAIN_H
3 |
4 | #include
5 | #include "pppOptions.h"
6 | #include "pppThread.h"
7 | #include "bnccore.h"
8 |
9 | namespace BNC_PPP {
10 |
11 | class t_pppMain {
12 | public:
13 | t_pppMain();
14 | ~t_pppMain();
15 | void start();
16 | void stop();
17 |
18 | private:
19 | void readOptions();
20 |
21 | QList _options;
22 | QList _pppThreads;
23 | bool _running;
24 | bool _realTime;
25 | };
26 |
27 | }; // namespace BNC_PPP
28 |
29 | #endif
30 |
--------------------------------------------------------------------------------
/src/trunk/BNS/bnshlpdlg.h:
--------------------------------------------------------------------------------
1 | #ifndef BNSHLPDLG_H
2 | #define BNSHLPDLG_H
3 |
4 | #include
5 | #include
6 |
7 | class bnsHtml;
8 |
9 | class bnsHlpDlg : public QDialog {
10 | Q_OBJECT
11 |
12 | public:
13 | bnsHlpDlg(QWidget* parent, const QUrl& url);
14 | ~bnsHlpDlg();
15 |
16 | signals:
17 |
18 | public slots:
19 | void backwardAvailable(bool);
20 | void forwardAvailable(bool);
21 |
22 | private:
23 | bnsHtml* _tb;
24 | QPushButton* _backButton;
25 | QPushButton* _forwButton;
26 | QPushButton* _closeButton;
27 | };
28 |
29 | #endif
30 |
--------------------------------------------------------------------------------
/src/trunk/GnssCenter/inpedit/tabwidget.h:
--------------------------------------------------------------------------------
1 | #ifndef GnssCenter_TABWIDGET_H
2 | #define GnssCenter_TABWIDGET_H
3 |
4 | #include
5 |
6 | namespace GnssCenter {
7 |
8 | class t_keyword;
9 | class t_panel;
10 |
11 | class t_tabWidget : public QTabWidget {
12 | public:
13 | t_tabWidget();
14 | ~t_tabWidget();
15 | void readInputFile(const QString&);
16 | void writeInputFile(const QString&);
17 | private:
18 | QString _fileName;
19 | QMap _keywords;
20 | QStringList _staticLines;
21 | };
22 |
23 | } // namespace GnssCenter
24 |
25 | #endif
26 |
27 |
--------------------------------------------------------------------------------
/src/trunk/BNC/qwt/qwt.h:
--------------------------------------------------------------------------------
1 | /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
2 | * Qwt Widget Library
3 | * Copyright (C) 1997 Josef Wilgen
4 | * Copyright (C) 2002 Uwe Rathmann
5 | *
6 | * This library is free software; you can redistribute it and/or
7 | * modify it under the terms of the Qwt License, Version 1.0
8 | *****************************************************************************/
9 |
10 | #ifndef QWT_H
11 | #define QWT_H
12 |
13 | #include "qwt_global.h"
14 |
15 | /*!
16 | Some constants for use within Qwt.
17 | */
18 | namespace Qwt
19 | {
20 | }
21 |
22 | #endif
23 |
--------------------------------------------------------------------------------
/src/trunk/BNC/src/bncnetqueryv0.h:
--------------------------------------------------------------------------------
1 | #ifndef BNCNETQUERYV0_H
2 | #define BNCNETQUERYV0_H
3 |
4 | #include "bncnetquery.h"
5 |
6 | class bncNetQueryV0 : public bncNetQuery {
7 | public:
8 | bncNetQueryV0();
9 | virtual ~bncNetQueryV0();
10 |
11 | virtual void stop();
12 | virtual void waitForRequestResult(const QUrl& url, QByteArray& outData);
13 | virtual void startRequest(const QUrl& url, const QByteArray& gga);
14 | virtual void keepAliveRequest(const QUrl& url, const QByteArray& gga);
15 | virtual void waitForReadyRead(QByteArray& outData);
16 |
17 | private:
18 | QTcpSocket* _socket;
19 | };
20 |
21 | #endif
22 |
--------------------------------------------------------------------------------
/src/trunk/GnssCenter/qwt/qwt.h:
--------------------------------------------------------------------------------
1 | /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
2 | * Qwt Widget Library
3 | * Copyright (C) 1997 Josef Wilgen
4 | * Copyright (C) 2002 Uwe Rathmann
5 | *
6 | * This library is free software; you can redistribute it and/or
7 | * modify it under the terms of the Qwt License, Version 1.0
8 | *****************************************************************************/
9 |
10 | #ifndef QWT_H
11 | #define QWT_H
12 |
13 | #include "qwt_global.h"
14 |
15 | /*!
16 | Some constants for use within Qwt.
17 | */
18 | namespace Qwt
19 | {
20 | };
21 |
22 | #endif
23 |
--------------------------------------------------------------------------------
/src/trunk/BNS/bnsrinex.h:
--------------------------------------------------------------------------------
1 | #ifndef BNSRINEX_H
2 | #define BNSRINEX_H
3 |
4 | #include
5 | #include
6 | #include
7 |
8 | #include "bnsoutf.h"
9 |
10 | class bnsRinex : public bnsoutf {
11 | public:
12 | bnsRinex(const QString& prep, const QString& ext, const QString& path,
13 | const QString& intr, int sampl);
14 | virtual ~bnsRinex();
15 | virtual BNS::t_irc write(int GPSweek, double GPSweeks, const QString& prn,
16 | const ColumnVector& xx);
17 |
18 | private:
19 | virtual void writeHeader(const QDateTime& datTim);
20 | bool _append;
21 | };
22 |
23 | #endif
24 |
--------------------------------------------------------------------------------
/src/trunk/BNC/src/rinex/availplot.h:
--------------------------------------------------------------------------------
1 | #ifndef AVAILPLOT_H
2 | #define AVAILPLOT_H
3 |
4 | #include
5 | #include
6 | #include
7 | #include
8 | #include "t_prn.h"
9 | #include "reqcanalyze.h"
10 |
11 | class t_availPlot: public QwtPlot {
12 | Q_OBJECT
13 |
14 | public:
15 | t_availPlot(QWidget* parent, const QMap& plotDataMap);
16 |
17 | private:
18 | QwtPlotCurve* addCurve(const QString& name, const QwtSymbol& symbol,
19 | const QVector& xData,
20 | const QVector& yData);
21 | };
22 |
23 | #endif
24 |
--------------------------------------------------------------------------------
/src/trunk/BNC/src/bncsettings.h:
--------------------------------------------------------------------------------
1 | #ifndef BNCSETTINGS_H
2 | #define BNCSETTINGS_H
3 |
4 | #include
5 | #include
6 |
7 | class bncSettings {
8 | public:
9 | bncSettings();
10 | ~bncSettings();
11 | QVariant value(const QString& key,
12 | const QVariant& defaultValue = QVariant()) const;
13 | void setValue(const QString &key, const QVariant& value);
14 | void remove(const QString& key );
15 | bool contains(const QString& key) const;
16 | void reRead();
17 | void sync();
18 | private:
19 | void setValue_p(const QString &key, const QVariant& value);
20 | static QMutex _mutex;
21 | };
22 |
23 | #endif
24 |
--------------------------------------------------------------------------------
/src/trunk/ntripserver/makefile:
--------------------------------------------------------------------------------
1 | #!/usr/bin/make
2 | # $Id: makefile,v 1.9 2009/02/10 12:20:09 stoecker Exp $
3 |
4 | ifdef windir
5 | CC = gcc
6 | OPTS = -Wall -W -DWINDOWSVERSION
7 | LIBS = -lwsock32
8 | else
9 | OPTS = -Wall -W
10 | endif
11 |
12 | ntripserver: ntripserver.c
13 | $(CC) $(OPTS) $? -O3 -DNDEBUG -o $@ $(LIBS)
14 |
15 | debug: ntripserver.c
16 | $(CC) $(OPTS) $? -g -o ntripserver $(LIBS)
17 |
18 | clean:
19 | $(RM) -f ntripserver core
20 |
21 | archive:
22 | zip -9 ntripserver.zip makefile ntripserver.c README startntripserver.sh
23 |
24 | tgzarchive:
25 | tar -cvzf ntripserver.tgz makefile ntripserver.c README startntripserver.sh
26 |
--------------------------------------------------------------------------------
/src/trunk/BNC/src/rinex/eleplot.h:
--------------------------------------------------------------------------------
1 | #ifndef ELEPLOT_H
2 | #define ELEPLOT_H
3 |
4 | #include
5 | #include
6 | #include
7 | #include
8 | #include "t_prn.h"
9 | #include "reqcanalyze.h"
10 |
11 | class t_availData;
12 |
13 | class t_elePlot: public QwtPlot {
14 | Q_OBJECT
15 |
16 | public:
17 | t_elePlot(QWidget* parent, const QMap& plotDataMap);
18 |
19 | private:
20 | QwtPlotCurve* addCurve(const QString& name, const QwtSymbol& symbol,
21 | const QVector& xData,
22 | const QVector& yData);
23 | };
24 |
25 | #endif
26 |
--------------------------------------------------------------------------------
/src/trunk/BNC/src/bncnetquerys.h:
--------------------------------------------------------------------------------
1 | #ifndef BNCSNETQUERYS_H
2 | #define BNCSNETQUERYS_H
3 |
4 | #include "bncnetquery.h"
5 | #include "serial/qextserialport.h"
6 |
7 | class bncNetQueryS : public bncNetQuery {
8 | public:
9 | bncNetQueryS();
10 | virtual ~bncNetQueryS();
11 |
12 | virtual void stop();
13 | virtual void waitForRequestResult(const QUrl& url, QByteArray& outData);
14 | virtual void startRequest(const QUrl& url, const QByteArray& gga);
15 | virtual void keepAliveRequest(const QUrl& url, const QByteArray& gga);
16 | virtual void waitForReadyRead(QByteArray& outData);
17 |
18 | private:
19 | QextSerialPort* _serialPort;
20 | };
21 |
22 | #endif
23 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Prerequisites
2 | *.d
3 |
4 | # Object files
5 | *.o
6 | *.ko
7 | *.obj
8 | *.elf
9 |
10 | # Linker output
11 | *.ilk
12 | *.map
13 | *.exp
14 |
15 | # Precompiled Headers
16 | *.gch
17 | *.pch
18 |
19 | # Libraries
20 | *.lib
21 | *.a
22 | *.la
23 | *.lo
24 |
25 | # Shared objects (inc. Windows DLLs)
26 | *.dll
27 | *.so
28 | *.so.*
29 | *.dylib
30 |
31 | # Executables
32 | *.exe
33 | *.out
34 | *.app
35 | *.i*86
36 | *.x86_64
37 | *.hex
38 |
39 | # Debug files
40 | *.dSYM/
41 | *.su
42 | *.idb
43 | *.pdb
44 |
45 | # Kernel Module Compile Results
46 | *.mod*
47 | *.cmd
48 | .tmp_versions/
49 | modules.order
50 | Module.symvers
51 | Mkfile.old
52 | dkms.conf
53 |
--------------------------------------------------------------------------------
/src/trunk/BNC/src/pppCrdFile.h:
--------------------------------------------------------------------------------
1 | #ifndef PPPCRDFILE_H
2 | #define PPPCRDFILE_H
3 |
4 | #include
5 | #include
6 | #include "newmat.h"
7 |
8 | namespace BNC_PPP {
9 |
10 | class t_pppCrdFile {
11 | public:
12 | class t_staInfo {
13 | public:
14 | t_staInfo() {
15 | _xyz.ReSize(3); _xyz = 0.0;
16 | _neuAnt.ReSize(3); _neuAnt = 0.0;
17 | }
18 | std::string _name;
19 | std::string _antenna;
20 | std::string _receiver;
21 | ColumnVector _xyz;
22 | ColumnVector _neuAnt;
23 | };
24 |
25 | static void readCrdFile(const std::string& fileName, std::vector& staInfoVec);
26 | };
27 |
28 | }
29 |
30 | #endif
31 |
--------------------------------------------------------------------------------
/src/trunk/ntripclient/makefile:
--------------------------------------------------------------------------------
1 | # $Id: makefile,v 1.8 2010/03/24 13:17:06 stoecker Exp $
2 | # probably works not with all compilers. Thought this should be easy
3 | # fixable. There is nothing special at this source.
4 |
5 | ifdef windir
6 | CC = gcc
7 | OPTS = -Wall -W -O3 -DWINDOWSVERSION
8 | LIBS = -lwsock32
9 | else
10 | OPTS = -Wall -W -O3
11 | endif
12 |
13 | ntripclient: ntripclient.c serial.c
14 | $(CC) $(OPTS) ntripclient.c -o $@ $(LIBS)
15 |
16 | clean:
17 | $(RM) ntripclient core*
18 |
19 |
20 | archive:
21 | zip -9 ntripclient.zip ntripclient.c makefile README serial.c
22 |
23 | tgzarchive:
24 | tar -czf ntripclient.tgz ntripclient.c makefile README serial.c
25 |
--------------------------------------------------------------------------------
/src/trunk/GnssCenter/inpedit/inpedit.pro:
--------------------------------------------------------------------------------
1 |
2 | TEMPLATE = lib
3 | CONFIG += plugin debug
4 | TARGET = $$qtLibraryTarget(gnsscenter_inpedit)
5 | INCLUDEPATH += ../main
6 | DESTDIR = ../plugins
7 |
8 | debug:OBJECTS_DIR = .obj/debug
9 | debug:MOC_DIR = .moc/debug
10 | release:OBJECTS_DIR = .obj/release
11 | release:MOC_DIR = .moc/release
12 |
13 | HEADERS = keyword.h panel.h inpedit.h \
14 | selwin.h lineedit.h uniline.h \
15 | tabwidget.h
16 |
17 | SOURCES = keyword.cpp panel.cpp inpedit.cpp \
18 | selwin.cpp lineedit.cpp uniline.cpp \
19 | tabwidget.cpp
20 |
--------------------------------------------------------------------------------
/src/trunk/BNC/src/bncclockrinex.h:
--------------------------------------------------------------------------------
1 | #ifndef BNCCLOCKRINEX_H
2 | #define BNCCLOCKRINEX_H
3 |
4 | #include
5 | #include
6 | #include
7 |
8 | #include "bncoutf.h"
9 |
10 | class bncClockRinex : public bncoutf {
11 | public:
12 | bncClockRinex(const QString& sklFileName, const QString& intr, int sampl);
13 | virtual ~bncClockRinex();
14 | virtual t_irc write(int GPSweek, double GPSweeks, const QString& prn,
15 | double clkRnx, double clkRnxRate, double clkRnxAcc,
16 | double clkRnxSig, double clkRnxRateSig, double clkRnxAccSig);
17 |
18 | private:
19 | virtual void writeHeader(const QDateTime& datTim);
20 | bool _append;
21 | };
22 |
23 | #endif
24 |
--------------------------------------------------------------------------------
/src/trunk/BNC/src/pppThread.h:
--------------------------------------------------------------------------------
1 | #ifndef PPPTHREAD_H
2 | #define PPPTHREAD_H
3 |
4 | #include
5 | #include
6 | #include
7 |
8 | #include "pppOptions.h"
9 | #include "pppClient.h"
10 | #include "pppRun.h"
11 |
12 | namespace BNC_PPP {
13 |
14 | class t_pppThread : public QThread {
15 | Q_OBJECT
16 | public:
17 | t_pppThread(const t_pppOptions* opt);
18 | ~t_pppThread();
19 | virtual void run();
20 | static void msleep(unsigned long msecs){QThread::msleep(msecs);}
21 |
22 | signals:
23 | void newMessage(QByteArray msg, bool showOnScreen);
24 |
25 | private:
26 | const t_pppOptions* _opt;
27 | t_pppRun* _pppRun;
28 | };
29 |
30 | }
31 |
32 | #endif
33 |
--------------------------------------------------------------------------------
/src/trunk/BNS/bnssp3.h:
--------------------------------------------------------------------------------
1 | #ifndef BNSSP3_H
2 | #define BNSSP3_H
3 |
4 | #include
5 | #include
6 | #include
7 |
8 | #include "bnsoutf.h"
9 |
10 | class bnsSP3 : public bnsoutf {
11 | public:
12 | bnsSP3(const QString& prep, const QString& ext, const QString& path,
13 | const QString& intr, int sampl);
14 | virtual ~bnsSP3();
15 | virtual BNS::t_irc write(int GPSweek, double GPSweeks, const QString& prn,
16 | const ColumnVector& xx, bool append);
17 |
18 | private:
19 | virtual void writeHeader(const QDateTime& datTim);
20 | virtual void closeFile();
21 | int _lastGPSweek;
22 | double _lastGPSweeks;
23 | };
24 |
25 | #endif
26 |
--------------------------------------------------------------------------------
/src/trunk/GnssCenter/main/app.h:
--------------------------------------------------------------------------------
1 | #ifndef GnssCenter_APP_H
2 | #define GnssCenter_APP_H
3 |
4 | #include
5 |
6 | namespace GnssCenter {
7 |
8 | class t_app : public QApplication {
9 | Q_OBJECT
10 |
11 | friend class t_settings;
12 |
13 | public:
14 | t_app(int& argc, char* argv[], bool GUIenabled);
15 | virtual ~t_app();
16 |
17 | void setConfFileName(const QString& confFileName);
18 | const QString& confFileName() const {return _confFileName;}
19 |
20 | public slots:
21 | void slotMessage(QByteArray msg);
22 |
23 | private:
24 | QString _confFileName;
25 | QSettings::SettingsMap _settings;
26 | };
27 |
28 | } // namespace GnssCenter
29 |
30 | #endif
31 |
32 |
--------------------------------------------------------------------------------
/src/trunk/BNC/src/bncnetqueryudp0.h:
--------------------------------------------------------------------------------
1 | #ifndef BNCNETQUERYUDP0_H
2 | #define BNCNETQUERYUDP0_H
3 |
4 | #include
5 |
6 | #include "bncnetquery.h"
7 |
8 | class bncNetQueryUdp0 : public bncNetQuery {
9 | Q_OBJECT
10 | public:
11 | bncNetQueryUdp0();
12 | virtual ~bncNetQueryUdp0();
13 |
14 | virtual void stop();
15 | virtual void waitForRequestResult(const QUrl& url, QByteArray& outData);
16 | virtual void startRequest(const QUrl& url, const QByteArray& gga);
17 | virtual void keepAliveRequest(const QUrl& url, const QByteArray& gga);
18 | virtual void waitForReadyRead(QByteArray& outData);
19 | private:
20 | QUdpSocket* _udpSocket;
21 | QEventLoop* _eventLoop;
22 | };
23 |
24 | #endif
25 |
--------------------------------------------------------------------------------
/src/trunk/GnssCenter/main/settings.h:
--------------------------------------------------------------------------------
1 | #ifndef GnssCenter_SETTINGS_H
2 | #define GnssCenter_SETTINGS_H
3 |
4 | #include
5 |
6 | namespace GnssCenter {
7 |
8 | class t_app;
9 |
10 | class t_settings {
11 | public:
12 | t_settings(const QString& groupName = QString());
13 | ~t_settings();
14 | QVariant value(const QString& key,
15 | const QVariant& defaultValue = QVariant()) const;
16 | void setValue(const QString &key, const QVariant& value);
17 | void remove(const QString& key );
18 | void sync();
19 | private:
20 | void reRead();
21 | t_app* _app;
22 | QString _groupName;
23 | static QMutex _mutex;
24 | };
25 |
26 | } // namespace GnssCenter
27 |
28 | #endif
29 |
--------------------------------------------------------------------------------
/src/trunk/GnssCenter/inpedit/keyword.h:
--------------------------------------------------------------------------------
1 | #ifndef GnssCenter_KEYWORD_H
2 | #define GnssCenter_KEYWORD_H
3 |
4 | #include
5 |
6 | namespace GnssCenter {
7 |
8 | class t_keyword {
9 | public:
10 | t_keyword(QString line, QTextStream& inStream, QStringList& staticLines);
11 | ~t_keyword();
12 |
13 | const QString& name() const {return _name;}
14 | bool ok() const {return _ok;}
15 | QWidget* createWidget(const QString& fldMask);
16 | QStringList values() const;
17 |
18 | private:
19 | bool _ok;
20 | QString _name;
21 | QStringList _origValues;
22 | QWidget* _widget;
23 | QMap _desc;
24 | };
25 |
26 | } // namespace GnssCenter
27 |
28 | #endif
29 |
--------------------------------------------------------------------------------
/src/trunk/GnssCenter/thrift/rtnet_sdo_example/RtnetDataRequest.h:
--------------------------------------------------------------------------------
1 | #ifndef RTNET_SDO_EXAMPLE_RTNETDATAREQUEST_H
2 | #define RTNET_SDO_EXAMPLE_RTNETDATAREQUEST_H
3 |
4 | #include "ConnectionRequiredRunnable.h"
5 | #include "common/thrift/RtnetData.h"
6 |
7 | #include
8 |
9 | class RtnetDataRequest : public ConnectionRequiredRunnable
10 | {
11 | public:
12 | RtnetDataRequest(boost::shared_ptr& protocol,
13 | boost::shared_ptr& connectionMonitor);
14 | ~RtnetDataRequest() {}
15 |
16 | void run();
17 | private:
18 | boost::shared_ptr client_;
19 | };
20 |
21 | #endif // RTNET_SDO_EXAMPLE_RTNETDATAREQUEST_H
22 |
--------------------------------------------------------------------------------
/src/trunk/BNC/qwt/qwt_point_3d.cpp:
--------------------------------------------------------------------------------
1 | /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
2 | * Qwt Widget Library
3 | * Copyright (C) 1997 Josef Wilgen
4 | * Copyright (C) 2002 Uwe Rathmann
5 | *
6 | * This library is free software; you can redistribute it and/or
7 | * modify it under the terms of the Qwt License, Version 1.0
8 | *****************************************************************************/
9 |
10 | #include "qwt_point_3d.h"
11 |
12 | #ifndef QT_NO_DEBUG_STREAM
13 |
14 | QDebug operator<<( QDebug debug, const QwtPoint3D &point )
15 | {
16 | debug.nospace() << "QwtPoint3D(" << point.x()
17 | << "," << point.y() << "," << point.z() << ")";
18 | return debug.space();
19 | }
20 |
21 | #endif
22 |
23 |
--------------------------------------------------------------------------------
/src/trunk/BNC/src/RTCM/rtcm_utils.h:
--------------------------------------------------------------------------------
1 | #ifndef RTCM_UTILS_H
2 | #define RTCM_UTILS_H
3 |
4 | class t_eph;
5 |
6 | const double c_light = 299792458.0;
7 | const double FRQ_L1 = 1575420000.0;
8 | const double FRQ_L2 = 1227600000.0;
9 | const double LAMBDA_1 = c_light / FRQ_L1;
10 | const double LAMBDA_2 = c_light / FRQ_L2;
11 | const double ZEROVALUE = 1e-100;
12 |
13 | void resolveEpoch (double secsHour,
14 | int refWeek, double refSecs,
15 | int& epochWeek, double& epochSecs);
16 |
17 | int cmpRho(const t_eph* eph,
18 | double stax, double stay, double staz,
19 | int GPSWeek, double GPSWeeks,
20 | double& rho, int& GPSWeek_tot, double& GPSWeeks_tot,
21 | double& xSat, double& ySat, double& zSat, double& clkSat);
22 |
23 | #endif
24 |
--------------------------------------------------------------------------------
/src/trunk/GnssCenter/qwt/qwt_point_3d.cpp:
--------------------------------------------------------------------------------
1 | /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
2 | * Qwt Widget Library
3 | * Copyright (C) 1997 Josef Wilgen
4 | * Copyright (C) 2002 Uwe Rathmann
5 | *
6 | * This library is free software; you can redistribute it and/or
7 | * modify it under the terms of the Qwt License, Version 1.0
8 | *****************************************************************************/
9 |
10 | #include "qwt_point_3d.h"
11 |
12 | #ifndef QT_NO_DEBUG_STREAM
13 |
14 | QDebug operator<<( QDebug debug, const QwtPoint3D &point )
15 | {
16 | debug.nospace() << "QwtPoint3D(" << point.x()
17 | << "," << point.y() << "," << point.z() << ")";
18 | return debug.space();
19 | }
20 |
21 | #endif
22 |
23 |
--------------------------------------------------------------------------------
/src/trunk/BNC/src/ppp.gpt:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | if [ $# -lt 2 ]
4 | then
5 | echo "Usage: $0
26 |
--------------------------------------------------------------------------------
/src/trunk/GnssCenter/thrift/rtnet_sdo_example/thrift_template/rtnet_js.thrift:
--------------------------------------------------------------------------------
1 | include "rtnet_data.thrift"
2 |
3 | namespace cpp com.gpssolutions.rtnet_js
4 | namespace java com.gpssolutions.rtnet_js
5 |
6 | struct UpdateStatus {
7 | 1: byte stationInfoUpdated,
8 | 2: byte stationAuxInfoUpdated,
9 | 3: byte rtnetInfoUpdated,
10 | 4: i32 lastEpoch
11 | }
12 |
13 | exception InvalidArgument {
14 | 1: string why
15 | }
16 |
17 | service RtnetDataJs {
18 | list getJobList(),
19 | list lastZDAmb(1: string jobName) throws (1:InvalidArgument err),
20 | list lastDDAmbresBaselines(1: string jobName) throws (1:InvalidArgument err),
21 | list getSatelliteXYZ(1: string jobName) throws (1:InvalidArgument err),
22 | list getStationInfo(1: string jobName) throws (1:InvalidArgument err),
23 | list getStationAuxInfo(1: string jobName) throws (1:InvalidArgument err),
24 | UpdateStatus getUpdateStatus(1: string jobName) throws (1:InvalidArgument err)
25 | }
26 |
27 |
--------------------------------------------------------------------------------
/src/trunk/BNC/qwt/qwt_abstract_legend.cpp:
--------------------------------------------------------------------------------
1 | /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
2 | * Qwt Widget Library
3 | * Copyright (C) 1997 Josef Wilgen
4 | * Copyright (C) 2002 Uwe Rathmann
5 | *
6 | * This library is free software; you can redistribute it and/or
7 | * modify it under the terms of the Qwt License, Version 1.0
8 | *****************************************************************************/
9 |
10 | #include "qwt_abstract_legend.h"
11 |
12 | /*!
13 | Constructor
14 |
15 | \param parent Parent widget
16 | */
17 | QwtAbstractLegend::QwtAbstractLegend( QWidget *parent ):
18 | QFrame( parent )
19 | {
20 | }
21 |
22 | //! Destructor
23 | QwtAbstractLegend::~QwtAbstractLegend()
24 | {
25 | }
26 |
27 | /*!
28 | Return the extent, that is needed for elements to scroll
29 | the legend ( usually scrollbars ),
30 |
31 | \param orientation Orientation
32 | \return Extent of the corresponding scroll element
33 | */
34 | int QwtAbstractLegend::scrollExtent( Qt::Orientation orientation ) const
35 | {
36 | Q_UNUSED( orientation );
37 | return 0;
38 | }
39 |
--------------------------------------------------------------------------------
/src/trunk/GnssCenter/qwt/qwt_clipper.h:
--------------------------------------------------------------------------------
1 | /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
2 | * Qwt Widget Library
3 | * Copyright (C) 1997 Josef Wilgen
4 | * Copyright (C) 2002 Uwe Rathmann
5 | *
6 | * This library is free software; you can redistribute it and/or
7 | * modify it under the terms of the Qwt License, Version 1.0
8 | *****************************************************************************/
9 |
10 | #ifndef QWT_CLIPPER_H
11 | #define QWT_CLIPPER_H
12 |
13 | #include "qwt_global.h"
14 | #include "qwt_interval.h"
15 | #include
16 | #include
17 |
18 | class QRect;
19 | class QRectF;
20 |
21 | /*!
22 | \brief Some clipping algos
23 | */
24 |
25 | class QWT_EXPORT QwtClipper
26 | {
27 | public:
28 | static QPolygon clipPolygon( const QRect &,
29 | const QPolygon &, bool closePolygon = false );
30 | static QPolygonF clipPolygonF( const QRectF &,
31 | const QPolygonF &, bool closePolygon = false );
32 |
33 | static QVector clipCircle(
34 | const QRectF &, const QPointF &, double radius );
35 | };
36 |
37 | #endif
38 |
--------------------------------------------------------------------------------
/src/trunk/GnssCenter/thrift/rtnet_sdo_example/ConnectionRequiredRunnable.h:
--------------------------------------------------------------------------------
1 | #ifndef RTNET_SDO_EXAMPLE_CONNECTIONREQUIREDRUNNABLE_H
2 | #define RTNET_SDO_EXAMPLE_CONNECTIONREQUIREDRUNNABLE_H
3 |
4 | #include
5 | #include
6 | #include
7 |
8 | #include "ConnectionStatusMonitor.h"
9 |
10 | class ConnectionRequiredRunnable : public apache::thrift::concurrency::Runnable
11 | {
12 | public:
13 | ConnectionRequiredRunnable(boost::shared_ptr& connectionMonitor, const std::string& name);
14 | virtual ~ConnectionRequiredRunnable() {}
15 | virtual void connectionLost();
16 | virtual void connectionEstablished();
17 | virtual void stop();
18 | protected:
19 | virtual void disconnected();
20 | virtual void connectWait();
21 | virtual void disconnectWait();
22 | boost::shared_ptr connectionMonitor_;
23 | std::string threadName_;
24 | apache::thrift::concurrency::Monitor connectMonitor_;
25 | apache::thrift::concurrency::Monitor disconnectMonitor_;
26 | bool stop_;
27 | };
28 |
29 | #endif // RTNET_PLOT_CONNECTIONREQUIREDRUNNABLE_H
30 |
--------------------------------------------------------------------------------
/src/trunk/BNS/bnctime.h:
--------------------------------------------------------------------------------
1 |
2 | #ifndef BNCTIME_H
3 | #define BNCTIME_H
4 |
5 | #include
6 |
7 | class bncTime {
8 | public:
9 | bncTime() {this->reset();}
10 | bncTime(int gpsw, double gpssec);
11 |
12 | bncTime& set(int gpsw, double gpssec);
13 | bncTime& set(int year, int month, int day, int hour, int min, double sec);
14 | bncTime& set(int year, int month, int day, double daysec);
15 |
16 | unsigned int mjd() const;
17 | double daysec() const;
18 | unsigned int gpsw() const;
19 | double gpssec() const;
20 | void civil_time (unsigned int& hour, unsigned int& min,
21 | double& sec) const;
22 |
23 | bool operator!=(const bncTime &time1) const;
24 | double operator-(const bncTime &time1) const;
25 | bncTime operator-(double sec) const;
26 | bncTime operator+(double sec) const;
27 |
28 | std::string timestr(unsigned numdec = 3, char sep = ':') const;
29 |
30 | private:
31 | bncTime& setmjd(double daysec, int mjd);
32 | void reset() {_mjd = 0; _sec = 0;}
33 |
34 | unsigned int _mjd;
35 | double _sec;
36 | };
37 |
38 | #endif
39 |
40 |
--------------------------------------------------------------------------------
/src/trunk/GnssCenter/thrift/test1/client.cpp:
--------------------------------------------------------------------------------
1 | #include
2 |
3 | #include
4 | #include
5 | #include
6 |
7 | #include "gen-cpp/myService.h"
8 |
9 | using namespace std;
10 | using namespace boost;
11 | using namespace apache::thrift;
12 | using namespace apache::thrift::protocol;
13 | using namespace apache::thrift::transport;
14 |
15 | int main(int argc, char** argv) {
16 | int port = 9090;
17 | shared_ptr socket(new TSocket("localhost", port));
18 | shared_ptr transport(new TBufferedTransport(socket));
19 | shared_ptr protocol(new TBinaryProtocol(transport));
20 | myServiceClient client(protocol);
21 |
22 | try {
23 | transport->open();
24 |
25 | while (true) {
26 | string answ;
27 | client.answer(answ, "How are you?");
28 | cout << "Server answers: " << answ << endl;
29 | sleep(1);
30 | }
31 |
32 | transport->close();
33 | } catch (TException& exc) {
34 | cout << "Exception: " << exc.what() << endl;
35 | }
36 |
37 | return 0;
38 | }
39 |
--------------------------------------------------------------------------------
/src/trunk/BNC/src/upload/bnccustomtrafo.h:
--------------------------------------------------------------------------------
1 | #ifndef BNCCUSTOMTRAFO_H
2 | #define BNCCUSTOMTRAFO_H
3 |
4 | #include
5 | #include
6 | #include
7 | #include
8 |
9 | class bncCustomTrafo : public QDialog {
10 | Q_OBJECT
11 |
12 | public:
13 | bncCustomTrafo(QWidget* parent);
14 | ~bncCustomTrafo();
15 |
16 | private slots:
17 | virtual void accept();
18 | void slotWhatsThis();
19 |
20 | private:
21 | QLineEdit* _dxLineEdit;
22 | QLineEdit* _dyLineEdit;
23 | QLineEdit* _dzLineEdit;
24 | QLineEdit* _dxrLineEdit;
25 | QLineEdit* _dyrLineEdit;
26 | QLineEdit* _dzrLineEdit;
27 | QLineEdit* _oxLineEdit;
28 | QLineEdit* _oyLineEdit;
29 | QLineEdit* _ozLineEdit;
30 | QLineEdit* _oxrLineEdit;
31 | QLineEdit* _oyrLineEdit;
32 | QLineEdit* _ozrLineEdit;
33 | QLineEdit* _scLineEdit;
34 | QLineEdit* _scrLineEdit;
35 | QLineEdit* _t0LineEdit;
36 |
37 | QPushButton* _buttonGet;
38 | QPushButton* _buttonCancel;
39 | QPushButton* _buttonOK;
40 | QPushButton* _buttonWhatsThis;
41 | };
42 |
43 | #endif
44 |
--------------------------------------------------------------------------------
/src/trunk/BNS/bnsoutf.h:
--------------------------------------------------------------------------------
1 | #ifndef BNSOUTF_H
2 | #define BNSOUTF_H
3 |
4 | #include
5 | #include
6 | #include
7 |
8 | #include "bnsutils.h"
9 |
10 | class bnsoutf {
11 | public:
12 | bnsoutf(const QString& prep, const QString& ext, const QString& path,
13 | const QString& intr, int sampl);
14 | virtual ~bnsoutf();
15 |
16 | virtual BNS::t_irc write(int GPSweek, double GPSweeks, const QString& prn,
17 | const ColumnVector& xx, bool append);
18 |
19 | protected:
20 | virtual void writeHeader(const QDateTime& datTim) = 0;
21 | virtual void closeFile();
22 | std::ofstream _out;
23 | int _sampl;
24 |
25 | private:
26 | QString nextEpochStr(const QDateTime& datTim,
27 | const QString& intStr,
28 | QDateTime* nextEpoch = 0);
29 | void resolveFileName(int GPSweek, const QDateTime& datTim);
30 |
31 | bool _headerWritten;
32 | QDateTime _nextCloseEpoch;
33 | QString _path;
34 | QString _intr;
35 | QString _ext;
36 | QString _prep;
37 | QByteArray _fName;
38 | };
39 |
40 | #endif
41 |
--------------------------------------------------------------------------------
/src/trunk/BNS/bnscustomtrafo.h:
--------------------------------------------------------------------------------
1 | #ifndef BNSCUSTOMTRAFO_H
2 | #define BNSCUSTOMTRAFO_H
3 |
4 | #include
5 | #include
6 | #include
7 |
8 | class bnsCustomTrafo : public QDialog {
9 | Q_OBJECT
10 |
11 | public:
12 | bnsCustomTrafo(QWidget* parent);
13 | ~bnsCustomTrafo();
14 |
15 | signals:
16 | void newMountPoints(QStringList* mountPoints);
17 |
18 | private slots:
19 | virtual void accept();
20 | void slotWhatsThis();
21 |
22 | private:
23 | QLineEdit* _dxLineEdit;
24 | QLineEdit* _dyLineEdit;
25 | QLineEdit* _dzLineEdit;
26 | QLineEdit* _dxrLineEdit;
27 | QLineEdit* _dyrLineEdit;
28 | QLineEdit* _dzrLineEdit;
29 | QLineEdit* _oxLineEdit;
30 | QLineEdit* _oyLineEdit;
31 | QLineEdit* _ozLineEdit;
32 | QLineEdit* _oxrLineEdit;
33 | QLineEdit* _oyrLineEdit;
34 | QLineEdit* _ozrLineEdit;
35 | QLineEdit* _scLineEdit;
36 | QLineEdit* _scrLineEdit;
37 | QLineEdit* _t0LineEdit;
38 |
39 | QPushButton* _buttonGet;
40 | QPushButton* _buttonCancel;
41 | QPushButton* _buttonOK;
42 | QPushButton* _buttonWhatsThis;
43 | };
44 |
45 | #endif
46 |
--------------------------------------------------------------------------------
/src/trunk/GnssCenter/qwt/qwt_compat.h:
--------------------------------------------------------------------------------
1 | /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
2 | * Qwt Widget Library
3 | * Copyright (C) 1997 Josef Wilgen
4 | * Copyright (C) 2002 Uwe Rathmann
5 | *
6 | * This library is free software; you can redistribute it and/or
7 | * modify it under the terms of the Qwt License, Version 1.0
8 | *****************************************************************************/
9 |
10 | #ifndef _QWT_COMPAT_H_
11 | #define _QWT_COMPAT_H_
12 |
13 | #include "qwt_global.h"
14 | #include
15 | #include
16 | #include
17 | #include
18 | #include
19 | #include
20 |
21 | // A couple of definition for Qwt5 compatibility
22 |
23 | #define qwtMax qMax
24 | #define qwtMin qMin
25 | #define qwtAbs qAbs
26 | #define qwtRound qRound
27 |
28 | #define QwtArray QVector
29 |
30 | typedef QList QwtValueList;
31 | typedef QPointF QwtDoublePoint;
32 | typedef QSizeF QwtDoubleSize;
33 | typedef QRectF QwtDoubleRect;
34 |
35 | typedef QPolygon QwtPolygon;
36 | typedef QPolygonF QwtPolygonF;
37 | typedef QwtInterval QwtDoubleInterval;
38 | typedef QwtPoint3D QwtDoublePoint3D;
39 |
40 | #endif
41 |
--------------------------------------------------------------------------------
/src/trunk/GnssCenter/main/mainwin.h:
--------------------------------------------------------------------------------
1 | #ifndef GnssCenter_MAINWIN_H
2 | #define GnssCenter_MAINWIN_H
3 |
4 | #include
5 | #include "plugininterface.h"
6 |
7 | namespace GnssCenter {
8 |
9 | class t_mdiArea;
10 |
11 | class t_pluginAction : public QAction {
12 | public:
13 | t_pluginAction(QObject* parent, t_pluginFactoryInterface* factIface) :
14 | QAction(factIface->getName(), parent), _factIface(factIface) {}
15 | t_pluginFactoryInterface* _factIface;
16 | };
17 |
18 | class t_mainWin : public QMainWindow {
19 | Q_OBJECT
20 |
21 | public:
22 | t_mainWin(QWidget* parent = 0, Qt::WindowFlags flags = 0);
23 | ~t_mainWin();
24 |
25 | private slots:
26 | void slotFontSel();
27 | void slotSaveOptions();
28 | void slotStartPlugin();
29 | void slotHelp();
30 | void slotAbout();
31 |
32 | protected:
33 | virtual void closeEvent(QCloseEvent* event);
34 |
35 | private:
36 | void createMenu();
37 | void createToolBar();
38 | void createStatusBar();
39 |
40 | t_mdiArea* _mdi;
41 |
42 | QMenu* _menuFile;
43 | QMenu* _menuPlugins;
44 | QMenu* _menuHlp;
45 |
46 | QToolBar* _toolBar;
47 | };
48 |
49 | } // namespace GnssCenter
50 |
51 | #endif
52 |
--------------------------------------------------------------------------------
/src/trunk/GnssCenter/thrift/bidi_java/client/MessageReceiver.java:
--------------------------------------------------------------------------------
1 | package com.joelpm.bidiMessages.client;
2 |
3 | import org.apache.thrift.TException;
4 | import org.apache.thrift.protocol.TProtocol;
5 | import com.joelpm.bidiMessages.generated.MessageService;
6 |
7 | /**
8 | * The class responsible for reading and deserializing incoming messages.
9 | * Should be run in its own thread.
10 | *
11 | * @author Joel Meyer
12 | */
13 | public class MessageReceiver extends ConnectionRequiredRunnable {
14 | private final MessageService.Processor processor;
15 | private final TProtocol protocol;
16 |
17 | public MessageReceiver(
18 | TProtocol protocol,
19 | MessageService.Iface messageService,
20 | ConnectionStatusMonitor connectionMonitor) {
21 | super(connectionMonitor, "Message Receiver");
22 | this.protocol = protocol;
23 | this.processor = new MessageService.Processor(messageService);
24 | }
25 |
26 | @Override
27 | public void run() {
28 | connectWait();
29 | while (true) {
30 | try {
31 | while (processor.process(protocol, protocol) == true) { }
32 | } catch (TException e) {
33 | disconnected();
34 | }
35 | }
36 | }
37 | }
38 |
39 |
--------------------------------------------------------------------------------
/src/trunk/GnssCenter/thrift/rtnet_sdo_example/Client.h:
--------------------------------------------------------------------------------
1 | #ifndef RTNET_SDO_EXAMPLE_CLIENT_H
2 | #define RTNET_SDO_EXAMPLE_CLIENT_H
3 |
4 | #include
5 |
6 | #include
7 | #include
8 | #include
9 |
10 | class RtnetDataHandler;
11 | class ConnectionRequiredRunnable;
12 | class ConnectionStatusMonitor;
13 |
14 | class Client
15 | {
16 | public:
17 | Client(const std::string& server, int16_t port,
18 | boost::shared_ptr& timeMgr,
19 | boost::shared_ptr dataHandler);
20 | ~Client();
21 | void stop();
22 | private:
23 | boost::shared_ptr connectionMonitor_;
24 |
25 | boost::shared_ptr transport_;
26 | boost::shared_ptr protocol_;
27 | boost::shared_ptr sender_;
28 | boost::shared_ptr senderThread_;
29 | boost::shared_ptr receiver_;
30 | boost::shared_ptr receiverThread_;
31 | };
32 |
33 | #endif // RTNET_SDO_EXAMPLE_CLIENT_H
34 |
--------------------------------------------------------------------------------
/src/trunk/clock_and_orbit/makefile:
--------------------------------------------------------------------------------
1 | all: readco readVtec readRTCM3
2 | CC = gcc
3 | CXX = g++
4 | DEFINES = -DNO_RTCM3_MAIN
5 | CFLAGS = -ggdb -Wall $(DEFINES) -I lib
6 | CFLAGSR = $(CFLAGS) -I ../rtcm3torinex/lib/ -DNO_RTCM3_MAIN
7 | LFLAGS = -ggdb -lm
8 | CXXFLAGS = -ggdb -Wall $(DEFINES) -I lib
9 | CXXFLAGSR = $(CXXFLAGS) -I ../rtcm3torinex/lib/
10 | CXXFLAGSRL = $(CXXFLAGSR) -lm
11 |
12 | clock_orbit_rtcm.o: lib/clock_orbit_rtcm.c
13 | $(CC) -c $(CFLAGS) -o $@ $<
14 |
15 | rtcm3torinex.o: ../rtcm3torinex/lib/rtcm3torinex.c
16 | $(CC) -c $(CFLAGSR) -o $@ $<
17 |
18 | readco.o: readco.c clock_orbit_rtcm.o
19 | $(CC) -c $(CFLAGS) -o $@ $<
20 |
21 | readVtec.o: readVtec.c
22 | $(CC) -c $(CFLAGS) -o $@ $<
23 |
24 | readRTCM3.o: readRTCM3.cpp
25 | $(CXX) -c $(CXXFLAGSR) $< -I lib
26 |
27 | readco: readco.o clock_orbit_rtcm.o
28 | $(CC) $(LFLAGS) -o $@ readco.o clock_orbit_rtcm.o
29 |
30 | readVtec: readVtec.o clock_orbit_rtcm.o
31 | $(CC) $(LFLAGS) -o $@ readVtec.o clock_orbit_rtcm.o
32 |
33 | readRTCM3: readRTCM3.o clock_orbit_rtcm.o rtcm3torinex.o
34 | $(CXX) $(CXXFLAGSRL) -o $@ readRTCM3.o clock_orbit_rtcm.o rtcm3torinex.o
35 |
36 | clean:
37 | rm *.o
38 | rm readco readVtec readRTCM3
39 |
--------------------------------------------------------------------------------
/src/trunk/clock_and_orbit/ssr1_cogps_old_data/CLCK4_080423.txt:
--------------------------------------------------------------------------------
1 | im Anhang finden Sie die Aufzeichnung von www.igs-ip.net/CLCK4 für etwa 1.5
2 | Stunden. Es handelt sich um den Zeitraum 08-04-23 10:57:20 bis etwa 08-04-23
3 | 12:26:48. In den 9
4 | Spalten findet sich die Information:
5 |
6 | 1. GPS-Woche
7 | 2. Sekunde der GPS-Woche
8 | 3. PRN
9 | 4. IODC
10 | 5. IODE
11 | 6. clock-Corr[m]
12 | 7. radial-Corr[m]
13 | 8. along-track-Corr[m]
14 | 9. out-of-plane-Corr[m]
15 |
16 | Auszug aus der Datei:
17 |
18 | 1476 298631.0 G01 51 51 -6.968 0.570 -0.791 0.056
19 | 1476 298631.0 G04 114 114 4.299 1.224 -1.114 -0.399
20 | 1476 298631.0 G11 3 3 4.533 1.530 -0.479 -0.088
21 | 1476 298631.0 G13 56 56 -4.364 1.414 1.432 -1.260
22 | 1476 298631.0 G17 70 70 -1.062 0.029 -1.777 -0.979
23 | 1476 298631.0 G20 84 84 3.043 1.561 0.153 -0.136
24 | 1476 298631.0 G23 24 24 -3.962 0.155 -1.096 0.449
25 | 1476 298631.0 G25 49 49 5.367 1.069 -1.236 -0.805
26 | 1476 298631.0 G31 66 66 1.343 0.055 0.507 0.609
27 | 1476 298631.0 G32 58 58 -6.484 0.966 -0.683 0.383
28 | ...
29 |
--------------------------------------------------------------------------------
/src/trunk/BNS/tst_glo.cpp:
--------------------------------------------------------------------------------
1 |
2 | #include
3 |
4 | #include
5 |
6 | #include "bnseph.h"
7 | #include "bnsutils.h"
8 |
9 | using namespace std;
10 |
11 | // Main Program
12 | /////////////////////////////////////////////////////////////////////////////
13 | int main(int /* argc */, char** /* argv */) {
14 |
15 | QStringList lines;
16 |
17 | lines << " 4 08 5 9 0 15 0.0 0.512236729264E-04 0.909494701773E-12 0.780000000000E+03"
18 | << " -0.540624853516E+04 0.384947776794E+00-0.186264514923E-08 0.000000000000E+00"
19 | << " -0.231976684570E+05 0.119731616974E+01 0.000000000000E+00 0.600000000000E+01"
20 | << " -0.928076904297E+04-0.325608444214E+01 0.279396772385E-08 0.100000000000E+01";
21 |
22 | t_ephGlo eph;
23 |
24 | eph.read(lines);
25 |
26 | ColumnVector xc(4);
27 | ColumnVector vv(3);
28 |
29 | int GPSWeek;
30 | double GPSWeeks;
31 | QDateTime dateTime(QDate(2008, 5, 9), QTime(0, 0, 0, 0), Qt::UTC);
32 | GPSweekFromDateAndTime(dateTime, GPSWeek, GPSWeeks);
33 |
34 | eph.position(GPSWeek, GPSWeeks, xc, vv);
35 |
36 | cout << setprecision(3) << xc.Rows(1,3);
37 | cout << setprecision(9) << xc(4) * 1e6 << endl;
38 |
39 | return 0;
40 | }
41 |
42 |
--------------------------------------------------------------------------------
/src/trunk/BNC/qwtpolar/qwt_polar_fitter.h:
--------------------------------------------------------------------------------
1 | /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
2 | * QwtPolar Widget Library
3 | * Copyright (C) 2008 Uwe Rathmann
4 | *
5 | * This library is free software; you can redistribute it and/or
6 | * modify it under the terms of the Qwt License, Version 1.0
7 | *****************************************************************************/
8 |
9 | #ifndef QWT_POLAR_FITTER_H
10 | #define QWT_POLAR_FITTER_H
11 |
12 | #include "qwt_polar_global.h"
13 | #include
14 |
15 | /*!
16 | \brief A simple curve fitter for polar points
17 |
18 | QwtPolarFitter adds equidistant points between 2 curve points,
19 | so that the connection gets rounded according to the nature of
20 | a polar plot.
21 |
22 | \sa QwtPolarCurve::setCurveFitter()
23 | */
24 | class QWT_POLAR_EXPORT QwtPolarFitter: public QwtCurveFitter
25 | {
26 | public:
27 | QwtPolarFitter( int stepCount = 5 );
28 | virtual ~QwtPolarFitter();
29 |
30 | void setStepCount( int size );
31 | int stepCount() const;
32 |
33 | virtual QPolygonF fitCurve( const QPolygonF & ) const;
34 |
35 | private:
36 | class PrivateData;
37 | PrivateData *d_data;
38 | };
39 |
40 | #endif
41 |
--------------------------------------------------------------------------------
/src/trunk/BNC/src/bncnetquery.h:
--------------------------------------------------------------------------------
1 | #ifndef BNCNETQUERY_H
2 | #define BNCNETQUERY_H
3 |
4 | #include
5 | #include
6 |
7 | #include "bncconst.h"
8 | #include "bnccore.h"
9 |
10 | class bncNetQuery : public QObject {
11 | Q_OBJECT
12 |
13 | public:
14 | enum queryStatus {init, running, finished, error};
15 |
16 | bncNetQuery() {
17 | connect(this, SIGNAL(newMessage(QByteArray,bool)),
18 | BNC_CORE, SLOT(slotMessage(const QByteArray,bool)));
19 | }
20 | virtual ~bncNetQuery() {}
21 |
22 | virtual void stop() = 0;
23 | virtual void waitForRequestResult(const QUrl& url, QByteArray& outData) = 0;
24 | virtual void startRequest(const QUrl& url, const QByteArray& gga) = 0;
25 | virtual void keepAliveRequest(const QUrl& url, const QByteArray& gga) = 0;
26 | virtual void waitForReadyRead(QByteArray& outData) = 0;
27 |
28 | void sendNMEA(const QByteArray& gga) {
29 | keepAliveRequest(_url, gga);
30 | }
31 |
32 | queryStatus status() const {return _status;}
33 |
34 | signals:
35 | void newMessage(QByteArray msg, bool showOnScreen);
36 |
37 | private slots:
38 |
39 | protected:
40 | queryStatus _status;
41 | int _timeOut;
42 | QUrl _url;
43 | };
44 |
45 | #endif
46 |
--------------------------------------------------------------------------------
/src/trunk/BNC/qwt/qwt_clipper.h:
--------------------------------------------------------------------------------
1 | /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
2 | * Qwt Widget Library
3 | * Copyright (C) 1997 Josef Wilgen
4 | * Copyright (C) 2002 Uwe Rathmann
5 | *
6 | * This library is free software; you can redistribute it and/or
7 | * modify it under the terms of the Qwt License, Version 1.0
8 | *****************************************************************************/
9 |
10 | #ifndef QWT_CLIPPER_H
11 | #define QWT_CLIPPER_H
12 |
13 | #include "qwt_global.h"
14 | #include "qwt_interval.h"
15 | #include
16 | #include
17 |
18 | class QRect;
19 | class QRectF;
20 |
21 | /*!
22 | \brief Some clipping algorithms
23 | */
24 |
25 | class QWT_EXPORT QwtClipper
26 | {
27 | public:
28 | static QPolygon clipPolygon( const QRect &,
29 | const QPolygon &, bool closePolygon = false );
30 | static QPolygon clipPolygon( const QRectF &,
31 | const QPolygon &, bool closePolygon = false );
32 |
33 | static QPolygonF clipPolygonF( const QRectF &,
34 | const QPolygonF &, bool closePolygon = false );
35 |
36 | static QVector clipCircle(
37 | const QRectF &, const QPointF &, double radius );
38 | };
39 |
40 | #endif
41 |
--------------------------------------------------------------------------------
/src/trunk/BNC/qwt/qwt_compat.h:
--------------------------------------------------------------------------------
1 | /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
2 | * Qwt Widget Library
3 | * Copyright (C) 1997 Josef Wilgen
4 | * Copyright (C) 2002 Uwe Rathmann
5 | *
6 | * This library is free software; you can redistribute it and/or
7 | * modify it under the terms of the Qwt License, Version 1.0
8 | *****************************************************************************/
9 |
10 | #ifndef _QWT_COMPAT_H_
11 | #define _QWT_COMPAT_H_
12 |
13 | #include "qwt_global.h"
14 | #include "qwt_interval.h"
15 | #include "qwt_point_3d.h"
16 | #include
17 | #include
18 | #include
19 | #include
20 | #include
21 | #include
22 |
23 | // A couple of definition for Qwt5 compatibility
24 |
25 | #define qwtMax qMax
26 | #define qwtMin qMin
27 | #define qwtAbs qAbs
28 | #define qwtRound qRound
29 |
30 | #define QwtArray QVector
31 |
32 | typedef QList QwtValueList;
33 | typedef QPointF QwtDoublePoint;
34 | typedef QSizeF QwtDoubleSize;
35 | typedef QRectF QwtDoubleRect;
36 |
37 | typedef QPolygon QwtPolygon;
38 | typedef QPolygonF QwtPolygonF;
39 | typedef QwtInterval QwtDoubleInterval;
40 | typedef QwtPoint3D QwtDoublePoint3D;
41 |
42 | #endif
43 |
--------------------------------------------------------------------------------
/src/trunk/BNC/qwt/qwt_global.h:
--------------------------------------------------------------------------------
1 | /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
2 | * Qwt Widget Library
3 | * Copyright (C) 1997 Josef Wilgen
4 | * Copyright (C) 2002 Uwe Rathmann
5 | *
6 | * This library is free software; you can redistribute it and/or
7 | * modify it under the terms of the Qwt License, Version 1.0
8 | *****************************************************************************/
9 |
10 | #ifndef QWT_GLOBAL_H
11 | #define QWT_GLOBAL_H
12 |
13 | #include
14 |
15 | // QWT_VERSION is (major << 16) + (minor << 8) + patch.
16 |
17 | #define QWT_VERSION 0x060104
18 | #define QWT_VERSION_STR "6.1.4"
19 |
20 | #if defined(_MSC_VER) /* MSVC Compiler */
21 | /* template-class specialization 'identifier' is already instantiated */
22 | #pragma warning(disable: 4660)
23 | /* inherits via dominance */
24 | #pragma warning(disable: 4250)
25 | #endif // _MSC_VER
26 |
27 | #ifdef QWT_DLL
28 |
29 | #if defined(QWT_MAKEDLL) // create a Qwt DLL library
30 | #define QWT_EXPORT Q_DECL_EXPORT
31 | #else // use a Qwt DLL library
32 | #define QWT_EXPORT Q_DECL_IMPORT
33 | #endif
34 |
35 | #endif // QWT_DLL
36 |
37 | #ifndef QWT_EXPORT
38 | #define QWT_EXPORT
39 | #endif
40 |
41 | #endif
42 |
--------------------------------------------------------------------------------
/src/trunk/GnssCenter/qwt/qwt_math.cpp:
--------------------------------------------------------------------------------
1 | /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
2 | * Qwt Widget Library
3 | * Copyright (C) 1997 Josef Wilgen
4 | * Copyright (C) 2002 Uwe Rathmann
5 | *
6 | * This library is free software; you can redistribute it and/or
7 | * modify it under the terms of the Qwt License, Version 1.0
8 | *****************************************************************************/
9 |
10 | #include "qwt_math.h"
11 |
12 | /*!
13 | \brief Find the smallest value in an array
14 | \param array Pointer to an array
15 | \param size Array size
16 | */
17 | double qwtGetMin( const double *array, int size )
18 | {
19 | if ( size <= 0 )
20 | return 0.0;
21 |
22 | double rv = array[0];
23 | for ( int i = 1; i < size; i++ )
24 | rv = qMin( rv, array[i] );
25 |
26 | return rv;
27 | }
28 |
29 |
30 | /*!
31 | \brief Find the largest value in an array
32 | \param array Pointer to an array
33 | \param size Array size
34 | */
35 | double qwtGetMax( const double *array, int size )
36 | {
37 | if ( size <= 0 )
38 | return 0.0;
39 |
40 | double rv = array[0];
41 | for ( int i = 1; i < size; i++ )
42 | rv = qMax( rv, array[i] );
43 |
44 | return rv;
45 | }
46 |
--------------------------------------------------------------------------------
/src/trunk/BNS/bnsutils.h:
--------------------------------------------------------------------------------
1 |
2 | #ifndef BNSUTILS_H
3 | #define BNSUTILS_H
4 |
5 | #include
6 |
7 | #include
8 | #include
9 | #include
10 |
11 | class gpsEph;
12 |
13 | namespace BNS {
14 | enum t_irc {failure = -1, success}; // return code
15 |
16 | void expandEnvVar(QString& str);
17 |
18 | QDateTime dateAndTimeFromGPSweek(int GPSWeek, double GPSWeeks);
19 |
20 | void GPSweekFromDateAndTime(const QDateTime& dateTime,
21 | int& GPSWeek, double& GPSWeeks);
22 |
23 | void GPSweekFromYMDhms(int year, int month, int day, int hour, int min,
24 | double sec, int& GPSWeek, double& GPSWeeks);
25 |
26 | void mjdFromDateAndTime(const QDateTime& dateTime, int& mjd, double& dayfrac);
27 |
28 | void currentGPSWeeks(int& week, double& sec);
29 |
30 | void XYZ_to_RSW(const ColumnVector& rr, const ColumnVector& vv,
31 | const ColumnVector& xyz, ColumnVector& rsw);
32 |
33 | ColumnVector rungeKutta4(double xi, const ColumnVector& yi, double dx,
34 | double* acc,
35 | ColumnVector (*der)(double x, const ColumnVector& y, double* acc));
36 |
37 | QByteArray waitForLine(QTcpSocket* socket);
38 | }
39 | #endif
40 |
--------------------------------------------------------------------------------
/src/trunk/BNS/bnshtml.cpp:
--------------------------------------------------------------------------------
1 |
2 | /* -------------------------------------------------------------------------
3 | * BKG NTRIP Server
4 | * -------------------------------------------------------------------------
5 | *
6 | * Class: bnsHtml
7 | *
8 | * Purpose: HTML Browser
9 | *
10 | * Author: L. Mervart
11 | *
12 | * Created: 30-Mar-2008
13 | *
14 | * Changes:
15 | *
16 | * -----------------------------------------------------------------------*/
17 |
18 | #include "bnshtml.h"
19 |
20 | using namespace std;
21 |
22 | // Constructor
23 | ////////////////////////////////////////////////////////////////////////////
24 | bnsHtml::bnsHtml() : QTextBrowser() {
25 |
26 | connect(this,SIGNAL(anchorClicked(const QUrl&)),
27 | this,SLOT(slotAnchorClicked(const QUrl&)));
28 | }
29 |
30 | // Destructor
31 | ////////////////////////////////////////////////////////////////////////////
32 | bnsHtml::~bnsHtml() {
33 |
34 | }
35 |
36 | //
37 | ////////////////////////////////////////////////////////////////////////////
38 | void bnsHtml::slotAnchorClicked(const QUrl& url) {
39 |
40 |
41 | QString href = url.toString();
42 | if (href.indexOf(':') != 0) {
43 | QUrl urlNew; urlNew.setPath(":bnshelp.html" + href);
44 | setSource(url);
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/src/trunk/BNC/qwtpolar/qwt_polar_global.h:
--------------------------------------------------------------------------------
1 | /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
2 | * QwtPolar Widget Library
3 | * Copyright (C) 2008 Uwe Rathmann
4 | *
5 | * This library is free software; you can redistribute it and/or
6 | * modify it under the terms of the Qwt License, Version 1.0
7 | *****************************************************************************/
8 |
9 | #ifndef QWT_POLAR_GLOBAL_H
10 | #define QWT_POLAR_GLOBAL_H
11 |
12 | #include
13 |
14 | // QWT_POLAR_VERSION is (major << 16) + (minor << 8) + patch.
15 |
16 | #define QWT_POLAR_VERSION 0x010101
17 | #define QWT_POLAR_VERSION_STR "1.1.1"
18 |
19 | #if defined(_MSC_VER) /* MSVC Compiler */
20 | /* template-class specialization 'identifier' is already instantiated */
21 | #pragma warning(disable: 4660)
22 | #endif // _MSC_VER
23 |
24 | #ifdef QWT_POLAR_DLL
25 |
26 | #if defined(QWT_POLAR_MAKEDLL) // create DLL library
27 | #define QWT_POLAR_EXPORT Q_DECL_EXPORT
28 | #define QWT_POLAR_TEMPLATEDLL
29 | #else // use DLL library
30 | #define QWT_POLAR_EXPORT Q_DECL_IMPORT
31 | #endif
32 |
33 | #endif // QWT_POLAR_DLL
34 |
35 | #ifndef QWT_POLAR_EXPORT
36 | #define QWT_POLAR_EXPORT
37 | #endif
38 |
39 | #endif // QWT_POLAR_GLOBAL_H
40 |
--------------------------------------------------------------------------------
/src/trunk/BNC/src/bncnetqueryv2.h:
--------------------------------------------------------------------------------
1 | #ifndef BNCNETQUERYV2_H
2 | #define BNCNETQUERYV2_H
3 |
4 | #include
5 | #include
6 | #include
7 | #include
8 | #include
9 |
10 | #include "bncnetquery.h"
11 |
12 | class bncNetQueryV2 : public bncNetQuery {
13 | Q_OBJECT
14 |
15 | public:
16 | bncNetQueryV2(bool secure);
17 | virtual ~bncNetQueryV2();
18 |
19 | virtual void stop();
20 | virtual void waitForRequestResult(const QUrl& url, QByteArray& outData);
21 | virtual void startRequest(const QUrl& url, const QByteArray& gga);
22 | virtual void keepAliveRequest(const QUrl& url, const QByteArray& gga);
23 | virtual void waitForReadyRead(QByteArray& outData);
24 |
25 | private slots:
26 | void slotFinished();
27 | void slotProxyAuthenticationRequired(const QNetworkProxy&, QAuthenticator*);
28 | void slotSslErrors(QList);
29 |
30 | private:
31 | void startRequestPrivate(const QUrl& url, const QByteArray& gga, bool full);
32 |
33 | QNetworkAccessManager* _manager;
34 | QNetworkReply* _reply;
35 | QEventLoop* _eventLoop;
36 | bool _firstData;
37 | bool _secure;
38 | bool _sslIgnoreErrors;
39 | };
40 |
41 | #endif
42 |
--------------------------------------------------------------------------------
/src/trunk/BNS/newmat/newmatio.h:
--------------------------------------------------------------------------------
1 | /// \ingroup newmat
2 | ///@{
3 |
4 | /// \file newmatio.h
5 | /// Definition file for matrix package output.
6 |
7 | // Copyright (C) 1991,2,3,4: R B Davies
8 |
9 | #ifndef NEWMATIO_LIB
10 | #define NEWMATIO_LIB 0
11 |
12 | #ifndef WANT_STREAM
13 | #define WANT_STREAM
14 | #endif
15 |
16 | #include "newmat.h"
17 |
18 | #ifdef USE_STD_NAMESPACE
19 | using namespace std;
20 | #endif
21 |
22 | // **************************** input/output *****************************/
23 |
24 | ostream& operator<<(ostream&, const BaseMatrix&);
25 |
26 | ostream& operator<<(ostream&, const GeneralMatrix&);
27 |
28 |
29 | /* Use in some old versions of G++ without complete iomanipulators
30 |
31 | class Omanip_precision
32 | {
33 | int x;
34 | public:
35 | Omanip_precision(int i) : x(i) {}
36 | friend ostream& operator<<(ostream& os, Omanip_precision i);
37 | };
38 |
39 |
40 | Omanip_precision setprecision(int i);
41 |
42 | class Omanip_width
43 | {
44 | int x;
45 | public:
46 | Omanip_width(int i) : x(i) {}
47 | friend ostream& operator<<(ostream& os, Omanip_width i);
48 | };
49 |
50 | Omanip_width setw(int i);
51 |
52 | */
53 |
54 | #ifdef use_namespace
55 | }
56 | #endif
57 |
58 |
59 |
60 | #endif
61 |
62 | // body file: newmat9.cpp
63 |
64 |
65 | ///@}
66 |
--------------------------------------------------------------------------------
/src/trunk/GnssCenter/qwt/qwt_plot_xml.cpp:
--------------------------------------------------------------------------------
1 | /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
2 | * Qwt Widget Library
3 | * Copyright (C) 1997 Josef Wilgen
4 | * Copyright (C) 2002 Uwe Rathmann
5 | *
6 | * This library is free software; you can redistribute it and/or
7 | * modify it under the terms of the Qwt License, Version 1.0
8 | *****************************************************************************/
9 |
10 | #include "qwt_plot.h"
11 |
12 | /*!
13 | This method is intended for manipulating the plot widget
14 | from a specific editor in the Qwt designer plugin.
15 |
16 | \warning The plot editor has never been implemented.
17 | */
18 | void QwtPlot::applyProperties( const QString & /* xmlDocument */ )
19 | {
20 | #if 0
21 | // Temporary dummy code, for designer tests
22 | setTitle( xmlDocument );
23 | replot();
24 | #endif
25 | }
26 |
27 | /*!
28 | This method is intended for manipulating the plot widget
29 | from a specific editor in the Qwt designer plugin.
30 |
31 | \warning The plot editor has never been implemented.
32 | */
33 | QString QwtPlot::grabProperties() const
34 | {
35 | #if 0
36 | // Temporary dummy code, for designer tests
37 | return title().text();
38 | #else
39 | return QString::null;
40 | #endif
41 | }
42 |
--------------------------------------------------------------------------------
/src/trunk/BNC/qwtpolar/qwtpolar.pro:
--------------------------------------------------------------------------------
1 |
2 | TEMPLATE = lib
3 | TARGET = qwtpolar
4 | CONFIG += qt qwt staticlib
5 | CONFIG -= debug
6 | CONFIG += release
7 | DEFINES += QWT_POLAR_NO_SVG
8 | greaterThan(QT_MAJOR_VERSION, 4) {
9 | QT += printsupport
10 | QT += concurrent
11 | }
12 |
13 | INCLUDEPATH += ../qwt
14 |
15 | OBJECTS_DIR = .obj
16 | MOC_DIR = .moc
17 |
18 | HEADERS += \
19 | qwt_polar_global.h \
20 | qwt_polar.h \
21 | qwt_polar_fitter.h \
22 | qwt_polar_item.h \
23 | qwt_polar_picker.h \
24 | qwt_polar_panner.h \
25 | qwt_polar_magnifier.h \
26 | qwt_polar_grid.h \
27 | qwt_polar_curve.h \
28 | qwt_polar_spectrogram.h \
29 | qwt_polar_marker.h \
30 | qwt_polar_itemdict.h \
31 | qwt_polar_canvas.h \
32 | qwt_polar_layout.h \
33 | qwt_polar_renderer.h \
34 | qwt_polar_plot.h
35 |
36 | SOURCES += \
37 | qwt_polar_fitter.cpp \
38 | qwt_polar_item.cpp \
39 | qwt_polar_picker.cpp \
40 | qwt_polar_panner.cpp \
41 | qwt_polar_magnifier.cpp \
42 | qwt_polar_grid.cpp \
43 | qwt_polar_curve.cpp \
44 | qwt_polar_spectrogram.cpp \
45 | qwt_polar_marker.cpp \
46 | qwt_polar_itemdict.cpp \
47 | qwt_polar_canvas.cpp \
48 | qwt_polar_layout.cpp \
49 | qwt_polar_renderer.cpp \
50 | qwt_polar_plot.cpp
51 |
--------------------------------------------------------------------------------
/src/trunk/BNC/src/gen_rtk_neu.pl:
--------------------------------------------------------------------------------
1 | #!/usr/bin/perl -w
2 |
3 | use strict;
4 |
5 | use lib "$ENV{HOME}/gpss_src/perl";
6 | use geotools;
7 |
8 | my($inFile, $outFile) = @ARGV;
9 | if (!defined($outFile)) {
10 | die "Usage: gen_rtk_neu.pl inFile outFile\n";
11 | }
12 |
13 | open(inFile , $inFile);
14 | open(outFile, ">$outFile");
15 |
16 | ###my $xApr = 0.0;
17 | ###my $yApr = 0.0;
18 | ###my $zApr = 0.0;
19 |
20 | # JOS20
21 | #my $xApr = 3664880.4923;
22 | #my $yApr = 1409190.6728;
23 | #my $zApr = 5009618.5192;
24 |
25 | # FFMJ1
26 | my $xApr = 4053455.8174;
27 | my $yApr = 617729.7434;
28 | my $zApr = 4869395.7728;
29 |
30 | while ( my $line= ) {
31 |
32 | if ($line =~ /PPP/) {
33 |
34 | my @p = split(/\s+/, $line);
35 |
36 | my $time = $p[4];
37 | my $x = $p[6];
38 | my $y = $p[9];
39 | my $z = $p[12];
40 |
41 | if ($xApr == 0.0 && $yApr == 0.0 && $zApr == 0.0) {
42 | $xApr = $x;
43 | $yApr = $y;
44 | $zApr = $z;
45 | }
46 |
47 | my $dx = $x - $xApr;
48 | my $dy = $y - $yApr;
49 | my $dz = $z - $zApr;
50 |
51 | my ($n, $e, $u) = get_neu($dx, $dy, $dz, $xApr, $yApr, $zApr);
52 |
53 | printf(outFile "%s %8.4f %8.4f %8.4f\n", $time, $n, $e, $u);
54 | }
55 | }
56 |
57 | close inFile;
58 | close outFile;
59 |
--------------------------------------------------------------------------------
/src/trunk/GnssCenter/thrift/rtnet_sdo_example/RtnetDataRequest.cpp:
--------------------------------------------------------------------------------
1 | #include "RtnetDataRequest.h"
2 |
3 | #include
4 |
5 | using namespace apache::thrift;
6 | using namespace apache::thrift::protocol;
7 | using namespace com::gpssolutions::rtnet;
8 |
9 | RtnetDataRequest::RtnetDataRequest(boost::shared_ptr& protocol,
10 | boost::shared_ptr& connectionMonitor)
11 | : ConnectionRequiredRunnable(connectionMonitor,"RtnetDataRequestService"),
12 | client_(new RtnetDataClient(protocol))
13 | {
14 | }
15 |
16 | void
17 | RtnetDataRequest::run() {
18 | printf("Starting RtnetDataRequest thread.\n");
19 | while (!stop_) {
20 | printf("waiting for connection\n");
21 | connectWait();
22 | printf("Connected to rtnet\n");
23 | if (stop_) {
24 | printf("Quitting RtnetDataRequest thread (stop is true)\n");
25 | return;
26 | }
27 | try {
28 | printf("sending request for rtnet data stream\n");
29 | client_->startDataStream();
30 | disconnectWait();
31 | } catch (TException& e) {
32 | fprintf(stderr,"Caught an exception generated by Thrift in RtnetDataRequest: %s\n",e.what());
33 | }
34 | }
35 | printf("Quitting RtnetDataRequest thread\n");
36 | }
37 |
38 |
--------------------------------------------------------------------------------
/src/trunk/BNC/qwt/qwt_plot_xml.cpp:
--------------------------------------------------------------------------------
1 | /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
2 | * Qwt Widget Library
3 | * Copyright (C) 1997 Josef Wilgen
4 | * Copyright (C) 2002 Uwe Rathmann
5 | *
6 | * This library is free software; you can redistribute it and/or
7 | * modify it under the terms of the Qwt License, Version 1.0
8 | *****************************************************************************/
9 |
10 | #include "qwt_plot.h"
11 |
12 | /*!
13 | This method is intended for manipulating the plot widget
14 | from a specific editor in the Qwt designer plugin.
15 |
16 | \warning The plot editor has never been implemented.
17 | */
18 | void QwtPlot::applyProperties( const QString & /* xmlDocument */ )
19 | {
20 | #if 0
21 | // Temporary dummy code, for designer tests
22 | setTitle( xmlDocument );
23 | replot();
24 | #endif
25 | }
26 |
27 | /*!
28 | This method is intended for manipulating the plot widget
29 | from a specific editor in the Qwt designer plugin.
30 |
31 | \return QString::null
32 | \warning The plot editor has never been implemented.
33 | */
34 | QString QwtPlot::grabProperties() const
35 | {
36 | #if 0
37 | // Temporary dummy code, for designer tests
38 | return title().text();
39 | #else
40 | return QString::null;
41 | #endif
42 | }
43 |
--------------------------------------------------------------------------------
/src/trunk/GnssCenter/thrift/rtnet_sdo_example/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
2 | SET(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true)
3 |
4 | PROJECT(rtnet_sdo_example)
5 |
6 | SET( ${PROJECT_NAME}_MAJOR_VERSION 1 )
7 | SET( ${PROJECT_NAME}_MINOR_VERSION 0 )
8 | SET( ${PROJECT_NAME}_PATCH_LEVEL 0 )
9 |
10 | ADD_DEFINITIONS(-DHAVE_NETINET_IN_H -DHAVE_INTTYPES_H)
11 |
12 | INCLUDE_DIRECTORIES(.)
13 |
14 | ADD_SUBDIRECTORY(common)
15 |
16 | INCLUDE_DIRECTORIES(${PROJECT_BINARY_DIR}
17 | /usr/include/boost
18 | /usr/local/include/thrift)
19 |
20 | ADD_EXECUTABLE(rtnet_sdo_example
21 | rtnet_sdo_example.cpp
22 | Client.cpp Client.h
23 | RtnetDataHandler.cpp RtnetDataHandler.h
24 | RtnetDataRequest.cpp RtnetDataRequest.h
25 | RtnetDataListener.cpp RtnetDataListener.h
26 | ConnectionRequiredRunnable.cpp ConnectionRequiredRunnable.h
27 | ConnectionStatusMonitor.cpp ConnectionStatusMonitor.h
28 | )
29 | TARGET_LINK_LIBRARIES(rtnet_sdo_example lib_gpssthrift thrift rt ssl z pthread)
30 |
31 | INSTALL(TARGETS rtnet_sdo_example DESTINATION bin PERMISSIONS
32 | OWNER_READ OWNER_WRITE OWNER_EXECUTE
33 | GROUP_READ GROUP_EXECUTE
34 | WORLD_READ WORLD_EXECUTE
35 | )
36 |
37 |
--------------------------------------------------------------------------------
/src/trunk/GnssCenter/thrift/rtnet_sdo_example/RtnetDataHandler.h:
--------------------------------------------------------------------------------
1 | #ifndef RTNET_SDO_EXAMPLE_RTNETDATAHANDLER_H
2 | #define RTNET_SDO_EXAMPLE_RTNETDATAHANDLER_H
3 |
4 | #include "common/thrift/RtnetData.h"
5 |
6 | class RtnetDataHandler : public com::gpssolutions::rtnet::RtnetDataIf
7 | {
8 | public:
9 | RtnetDataHandler();
10 | ~RtnetDataHandler();
11 | void startDataStream();
12 | void registerRtnet(const ::com::gpssolutions::rtnet::RtnetInformation& info);
13 | void handleZDAmb(const std::vector< ::com::gpssolutions::rtnet::ZDAmb> & ambList);
14 | void handleDDAmbresBaselines(const std::vector< ::com::gpssolutions::rtnet::DDAmbresBaseline>& ambList);
15 | void handleSatelliteXYZ(const std::vector< ::com::gpssolutions::rtnet::SatelliteXYZ>& svXYZList);
16 | void handleStationInfo(const std::vector< ::com::gpssolutions::rtnet::StationInfo> & stationList);
17 | void handleStationAuxInfo(const std::vector< ::com::gpssolutions::rtnet::StationAuxInfo> & stationAuxList);
18 | void handleDGPSCorr(const std::vector< ::com::gpssolutions::rtnet::DGPSCorr> & dgpsList);
19 | void handleSatelliteClock(const std::vector< ::com::gpssolutions::rtnet::SatelliteClock> & svList);
20 | void handleEpochResults(const ::com::gpssolutions::rtnet::RtnetEpoch& epoch);
21 | };
22 |
23 | #endif // RTNET_SDO_EXAMPLE_RTNETDATAHANDLER_H
24 |
--------------------------------------------------------------------------------
/src/trunk/BNC/src/bncabout.html:
--------------------------------------------------------------------------------
1 |
2 | Developed under GNU General Public License for 'Networked Transport of RTCM via Internet Protocol' (NTRIP) to receive GNSS streaming data over the Internet.
3 | http://igs.bkg.bund.de/ntrip/about
4 |
5 | BKG Software by:
6 |
7 | Czech Technical University (CTU)
8 | Faculty of Civil Engineering
9 | Department of Geodesy
10 | Prague, Czech Republic
11 | http://www.fsv.cvut.cz
12 |
13 | Federal Agency for Cartography and Geodesy (BKG)
14 | Department of Geodesy
15 | Section Navigation
16 | Frankfurt, Germany
17 | http://www.bkg.bund.de
18 |
19 | This software is provided 'as is'.
20 | Make sure you installed the latest version available from
21 | http://igs.bkg.bund.de/ntrip/download
22 |
23 | Disclaimer:
24 | The Bundesamt fuer Geodaesie und Kartographie (BKG) may not be held liable for damages of any kind, direct or consequential, which may result from the use of this software.
25 |
26 | BKG, Frankfurt, Germany, March 2016
27 | E-Mail: igs-ip@bkg.bund.de.
28 |
29 | Copyright © 2005-2018 Bundesamt for Cartography and Geodesy (BKG), Frankfurt, Germany
30 |
--------------------------------------------------------------------------------
/src/trunk/GnssCenter/thrift/test2/client.cpp:
--------------------------------------------------------------------------------
1 | #include
2 |
3 | #include
4 | #include
5 | #include
6 |
7 | #include "gen-cpp/myService.h"
8 |
9 | using namespace std;
10 | using namespace boost;
11 | using namespace apache::thrift;
12 | using namespace apache::thrift::protocol;
13 | using namespace apache::thrift::transport;
14 |
15 | class myService : virtual public myServiceIf {
16 | public:
17 | myService() {}
18 | void answer(const std::string& question) {
19 | cout << "Server asks: " << question << endl;
20 | }
21 |
22 | };
23 |
24 | int main(int argc, char** argv) {
25 | int port = 9090;
26 | shared_ptr socket(new TSocket("localhost", port));
27 | shared_ptr transport(new TBufferedTransport(socket));
28 | shared_ptr protocol(new TBinaryProtocol(transport));
29 |
30 | shared_ptr service(new myService());
31 | shared_ptr processor(new myServiceProcessor(service));
32 |
33 | try {
34 | transport->open();
35 |
36 | while (processor->process(protocol, protocol, 0)) {}
37 |
38 | transport->close();
39 | } catch (TException& exc) {
40 | cout << "Exception: " << exc.what() << endl;
41 | }
42 |
43 | return 0;
44 | }
45 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # c-ntripserver
2 | BKG's reference NTRIP server slightly enhanced
3 |
4 | This is a version of the NTRIP server and other software
5 | from the
6 | German Federal Agency for Cartography and Geodesy (BKG).
7 | I've enhanced the ntrip server to take input from stdin
8 | so that it can run at the end of a pipeline.
9 |
10 | BKG's original software can be downloaded via the subversion tool svn
11 | as described
12 | [here](https://software.rtcm-ntrip.org/).
13 |
14 | My first commit contains a clean copy of their version
15 | 8789 which they committed 2019-08-05 08:31:56Z.
16 | The latest commit contains my enhanced version.
17 |
18 | See the source code for the details of BKG's license.
19 |
20 |
21 | ## Building and Running
22 |
23 | To build the ntripserver software you need the gcc compiler and the make tool.
24 | These are easily available for a Linux machine or a Mac.
25 | You can get versions for Windows, but building under Linux is easier.
26 |
27 | Once you have your build environment ready, compile the source like so
28 |
29 | ```
30 | $ git clone https://github.com/goblimey/c-ntripserver.git
31 | $ cd c-ntripserver
32 | $ cd src/trunk/ntripserver
33 | $ make
34 | ```
35 |
36 | That produces an executable binary ntripserver that you can copy and run.
37 | The shell script startntripserver.sh shows how it might be run
38 |
--------------------------------------------------------------------------------
/src/trunk/BNC/qwt/qwt_sampling_thread.h:
--------------------------------------------------------------------------------
1 | #ifndef _QWT_SAMPLING_THREAD_H_
2 | #define _QWT_SAMPLING_THREAD_H_
3 |
4 | #include "qwt_global.h"
5 | #include
6 |
7 | /*!
8 | \brief A thread collecting samples at regular intervals.
9 |
10 | Continuous signals are converted into a discrete signal by
11 | collecting samples at regular intervals. A discrete signal
12 | can be displayed by a QwtPlotSeriesItem on a QwtPlot widget.
13 |
14 | QwtSamplingThread starts a thread calling periodically sample(),
15 | to collect and store ( or emit ) a single sample.
16 |
17 | \sa QwtPlotCurve, QwtPlotSeriesItem
18 | */
19 | class QWT_EXPORT QwtSamplingThread: public QThread
20 | {
21 | Q_OBJECT
22 |
23 | public:
24 | virtual ~QwtSamplingThread();
25 |
26 | double interval() const;
27 | double elapsed() const;
28 |
29 | public Q_SLOTS:
30 | void setInterval( double interval );
31 | void stop();
32 |
33 | protected:
34 | explicit QwtSamplingThread( QObject *parent = NULL );
35 |
36 | virtual void run();
37 |
38 | /*!
39 | Collect a sample
40 |
41 | \param elapsed Time since the thread was started in milliseconds
42 | */
43 | virtual void sample( double elapsed ) = 0;
44 |
45 | private:
46 | class PrivateData;
47 | PrivateData *d_data;
48 | };
49 |
50 | #endif
51 |
--------------------------------------------------------------------------------
/src/trunk/GnssCenter/qwt/qwt_sampling_thread.h:
--------------------------------------------------------------------------------
1 | #ifndef _QWT_SAMPLING_THREAD_H_
2 | #define _QWT_SAMPLING_THREAD_H_
3 |
4 | #include "qwt_global.h"
5 | #include
6 |
7 | /*!
8 | \brief A thread collecting samples at regular intervals.
9 |
10 | Contiounous signals are converted into a discrete signal by
11 | collecting samples at regular intervals. A discrete signal
12 | can be displayed by a QwtPlotSeriesItem on a QwtPlot widget.
13 |
14 | QwtSamplingThread starts a thread calling perodically sample(),
15 | to collect and store ( or emit ) a single sample.
16 |
17 | \sa QwtPlotCurve, QwtPlotSeriesItem
18 | */
19 | class QWT_EXPORT QwtSamplingThread: public QThread
20 | {
21 | Q_OBJECT
22 |
23 | public:
24 | virtual ~QwtSamplingThread();
25 |
26 | double interval() const;
27 | double elapsed() const;
28 |
29 | public Q_SLOTS:
30 | void setInterval( double interval );
31 | void stop();
32 |
33 | protected:
34 | explicit QwtSamplingThread( QObject *parent = NULL );
35 |
36 | virtual void run();
37 |
38 | /*!
39 | Collect a sample
40 |
41 | \param elapsed Time since the thread was started in miliseconds
42 | */
43 | virtual void sample( double elapsed ) = 0;
44 |
45 | private:
46 | class PrivateData;
47 | PrivateData *d_data;
48 | };
49 |
50 | #endif
51 |
--------------------------------------------------------------------------------
/src/trunk/BNC/qwt/qwt_pixel_matrix.cpp:
--------------------------------------------------------------------------------
1 | /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
2 | * Qwt Widget Library
3 | * Copyright (C) 1997 Josef Wilgen
4 | * Copyright (C) 2002 Uwe Rathmann
5 | *
6 | * This library is free software; you can redistribute it and/or
7 | * modify it under the terms of the Qwt License, Version 1.0
8 | *****************************************************************************/
9 |
10 | #include "qwt_pixel_matrix.h"
11 |
12 | /*!
13 | \brief Constructor
14 |
15 | \param rect Bounding rectangle for the matrix
16 | */
17 | QwtPixelMatrix::QwtPixelMatrix( const QRect& rect ):
18 | QBitArray( qMax( rect.width() * rect.height(), 0 ) ),
19 | d_rect( rect )
20 | {
21 | }
22 |
23 | //! Destructor
24 | QwtPixelMatrix::~QwtPixelMatrix()
25 | {
26 | }
27 |
28 | /*!
29 | Set the bounding rectangle of the matrix
30 |
31 | \param rect Bounding rectangle
32 |
33 | \note All bits are cleared
34 | */
35 | void QwtPixelMatrix::setRect( const QRect& rect )
36 | {
37 | if ( rect != d_rect )
38 | {
39 | d_rect = rect;
40 | const int sz = qMax( rect.width() * rect.height(), 0 );
41 | resize( sz );
42 | }
43 |
44 | fill( false );
45 | }
46 |
47 | //! \return Bounding rectangle
48 | QRect QwtPixelMatrix::rect() const
49 | {
50 | return d_rect;
51 | }
52 |
--------------------------------------------------------------------------------
/src/trunk/BNC/newmat/newmatio.h:
--------------------------------------------------------------------------------
1 | /// \ingroup newmat
2 | ///@{
3 |
4 | /// \file newmatio.h
5 | /// Definition file for matrix package output.
6 |
7 | // Copyright (C) 1991,2,3,4: R B Davies
8 |
9 | #ifndef NEWMATIO_LIB
10 | #define NEWMATIO_LIB 0
11 |
12 | #ifndef WANT_STREAM
13 | #define WANT_STREAM
14 | #endif
15 |
16 | #include "newmat.h"
17 |
18 | #ifdef use_namespace
19 | namespace NEWMAT {
20 | #endif
21 |
22 |
23 |
24 | // **************************** input/output *****************************/
25 |
26 | ostream& operator<<(ostream&, const BaseMatrix&);
27 |
28 | ostream& operator<<(ostream&, const GeneralMatrix&);
29 |
30 |
31 | /* Use in some old versions of G++ without complete iomanipulators
32 |
33 | class Omanip_precision
34 | {
35 | int x;
36 | public:
37 | Omanip_precision(int i) : x(i) {}
38 | friend ostream& operator<<(ostream& os, Omanip_precision i);
39 | };
40 |
41 |
42 | Omanip_precision setprecision(int i);
43 |
44 | class Omanip_width
45 | {
46 | int x;
47 | public:
48 | Omanip_width(int i) : x(i) {}
49 | friend ostream& operator<<(ostream& os, Omanip_width i);
50 | };
51 |
52 | Omanip_width setw(int i);
53 |
54 | */
55 |
56 | #ifdef use_namespace
57 | }
58 | #endif
59 |
60 |
61 |
62 | #endif
63 |
64 | // body file: newmat9.cpp
65 |
66 |
67 | ///@}
68 |
--------------------------------------------------------------------------------
/src/trunk/BNC/src/PPP_SSR_I/pppUtils.cpp:
--------------------------------------------------------------------------------
1 | /* -------------------------------------------------------------------------
2 | * BKG NTRIP Client
3 | * -------------------------------------------------------------------------
4 | *
5 | * Class: t_pppUtils
6 | *
7 | * Purpose: Auxiliary Functions for PPP
8 | *
9 | * Author: A. Stürze
10 | *
11 | * Created: 18-Aug-2015
12 | *
13 | * Changes:
14 | *
15 | * -----------------------------------------------------------------------*/
16 |
17 | #include "pppUtils.h"
18 | #include "bncutils.h"
19 | #include "pppModel.h"
20 |
21 | using namespace BNC_PPP;
22 |
23 |
24 | // Constructor
25 | //////////////////////////////////////////////////////////////////////////////
26 | t_pppUtils::t_pppUtils() {
27 | for (unsigned ii = 0; ii <= t_prn::MAXPRN; ii++) {
28 | _satCodeBiases[ii] = 0;
29 | }
30 | }
31 |
32 | // Destructor
33 | //////////////////////////////////////////////////////////////////////////////
34 | t_pppUtils::~t_pppUtils() {
35 | for (unsigned ii = 0; ii <= t_prn::MAXPRN; ii++) {
36 | delete _satCodeBiases[ii];
37 | }
38 | }
39 |
40 | //
41 | //////////////////////////////////////////////////////////////////////////////
42 | void t_pppUtils::putCodeBias(t_satCodeBias* satCodeBias) {
43 | int iPrn = satCodeBias->_prn.toInt();
44 | delete _satCodeBiases[iPrn];
45 | _satCodeBiases[iPrn] = satCodeBias;
46 | }
47 |
48 |
--------------------------------------------------------------------------------
/src/trunk/BNC/src/bnchtml.h:
--------------------------------------------------------------------------------
1 | // Part of BNC, a utility for retrieving decoding and
2 | // converting GNSS data streams from NTRIP broadcasters.
3 | //
4 | // Copyright (C) 2007
5 | // German Federal Agency for Cartography and Geodesy (BKG)
6 | // http://www.bkg.bund.de
7 | // Czech Technical University Prague, Department of Geodesy
8 | // http://www.fsv.cvut.cz
9 | //
10 | // Email: euref-ip@bkg.bund.de
11 | //
12 | // This program is free software; you can redistribute it and/or
13 | // modify it under the terms of the GNU General Public License
14 | // as published by the Free Software Foundation, version 2.
15 | //
16 | // This program is distributed in the hope that it will be useful,
17 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
18 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 | // GNU General Public License for more details.
20 | //
21 | // You should have received a copy of the GNU General Public License
22 | // along with this program; if not, write to the Free Software
23 | // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24 |
25 | #ifndef BNCHTML_H
26 | #define BNCHTML_H
27 |
28 | #include
29 |
30 | class bncHtml : public QTextBrowser {
31 | Q_OBJECT
32 |
33 | public:
34 | bncHtml();
35 | ~bncHtml();
36 |
37 | public slots:
38 | void slotAnchorClicked(const QUrl& url);
39 | };
40 | #endif
41 |
--------------------------------------------------------------------------------
/src/trunk/BNS/bnsapp.cpp:
--------------------------------------------------------------------------------
1 | /* -------------------------------------------------------------------------
2 | * BKG NTRIP Server
3 | * -------------------------------------------------------------------------
4 | *
5 | * Class: bnsApp
6 | *
7 | * Purpose: This class implements the main application
8 | *
9 | * Author: G. Weber
10 | *
11 | * Created: 27-Feb-2009
12 | *
13 | * Changes:
14 | *
15 | * -----------------------------------------------------------------------*/
16 |
17 | #include "bnsapp.h"
18 |
19 | using namespace std;
20 |
21 | // Constructor
22 | ////////////////////////////////////////////////////////////////////////////
23 | bnsApp::bnsApp(int& argc, char* argv[], bool GUIenabled) :
24 | QApplication(argc, argv, GUIenabled) {
25 | }
26 |
27 | // Destructor
28 | ////////////////////////////////////////////////////////////////////////////
29 | bnsApp::~bnsApp() {
30 | }
31 |
32 | //
33 | ////////////////////////////////////////////////////////////////////////////
34 | void bnsApp::setConfFileName(const QString& confFileName) {
35 | if (confFileName.isEmpty()) {
36 | _confFileName = QDir::homePath() + QDir::separator()
37 | + ".config" + QDir::separator()
38 | + organizationName() + QDir::separator()
39 | + applicationName() + ".ini";
40 | }
41 | else {
42 | _confFileName = confFileName;
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/src/trunk/GnssCenter/qwt/qwt_global.h:
--------------------------------------------------------------------------------
1 | /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
2 | * Qwt Widget Library
3 | * Copyright (C) 1997 Josef Wilgen
4 | * Copyright (C) 2002 Uwe Rathmann
5 | *
6 | * This library is free software; you can redistribute it and/or
7 | * modify it under the terms of the Qwt License, Version 1.0
8 | *****************************************************************************/
9 |
10 | #ifndef QWT_GLOBAL_H
11 | #define QWT_GLOBAL_H
12 |
13 | #include
14 |
15 | // QWT_VERSION is (major << 16) + (minor << 8) + patch.
16 |
17 | #define QWT_VERSION 0x060001
18 | #define QWT_VERSION_STR "6.0.1"
19 |
20 | #if defined(Q_WS_WIN) || defined(Q_WS_S60)
21 |
22 | #if defined(_MSC_VER) /* MSVC Compiler */
23 | /* template-class specialization 'identifier' is already instantiated */
24 | #pragma warning(disable: 4660)
25 | #endif // _MSC_VER
26 |
27 | #ifdef QWT_DLL
28 |
29 | #if defined(QWT_MAKEDLL) // create a Qwt DLL library
30 | #define QWT_EXPORT __declspec(dllexport)
31 | #define QWT_TEMPLATEDLL
32 | #else // use a Qwt DLL library
33 | #define QWT_EXPORT __declspec(dllimport)
34 | #endif
35 |
36 | #endif // QWT_DLL
37 |
38 | #endif // Q_WS_WIN || Q_WS_S60
39 |
40 | #ifndef QWT_EXPORT
41 | #define QWT_EXPORT
42 | #endif
43 |
44 | // #define QWT_NO_COMPAT 1 // disable withdrawn functionality
45 |
46 | #endif
47 |
--------------------------------------------------------------------------------
/src/trunk/GnssCenter/thrift/bidi_java/server/MessageServiceClient.java:
--------------------------------------------------------------------------------
1 | package com.joelpm.bidiMessages.server;
2 |
3 | import org.apache.thrift.TException;
4 | import org.apache.thrift.protocol.TBinaryProtocol;
5 | import org.apache.thrift.transport.TSocket;
6 | import org.apache.thrift.transport.TTransport;
7 | import com.joelpm.bidiMessages.generated.Message;
8 | import com.joelpm.bidiMessages.generated.MessageService;
9 | import com.joelpm.bidiMessages.generated.MessageService.Iface;
10 |
11 | /**
12 | * This class is a stub that the server can use to send messages back
13 | * to the client.
14 | *
15 | * @author Joel Meyer
16 | */
17 | public class MessageServiceClient implements Iface {
18 | protected final TTransport transport;
19 | protected final String addy;
20 | protected final int port;
21 | protected final MessageService.Client client;
22 |
23 | public MessageServiceClient(TTransport transport) {
24 | TSocket tsocket = (TSocket)transport;
25 | this.transport = transport;
26 |
27 | this.client = new MessageService.Client(new TBinaryProtocol(transport));
28 | this.addy = tsocket.getSocket().getInetAddress().getHostAddress();
29 | this.port = tsocket.getSocket().getPort();
30 |
31 | }
32 |
33 | public String getAddy() {
34 | return addy;
35 | }
36 |
37 | public void sendMessage(Message msg) throws TException {
38 | this.client.sendMessage(msg);
39 | }
40 | }
41 |
42 |
--------------------------------------------------------------------------------
/src/trunk/BNC/src/upload/bncuploadcaster.h:
--------------------------------------------------------------------------------
1 | #ifndef BNCUPLOADCASTER_H
2 | #define BNCUPLOADCASTER_H
3 |
4 | #include
5 | #include
6 | #include
7 | #include
8 | #include
9 |
10 | class bncUploadCaster : public QThread {
11 | Q_OBJECT
12 | public:
13 | bncUploadCaster(const QString& mountpoint,
14 | const QString& outHost, int outPort,
15 | const QString& ntripVersion,
16 | const QString& userName, const QString& password,
17 | int iRow, int rate);
18 | virtual void deleteSafely();
19 | void setOutBuffer(const QByteArray& outBuffer) {
20 | QMutexLocker locker(&_mutex);
21 | _outBuffer = outBuffer;
22 | }
23 |
24 | protected:
25 | virtual ~bncUploadCaster();
26 | QMutex _mutex;
27 | QByteArray _outBuffer;
28 |
29 | signals:
30 | void newMessage(const QByteArray msg, bool showOnScreen);
31 | void newBytes(QByteArray staID, double nbyte);
32 |
33 | private:
34 | void open();
35 | virtual void run();
36 | bool _isToBeDeleted;
37 | QString _mountpoint;
38 | QString _outHost;
39 | int _outPort;
40 | QString _userName;
41 | QString _password;
42 | QString _ntripVersion;
43 | bool _secure;
44 | QTcpSocket* _outSocket;
45 | int _sOpenTrial;
46 | QDateTime _outSocketOpenTime;
47 | int _iRow;
48 | int _rate;
49 | };
50 |
51 | #endif
52 |
--------------------------------------------------------------------------------
/src/trunk/GnssCenter/thrift/test1/server.cpp:
--------------------------------------------------------------------------------
1 | #include
2 |
3 | #include
4 | #include
5 | #include
6 | #include
7 |
8 | #include "gen-cpp/myService.h"
9 |
10 | using namespace std;
11 | using namespace boost;
12 | using namespace ::apache::thrift;
13 | using namespace ::apache::thrift::protocol;
14 | using namespace ::apache::thrift::transport;
15 | using namespace ::apache::thrift::server;
16 |
17 | class myServiceHandler : virtual public myServiceIf {
18 | public:
19 | myServiceHandler() {}
20 | void answer(std::string& answ, const std::string& question) {
21 | cout << "Client asks: " << question << endl;
22 | answ = "I am well, thanks.";
23 | }
24 | };
25 |
26 | int main(int argc, char **argv) {
27 | int port = 9090;
28 | shared_ptr handler(new myServiceHandler());
29 | shared_ptr processor(new myServiceProcessor(handler));
30 | shared_ptr serverTransport(new TServerSocket(port));
31 | shared_ptr transportFactory(new TBufferedTransportFactory());
32 | shared_ptr protocolFactory(new TBinaryProtocolFactory());
33 |
34 | TSimpleServer server(processor, serverTransport,
35 | transportFactory, protocolFactory);
36 | server.serve();
37 | return 0;
38 | }
39 |
40 |
--------------------------------------------------------------------------------
/src/trunk/GnssCenter/thrift/rtnet_sdo_example/ConnectionRequiredRunnable.cpp:
--------------------------------------------------------------------------------
1 | #include "ConnectionRequiredRunnable.h"
2 |
3 | using namespace apache::thrift::concurrency;
4 | using std::string;
5 |
6 | ConnectionRequiredRunnable::ConnectionRequiredRunnable(boost::shared_ptr& connectionMonitor, const string& name)
7 | : connectionMonitor_(connectionMonitor),
8 | threadName_(name),
9 | connectMonitor_(),
10 | disconnectMonitor_(),
11 | stop_(false)
12 | {
13 | }
14 |
15 | void
16 | ConnectionRequiredRunnable::connectionLost()
17 | {
18 | }
19 |
20 | void
21 | ConnectionRequiredRunnable::connectionEstablished()
22 | {
23 | connectMonitor_.notifyAll();
24 | }
25 |
26 | void
27 | ConnectionRequiredRunnable::disconnected()
28 | {
29 | connectionMonitor_->disconnected(this);
30 | disconnectMonitor_.notifyAll();
31 | }
32 |
33 | void
34 | ConnectionRequiredRunnable::connectWait()
35 | {
36 | if (connectionMonitor_->connected()) return;
37 | connectMonitor_.waitForever();
38 | }
39 |
40 | void
41 | ConnectionRequiredRunnable::disconnectWait()
42 | {
43 | if (!connectionMonitor_->connected()) return;
44 | disconnectMonitor_.waitForever();
45 | }
46 |
47 | void
48 | ConnectionRequiredRunnable::stop()
49 | {
50 | stop_ = true;
51 | connectMonitor_.notifyAll();
52 | disconnectMonitor_.notifyAll();
53 | }
54 |
55 |
--------------------------------------------------------------------------------
/src/trunk/BNS/tst_glo.pro:
--------------------------------------------------------------------------------
1 |
2 | # Switch to debug configuration
3 | # -----------------------------
4 | CONFIG -= release
5 | CONFIG += debug
6 |
7 | # Get rid of mingwm10.dll
8 | # -----------------------
9 | win32:QMAKE_LFLAGS -= -mthreads
10 | win32:QMAKE_CXXFLAGS_EXCEPTIONS_ON -= -mthreads
11 | win32:QMAKE_LFLAGS_EXCEPTIONS_ON -= -mthreads
12 |
13 | debug:OBJECTS_DIR=.obj/debug
14 | debug:MOC_DIR=.moc/debug
15 | release:OBJECTS_DIR=.obj/release
16 | release:MOC_DIR=.moc/release
17 |
18 | # Include Path
19 | # ------------
20 | INCLUDEPATH = . ./newmat
21 |
22 | HEADERS = bnsutils.h bnseph.h
23 |
24 | HEADERS += newmat/controlw.h newmat/include.h newmat/myexcept.h \
25 | newmat/newmatap.h newmat/newmat.h newmat/newmatio.h \
26 | newmat/newmatrc.h newmat/newmatrm.h newmat/precisio.h
27 |
28 | SOURCES = tst_glo.cpp bnsutils.cpp bnseph.cpp
29 |
30 | SOURCES += newmat/bandmat.cpp newmat/cholesky.cpp newmat/evalue.cpp \
31 | newmat/fft.cpp newmat/hholder.cpp newmat/jacobi.cpp \
32 | newmat/myexcept.cpp newmat/newfft.cpp newmat/newmat1.cpp \
33 | newmat/newmat2.cpp newmat/newmat3.cpp newmat/newmat4.cpp \
34 | newmat/newmat5.cpp newmat/newmat6.cpp newmat/newmat7.cpp \
35 | newmat/newmat8.cpp newmat/newmat9.cpp newmat/newmatex.cpp \
36 | newmat/newmatrm.cpp newmat/nm_misc.cpp newmat/sort.cpp \
37 | newmat/submat.cpp newmat/svd.cpp
38 |
39 | QT += network
40 |
41 |
--------------------------------------------------------------------------------
/src/trunk/BNC/qwtpolar/qwt_polar_panner.h:
--------------------------------------------------------------------------------
1 | /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
2 | * QwtPolar Widget Library
3 | * Copyright (C) 2008 Uwe Rathmann
4 | *
5 | * This library is free software; you can redistribute it and/or
6 | * modify it under the terms of the Qwt License, Version 1.0
7 | *****************************************************************************/
8 |
9 | #ifndef QWT_POLAR_PANNER_H
10 | #define QWT_POLAR_PANNER_H 1
11 |
12 | #include "qwt_polar_global.h"
13 | #include "qwt_panner.h"
14 |
15 | class QwtPolarPlot;
16 | class QwtPolarCanvas;
17 |
18 | /*!
19 | \brief QwtPolarPanner provides panning of a polar plot canvas
20 |
21 | QwtPolarPanner is a panner for a QwtPolarCanvas, that
22 | adjusts the visible area after dropping
23 | the canvas on its new position.
24 |
25 | Together with QwtPolarMagnifier individual ways
26 | of navigating on a QwtPolarPlot widget can be implemented easily.
27 |
28 | \sa QwtPolarMagnifier
29 | */
30 |
31 | class QWT_POLAR_EXPORT QwtPolarPanner: public QwtPanner
32 | {
33 | Q_OBJECT
34 |
35 | public:
36 | explicit QwtPolarPanner( QwtPolarCanvas * );
37 | virtual ~QwtPolarPanner();
38 |
39 | QwtPolarPlot *plot();
40 | const QwtPolarPlot *plot() const;
41 |
42 | QwtPolarCanvas *canvas();
43 | const QwtPolarCanvas *canvas() const;
44 |
45 | protected Q_SLOTS:
46 | virtual void movePlot( int dx, int dy );
47 |
48 | protected:
49 | virtual void widgetMousePressEvent( QMouseEvent * );
50 | };
51 |
52 | #endif
53 |
--------------------------------------------------------------------------------
/src/trunk/BNC/qwt/qwt_system_clock.h:
--------------------------------------------------------------------------------
1 | /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
2 | * Qwt Widget Library
3 | * Copyright (C) 1997 Josef Wilgen
4 | * Copyright (C) 2002 Uwe Rathmann
5 | *
6 | * This library is free software; you can redistribute it and/or
7 | * modify it under the terms of the Qwt License, Version 1.0
8 | *****************************************************************************/
9 |
10 | #ifndef QWT_SYSTEM_CLOCK_H
11 | #define QWT_SYSTEM_CLOCK_H
12 |
13 | #include "qwt_global.h"
14 |
15 | /*!
16 | \brief QwtSystemClock provides high resolution clock time functions.
17 |
18 | Sometimes the resolution offered by QTime ( millisecond ) is not accurate
19 | enough for implementing time measurements ( f.e. sampling ).
20 | QwtSystemClock offers a subset of the QTime functionality using higher
21 | resolution timers ( if possible ).
22 |
23 | Precision and time intervals are multiples of milliseconds (ms).
24 |
25 | \note The implementation uses high-resolution performance counter on Windows,
26 | mach_absolute_time() on the Mac or POSIX timers on other systems.
27 | If none is available it falls back on QTimer.
28 | */
29 |
30 | class QWT_EXPORT QwtSystemClock
31 | {
32 | public:
33 | QwtSystemClock();
34 | virtual ~QwtSystemClock();
35 |
36 | bool isNull() const;
37 |
38 | void start();
39 | double restart();
40 | double elapsed() const;
41 |
42 | private:
43 | class PrivateData;
44 | PrivateData *d_data;
45 | };
46 |
47 | #endif
48 |
--------------------------------------------------------------------------------
/src/trunk/BNC/src/bncbytescounter.h:
--------------------------------------------------------------------------------
1 | // Part of BNC, a utility for retrieving decoding and
2 | // converting GNSS data streams from NTRIP broadcasters.
3 | //
4 | // Copyright (C) 2007
5 | // German Federal Agency for Cartography and Geodesy (BKG)
6 | // http://www.bkg.bund.de
7 | // Czech Technical University Prague, Department of Geodesy
8 | // http://www.fsv.cvut.cz
9 | //
10 | // Email: euref-ip@bkg.bund.de
11 | //
12 | // This program is free software; you can redistribute it and/or
13 | // modify it under the terms of the GNU General Public License
14 | // as published by the Free Software Foundation, version 2.
15 | //
16 | // This program is distributed in the hope that it will be useful,
17 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
18 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 | // GNU General Public License for more details.
20 | //
21 | // You should have received a copy of the GNU General Public License
22 | // along with this program; if not, write to the Free Software
23 | // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24 |
25 | #ifndef BNCBYTESCOUNTER_H
26 | #define BNCBYTESCOUNTER_H
27 |
28 | #include
29 | #include
30 | #include
31 |
32 | class bncBytesCounter : public QLabel {
33 | Q_OBJECT
34 |
35 | public:
36 | bncBytesCounter();
37 | ~bncBytesCounter();
38 |
39 | public slots:
40 | void slotNewBytes(const QByteArray staID, double nbyte);
41 |
42 | private:
43 | double _bytesRead;
44 | QMutex _mutex;
45 | };
46 |
47 | #endif
48 |
--------------------------------------------------------------------------------
/src/trunk/GnssCenter/qwt/qwt_system_clock.h:
--------------------------------------------------------------------------------
1 | /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
2 | * Qwt Widget Library
3 | * Copyright (C) 1997 Josef Wilgen
4 | * Copyright (C) 2002 Uwe Rathmann
5 | *
6 | * This library is free software; you can redistribute it and/or
7 | * modify it under the terms of the Qwt License, Version 1.0
8 | *****************************************************************************/
9 |
10 | #ifndef QWT_SYSTEM_CLOCK_H
11 | #define QWT_SYSTEM_CLOCK_H
12 |
13 | #include "qwt_global.h"
14 |
15 | /*!
16 | \brief QwtSystemClock provides high resolution clock time functions.
17 |
18 | Sometimes the resolution offered by QTime ( millisecond ) is not accurate
19 | enough for implementing time measurements ( f.e. sampling ).
20 | QwtSystemClock offers a subset of the QTime functionality using higher
21 | resolution timers ( if possible ).
22 |
23 | Precision and time intervals are multiples of milliseconds (ms).
24 |
25 | \note The implementation uses high-resolution performance counter on Windows,
26 | mach_absolute_time() on the Mac or POSIX timers on other systems.
27 | If none is available it falls back on QTimer.
28 | */
29 |
30 | class QWT_EXPORT QwtSystemClock
31 | {
32 | public:
33 | QwtSystemClock();
34 | virtual ~QwtSystemClock();
35 |
36 | bool isNull() const;
37 |
38 | void start();
39 | double restart();
40 | double elapsed() const;
41 |
42 | static double precision();
43 |
44 | private:
45 | class PrivateData;
46 | PrivateData *d_data;
47 | };
48 |
49 | #endif
50 |
--------------------------------------------------------------------------------
/src/trunk/BNC/src/app.cpp:
--------------------------------------------------------------------------------
1 | /* -------------------------------------------------------------------------
2 | * GnssCenter
3 | * -------------------------------------------------------------------------
4 | *
5 | * Class: t_app
6 | *
7 | * Purpose: This class implements the main application
8 | *
9 | * Author: L. Mervart
10 | *
11 | * Created: 05-Jan-2013
12 | *
13 | * Changes:
14 | *
15 | * -----------------------------------------------------------------------*/
16 |
17 | #include "app.h"
18 | #include "bnccore.h"
19 |
20 | using namespace std;
21 |
22 | QCoreApplication* createApplication(int& argc, char* argv[], bool GUIenabled) {
23 |
24 | if (GUIenabled) {
25 | return new t_app(argc, argv);
26 | }
27 |
28 | return new QCoreApplication(argc, argv);
29 | }
30 |
31 |
32 | // Constructor
33 | ////////////////////////////////////////////////////////////////////////////
34 | t_app::t_app(int& argc, char* argv[]) : QApplication(argc, argv) {
35 | setWindowIcon(QPixmap(":ntrip-logo.png"));
36 | }
37 |
38 | // Destructor
39 | ////////////////////////////////////////////////////////////////////////////
40 | t_app::~t_app() {
41 | }
42 |
43 | // Handling Events (virtual)
44 | ////////////////////////////////////////////////////////////////////////////
45 | bool t_app::event(QEvent* ev) {
46 |
47 | if (ev->type() == QEvent::FileOpen) { // currently happens on Mac only
48 | QString fileName = static_cast(ev)->file();
49 | BNC_CORE->setConfFileName(fileName);
50 | return true;
51 | }
52 |
53 | return QApplication::event(ev);
54 | }
55 |
56 |
57 |
--------------------------------------------------------------------------------
/src/trunk/GnssCenter/main/app.cpp:
--------------------------------------------------------------------------------
1 | /* -------------------------------------------------------------------------
2 | * RTNet GUI
3 | * -------------------------------------------------------------------------
4 | *
5 | * Class: t_app
6 | *
7 | * Purpose: This class implements the main application
8 | *
9 | * Author: L. Mervart
10 | *
11 | * Created: 05-Jan-2013
12 | *
13 | * Changes:
14 | *
15 | * -----------------------------------------------------------------------*/
16 |
17 | #include "app.h"
18 |
19 | using namespace std;
20 | using namespace GnssCenter;
21 |
22 | // Constructor
23 | ////////////////////////////////////////////////////////////////////////////
24 | t_app::t_app(int& argc, char* argv[], bool GUIenabled) :
25 | QApplication(argc, argv, GUIenabled) {
26 | }
27 |
28 | // Destructor
29 | ////////////////////////////////////////////////////////////////////////////
30 | t_app::~t_app() {
31 | }
32 |
33 | //
34 | ////////////////////////////////////////////////////////////////////////////
35 | void t_app::setConfFileName(const QString& confFileName) {
36 | if (confFileName.isEmpty()) {
37 | _confFileName = QDir::homePath() + QDir::separator()
38 | + ".config" + QDir::separator()
39 | + organizationName() + QDir::separator()
40 | + applicationName() + ".conf";
41 | }
42 | else {
43 | _confFileName = confFileName;
44 | }
45 | }
46 |
47 | //
48 | ////////////////////////////////////////////////////////////////////////////
49 | void t_app::slotMessage(QByteArray msg) {
50 | qDebug() << msg;
51 | }
52 |
--------------------------------------------------------------------------------
/src/trunk/BNC/src/upload/bncrtnetdecoder.h:
--------------------------------------------------------------------------------
1 | // Part of BNC, a utility for retrieving decoding and
2 | // converting GNSS data streams from NTRIP broadcasters.
3 | //
4 | // Copyright (C) 2007
5 | // German Federal Agency for Cartography and Geodesy (BKG)
6 | // http://www.bkg.bund.de
7 | // Czech Technical University Prague, Department of Geodesy
8 | // http://www.fsv.cvut.cz
9 | //
10 | // Email: euref-ip@bkg.bund.de
11 | //
12 | // This program is free software; you can redistribute it and/or
13 | // modify it under the terms of the GNU General Public License
14 | // as published by the Free Software Foundation, version 2.
15 | //
16 | // This program is distributed in the hope that it will be useful,
17 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
18 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 | // GNU General Public License for more details.
20 | //
21 | // You should have received a copy of the GNU General Public License
22 | // along with this program; if not, write to the Free Software
23 | // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24 |
25 | #ifndef BNCRTNETDECODER_H
26 | #define BNCRTNETDECODER_H
27 |
28 | #include
29 | #include
30 | #include "bncrtnetuploadcaster.h"
31 | #include "GPSDecoder.h"
32 |
33 | class bncRtnetDecoder: public GPSDecoder {
34 | public:
35 | bncRtnetDecoder();
36 | ~bncRtnetDecoder();
37 | virtual t_irc Decode(char* buffer, int bufLen,
38 | std::vector& errmsg);
39 | private:
40 | QVector _casters;
41 | };
42 |
43 | #endif // include blocker
44 |
--------------------------------------------------------------------------------
/src/trunk/BNC/qwt/qwt_plot_magnifier.h:
--------------------------------------------------------------------------------
1 | /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
2 | * Qwt Widget Library
3 | * Copyright (C) 1997 Josef Wilgen
4 | * Copyright (C) 2002 Uwe Rathmann
5 | *
6 | * This library is free software; you can redistribute it and/or
7 | * modify it under the terms of the Qwt License, Version 1.0
8 | *****************************************************************************/
9 |
10 | #ifndef QWT_PLOT_MAGNIFIER_H
11 | #define QWT_PLOT_MAGNIFIER_H 1
12 |
13 | #include "qwt_global.h"
14 | #include "qwt_magnifier.h"
15 |
16 | class QwtPlot;
17 |
18 | /*!
19 | \brief QwtPlotMagnifier provides zooming, by magnifying in steps.
20 |
21 | Using QwtPlotMagnifier a plot can be zoomed in/out in steps using
22 | keys, the mouse wheel or moving a mouse button in vertical direction.
23 |
24 | Together with QwtPlotZoomer and QwtPlotPanner it is possible to implement
25 | individual and powerful navigation of the plot canvas.
26 |
27 | \sa QwtPlotZoomer, QwtPlotPanner, QwtPlot
28 | */
29 | class QWT_EXPORT QwtPlotMagnifier: public QwtMagnifier
30 | {
31 | Q_OBJECT
32 |
33 | public:
34 | explicit QwtPlotMagnifier( QWidget * );
35 | virtual ~QwtPlotMagnifier();
36 |
37 | void setAxisEnabled( int axis, bool on );
38 | bool isAxisEnabled( int axis ) const;
39 |
40 | QWidget *canvas();
41 | const QWidget *canvas() const;
42 |
43 | QwtPlot *plot();
44 | const QwtPlot *plot() const;
45 |
46 | protected:
47 | virtual void rescale( double factor );
48 |
49 | private:
50 | class PrivateData;
51 | PrivateData *d_data;
52 | };
53 |
54 | #endif
55 |
--------------------------------------------------------------------------------
/src/trunk/BNC/src/bnczerodecoder.h:
--------------------------------------------------------------------------------
1 | // Part of BNC, a utility for retrieving decoding and
2 | // converting GNSS data streams from NTRIP broadcasters.
3 | //
4 | // Copyright (C) 2007
5 | // German Federal Agency for Cartography and Geodesy (BKG)
6 | // http://www.bkg.bund.de
7 | // Czech Technical University Prague, Department of Geodesy
8 | // http://www.fsv.cvut.cz
9 | //
10 | // Email: euref-ip@bkg.bund.de
11 | //
12 | // This program is free software; you can redistribute it and/or
13 | // modify it under the terms of the GNU General Public License
14 | // as published by the Free Software Foundation, version 2.
15 | //
16 | // This program is distributed in the hope that it will be useful,
17 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
18 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 | // GNU General Public License for more details.
20 | //
21 | // You should have received a copy of the GNU General Public License
22 | // along with this program; if not, write to the Free Software
23 | // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24 |
25 | #ifndef INC_BNCZERODECODER_H
26 | #define INC_BNCZERODECODER_H
27 |
28 | #include
29 | #include
30 | #include "GPSDecoder.h"
31 |
32 | class bncZeroDecoder: public GPSDecoder {
33 | public:
34 | bncZeroDecoder(const QString& fileName);
35 | ~bncZeroDecoder();
36 | virtual t_irc Decode(char* buffer, int bufLen, std::vector& errmsg);
37 | private:
38 | void reopen();
39 | QString _fileName;
40 | std::ofstream* _out;
41 | QDate _fileDate;
42 | };
43 |
44 | #endif // include blocker
45 |
--------------------------------------------------------------------------------
/src/trunk/BNC/qwt/qwt_arrow_button.h:
--------------------------------------------------------------------------------
1 | /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
2 | * Qwt Widget Library
3 | * Copyright (C) 1997 Josef Wilgen
4 | * Copyright (C) 2002 Uwe Rathmann
5 | *
6 | * This library is free software; you can redistribute it and/or
7 | * modify it under the terms of the Qwt License, Version 1.0
8 | *****************************************************************************/
9 |
10 | #ifndef QWT_ARROW_BUTTON_H
11 | #define QWT_ARROW_BUTTON_H
12 |
13 | #include "qwt_global.h"
14 | #include
15 |
16 | /*!
17 | \brief Arrow Button
18 |
19 | A push button with one or more filled triangles on its front.
20 | An Arrow button can have 1 to 3 arrows in a row, pointing
21 | up, down, left or right.
22 | */
23 | class QWT_EXPORT QwtArrowButton : public QPushButton
24 | {
25 | public:
26 | explicit QwtArrowButton ( int num, Qt::ArrowType, QWidget *parent = NULL );
27 | virtual ~QwtArrowButton();
28 |
29 | Qt::ArrowType arrowType() const;
30 | int num() const;
31 |
32 | virtual QSize sizeHint() const;
33 | virtual QSize minimumSizeHint() const;
34 |
35 | protected:
36 | virtual void paintEvent( QPaintEvent *event );
37 |
38 | virtual void drawButtonLabel( QPainter *p );
39 | virtual void drawArrow( QPainter *,
40 | const QRect &, Qt::ArrowType ) const;
41 | virtual QRect labelRect() const;
42 | virtual QSize arrowSize( Qt::ArrowType,
43 | const QSize &boundingSize ) const;
44 |
45 | virtual void keyPressEvent( QKeyEvent * );
46 |
47 | private:
48 | class PrivateData;
49 | PrivateData *d_data;
50 | };
51 |
52 | #endif
53 |
--------------------------------------------------------------------------------
/src/trunk/GnssCenter/monitor/monitor.pro:
--------------------------------------------------------------------------------
1 |
2 | TEMPLATE = lib
3 | CONFIG += plugin debug
4 | QT += svg
5 | TARGET = $$qtLibraryTarget(gnsscenter_monitor)
6 | DESTDIR = ../plugins
7 | DEFINES += HAVE_INTTYPES_H HAVE_NETINET_IN_H
8 |
9 | debug:OBJECTS_DIR = .obj/debug
10 | debug:MOC_DIR = .moc/debug
11 | release:OBJECTS_DIR = .obj/release
12 | release:MOC_DIR = .moc/release
13 |
14 | THRIFT_ROOT = /usr/local
15 | THRIFT_RTNET = $(HOME)/gpss_src/thrift
16 |
17 | INCLUDEPATH += ../main ../qwt $$THRIFT_ROOT/include/thrift
18 | QMAKE_LIBDIR += ../qwt $$THRIFT_ROOT/lib
19 | LIBS = -lqwt -lthrift
20 |
21 | thrift.target = gen-cpp
22 | thrift.commands = "$$THRIFT_ROOT/bin/thrift -r -gen cpp $$THRIFT_RTNET/rtnet.thrift"
23 | thrift.depends = $$THRIFT_RTNET/rtnet.thrift $$THRIFT_RTNET/rtnet_data.thrift
24 |
25 | PRE_TARGETDEPS += gen-cpp
26 | QMAKE_EXTRA_TARGETS += thrift
27 |
28 | HEADERS = monitor.h \
29 | dlgconf.h \
30 | utils.h \
31 | const.h \
32 | worldplot.h \
33 | thriftclient.h
34 |
35 | SOURCES = monitor.cpp \
36 | dlgconf.cpp \
37 | utils.cpp \
38 | const.cpp \
39 | worldplot.cpp \
40 | thriftclient.cpp \
41 | ../main/settings.cpp \
42 | gen-cpp/RtnetData.cpp \
43 | gen-cpp/rtnet_constants.cpp gen-cpp/rtnet_types.cpp \
44 | gen-cpp/rtnet_data_constants.cpp gen-cpp/rtnet_data_types.cpp
45 |
46 |
47 | RESOURCES = monitor.qrc
48 |
--------------------------------------------------------------------------------
/src/trunk/GnssCenter/qwt/qwt_plot_magnifier.h:
--------------------------------------------------------------------------------
1 | /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
2 | * Qwt Widget Library
3 | * Copyright (C) 1997 Josef Wilgen
4 | * Copyright (C) 2002 Uwe Rathmann
5 | *
6 | * This library is free software; you can redistribute it and/or
7 | * modify it under the terms of the Qwt License, Version 1.0
8 | *****************************************************************************/
9 |
10 | #ifndef QWT_PLOT_MAGNIFIER_H
11 | #define QWT_PLOT_MAGNIFIER_H 1
12 |
13 | #include "qwt_global.h"
14 | #include "qwt_magnifier.h"
15 |
16 | class QwtPlotCanvas;
17 | class QwtPlot;
18 |
19 | /*!
20 | \brief QwtPlotMagnifier provides zooming, by magnifying in steps.
21 |
22 | Using QwtPlotMagnifier a plot can be zoomed in/out in steps using
23 | keys, the mouse wheel or moving a mouse button in vertical direction.
24 |
25 | Together with QwtPlotZoomer and QwtPlotPanner it is possible to implement
26 | individual and powerful navigation of the plot canvas.
27 |
28 | \sa QwtPlotZoomer, QwtPlotPanner, QwtPlot
29 | */
30 | class QWT_EXPORT QwtPlotMagnifier: public QwtMagnifier
31 | {
32 | Q_OBJECT
33 |
34 | public:
35 | explicit QwtPlotMagnifier( QwtPlotCanvas * );
36 | virtual ~QwtPlotMagnifier();
37 |
38 | void setAxisEnabled( int axis, bool on );
39 | bool isAxisEnabled( int axis ) const;
40 |
41 | QwtPlotCanvas *canvas();
42 | const QwtPlotCanvas *canvas() const;
43 |
44 | QwtPlot *plot();
45 | const QwtPlot *plot() const;
46 |
47 | protected:
48 | virtual void rescale( double factor );
49 |
50 | private:
51 | class PrivateData;
52 | PrivateData *d_data;
53 | };
54 |
55 | #endif
56 |
--------------------------------------------------------------------------------
/src/trunk/BNC/src/bnchlpdlg.h:
--------------------------------------------------------------------------------
1 | // Part of BNC, a utility for retrieving decoding and
2 | // converting GNSS data streams from NTRIP broadcasters.
3 | //
4 | // Copyright (C) 2007
5 | // German Federal Agency for Cartography and Geodesy (BKG)
6 | // http://www.bkg.bund.de
7 | // Czech Technical University Prague, Department of Geodesy
8 | // http://www.fsv.cvut.cz
9 | //
10 | // Email: euref-ip@bkg.bund.de
11 | //
12 | // This program is free software; you can redistribute it and/or
13 | // modify it under the terms of the GNU General Public License
14 | // as published by the Free Software Foundation, version 2.
15 | //
16 | // This program is distributed in the hope that it will be useful,
17 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
18 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 | // GNU General Public License for more details.
20 | //
21 | // You should have received a copy of the GNU General Public License
22 | // along with this program; if not, write to the Free Software
23 | // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24 |
25 | #ifndef BNCHLPDLG_H
26 | #define BNCHLPDLG_H
27 |
28 | #include
29 |
30 | #include
31 | #include
32 |
33 | class bncHtml;
34 |
35 | class bncHlpDlg : public QDialog {
36 | Q_OBJECT
37 |
38 | public:
39 | bncHlpDlg(QWidget* parent, const QUrl& url);
40 | ~bncHlpDlg();
41 |
42 | signals:
43 |
44 | public slots:
45 | void backwardAvailable(bool);
46 | void forwardAvailable(bool);
47 |
48 | private:
49 | bncHtml* _tb;
50 | QPushButton* _backButton;
51 | QPushButton* _forwButton;
52 | QPushButton* _closeButton;
53 | };
54 |
55 | #endif
56 |
--------------------------------------------------------------------------------
/src/trunk/BNC/src/serial/win_qextserialport.h:
--------------------------------------------------------------------------------
1 | #ifndef _WIN_QEXTSERIALPORT_H_
2 | #define _WIN_QEXTSERIALPORT_H_
3 |
4 | #include "qextserialbase.h"
5 |
6 | /*if all warning messages are turned off, flag portability warnings to be turned off as well*/
7 | #ifdef _TTY_NOWARN_
8 | #define _TTY_NOWARN_PORT_
9 | #endif
10 |
11 | #include
12 |
13 | class Win_QextSerialPort:public QextSerialBase {
14 | public:
15 | Win_QextSerialPort();
16 | Win_QextSerialPort(Win_QextSerialPort const& s);
17 | Win_QextSerialPort(const QString & name);
18 | Win_QextSerialPort(const PortSettings& settings);
19 | Win_QextSerialPort(const QString & name, const PortSettings& settings);
20 | Win_QextSerialPort& operator=(const Win_QextSerialPort& s);
21 | virtual ~Win_QextSerialPort();
22 | virtual bool open(OpenMode mode=0);
23 | virtual void close();
24 | virtual void flush();
25 | virtual qint64 size() const;
26 | virtual void ungetChar(char c);
27 | virtual void setFlowControl(FlowType);
28 | virtual void setParity(ParityType);
29 | virtual void setDataBits(DataBitsType);
30 | virtual void setStopBits(StopBitsType);
31 | virtual void setBaudRate(BaudRateType);
32 | virtual void setDtr(bool set=true);
33 | virtual void setRts(bool set=true);
34 | virtual ulong lineStatus(void);
35 | virtual qint64 bytesAvailable();
36 | virtual void translateError(ulong);
37 | virtual void setTimeout(ulong, ulong);
38 |
39 | protected:
40 | HANDLE Win_Handle;
41 | COMMCONFIG Win_CommConfig;
42 | COMMTIMEOUTS Win_CommTimeouts;
43 |
44 | virtual qint64 readData(char *data, qint64 maxSize);
45 | virtual qint64 writeData(const char *data, qint64 maxSize);
46 | };
47 |
48 | #endif
49 |
--------------------------------------------------------------------------------
/src/trunk/BNC/qwtpolar/qwt_polar_itemdict.h:
--------------------------------------------------------------------------------
1 | /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
2 | * QwtPolar Widget Library
3 | * Copyright (C) 2008 Uwe Rathmann
4 | *
5 | * This library is free software; you can redistribute it and/or
6 | * modify it under the terms of the Qwt License, Version 1.0
7 | *****************************************************************************/
8 |
9 | #ifndef QWT_POLAR_ITEMDICT_H
10 | #define QWT_POLAR_ITEMDICT_H
11 |
12 | /*! \file !*/
13 |
14 | #include "qwt_polar_global.h"
15 | #include "qwt_polar_item.h"
16 | #include
17 |
18 | typedef QList::ConstIterator QwtPolarItemIterator;
19 | /// \var typedef QList< QwtPolarItem *> QwtPolarItemList
20 | /// \brief See QT 4.x assistant documentation for QList
21 | typedef QList QwtPolarItemList;
22 |
23 | /*!
24 | \brief A dictionary for polar plot items
25 |
26 | QwtPolarItemDict organizes polar plot items in increasing z-order.
27 | If autoDelete() is enabled, all attached items will be deleted
28 | in the destructor of the dictionary.
29 |
30 | \sa QwtPolarItem::attach(), QwtPolarItem::detach(), QwtPolarItem::z()
31 | */
32 | class QWT_POLAR_EXPORT QwtPolarItemDict
33 | {
34 | public:
35 | explicit QwtPolarItemDict();
36 | ~QwtPolarItemDict();
37 |
38 | void setAutoDelete( bool );
39 | bool autoDelete() const;
40 |
41 | const QwtPolarItemList& itemList() const;
42 |
43 | void detachItems( int rtti = QwtPolarItem::Rtti_PolarItem,
44 | bool autoDelete = true );
45 |
46 | protected:
47 | void insertItem( QwtPolarItem * );
48 | void removeItem( QwtPolarItem * );
49 |
50 | private:
51 | class PrivateData;
52 | PrivateData *d_data;
53 | };
54 |
55 | #endif
56 |
--------------------------------------------------------------------------------
/src/trunk/BNC/src/bncsp3.h:
--------------------------------------------------------------------------------
1 | #ifndef BNCSP3_H
2 | #define BNCSP3_H
3 |
4 | #include
5 | #include
6 | #include
7 |
8 | #include "bncoutf.h"
9 | #include "bnctime.h"
10 | #include "t_prn.h"
11 |
12 | class bncSP3 : public bncoutf {
13 | public:
14 |
15 | class t_sp3Sat {
16 | public:
17 | t_sp3Sat() {
18 | _xyz.ReSize(3);
19 | _xyz = 0.0;
20 | _clk = 0.0;
21 | _clkValid = false;
22 | }
23 | ~t_sp3Sat() {}
24 | t_prn _prn;
25 | ColumnVector _xyz;
26 | double _clk;
27 | bool _clkValid;
28 | };
29 |
30 | class t_sp3Epoch {
31 | public:
32 | t_sp3Epoch() {}
33 | ~t_sp3Epoch() {
34 | for (int ii = 0; ii < _sp3Sat.size(); ii++) {
35 | delete _sp3Sat[ii];
36 | }
37 | }
38 | bncTime _tt;
39 | QVector _sp3Sat;
40 | };
41 |
42 | bncSP3(const QString& fileName); // input
43 | bncSP3(const QString& sklFileName, const QString& intr, int sampl); // output
44 | virtual ~bncSP3();
45 | t_irc write(int GPSweek, double GPSweeks, const QString& prn,
46 | const ColumnVector& xCoM, double sp3Clk,
47 | const ColumnVector& v, double sp3ClkRate);
48 | const t_sp3Epoch* nextEpoch();
49 | const t_sp3Epoch* currEpoch() const {return _currEpoch;}
50 | const t_sp3Epoch* prevEpoch() const {return _prevEpoch;}
51 |
52 | private:
53 | enum e_inpOut {input, output};
54 |
55 | virtual void writeHeader(const QDateTime& datTim);
56 | virtual void closeFile();
57 |
58 | e_inpOut _inpOut;
59 | bncTime _lastEpoTime;
60 | std::ifstream _stream;
61 | std::string _lastLine;
62 | t_sp3Epoch* _currEpoch;
63 | t_sp3Epoch* _prevEpoch;
64 | };
65 |
66 | #endif
67 |
--------------------------------------------------------------------------------
/src/trunk/GnssCenter/qwt/qwt_plot_dict.h:
--------------------------------------------------------------------------------
1 | /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
2 | * Qwt Widget Library
3 | * Copyright (C) 1997 Josef Wilgen
4 | * Copyright (C) 2002 Uwe Rathmann
5 | *
6 | * This library is free software; you can redistribute it and/or
7 | * modify it under the terms of the Qwt License, Version 1.0
8 | *****************************************************************************/
9 |
10 | /*! \file !*/
11 | #ifndef QWT_PLOT_DICT
12 | #define QWT_PLOT_DICT
13 |
14 | #include "qwt_global.h"
15 | #include "qwt_plot_item.h"
16 | #include
17 |
18 | /// \var typedef QList< QwtPlotItem *> QwtPlotItemList
19 | /// \brief See QT 4.x assistant documentation for QList
20 | typedef QList QwtPlotItemList;
21 | typedef QList::ConstIterator QwtPlotItemIterator;
22 |
23 | /*!
24 | \brief A dictionary for plot items
25 |
26 | QwtPlotDict organizes plot items in increasing z-order.
27 | If autoDelete() is enabled, all attached items will be deleted
28 | in the destructor of the dictionary.
29 |
30 | \sa QwtPlotItem::attach(), QwtPlotItem::detach(), QwtPlotItem::z()
31 | */
32 | class QWT_EXPORT QwtPlotDict
33 | {
34 | public:
35 | explicit QwtPlotDict();
36 | virtual ~QwtPlotDict();
37 |
38 | void setAutoDelete( bool );
39 | bool autoDelete() const;
40 |
41 | const QwtPlotItemList& itemList() const;
42 | QwtPlotItemList itemList( int rtti ) const;
43 |
44 | void detachItems( int rtti = QwtPlotItem::Rtti_PlotItem,
45 | bool autoDelete = true );
46 |
47 | private:
48 | friend class QwtPlotItem;
49 |
50 | void attachItem( QwtPlotItem *, bool );
51 |
52 | class PrivateData;
53 | PrivateData *d_data;
54 | };
55 |
56 | #endif
57 |
--------------------------------------------------------------------------------
/src/trunk/BNC/qwt/qwt_plot_panner.h:
--------------------------------------------------------------------------------
1 | /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
2 | * Qwt Widget Library
3 | * Copyright (C) 1997 Josef Wilgen
4 | * Copyright (C) 2002 Uwe Rathmann
5 | *
6 | * This library is free software; you can redistribute it and/or
7 | * modify it under the terms of the Qwt License, Version 1.0
8 | *****************************************************************************/
9 |
10 | #ifndef QWT_PLOT_PANNER_H
11 | #define QWT_PLOT_PANNER_H 1
12 |
13 | #include "qwt_global.h"
14 | #include "qwt_panner.h"
15 |
16 | class QwtPlot;
17 |
18 | /*!
19 | \brief QwtPlotPanner provides panning of a plot canvas
20 |
21 | QwtPlotPanner is a panner for a plot canvas, that
22 | adjusts the scales of the axes after dropping
23 | the canvas on its new position.
24 |
25 | Together with QwtPlotZoomer and QwtPlotMagnifier powerful ways
26 | of navigating on a QwtPlot widget can be implemented easily.
27 |
28 | \note The axes are not updated, while dragging the canvas
29 | \sa QwtPlotZoomer, QwtPlotMagnifier
30 | */
31 | class QWT_EXPORT QwtPlotPanner: public QwtPanner
32 | {
33 | Q_OBJECT
34 |
35 | public:
36 | explicit QwtPlotPanner( QWidget * );
37 | virtual ~QwtPlotPanner();
38 |
39 | QWidget *canvas();
40 | const QWidget *canvas() const;
41 |
42 | QwtPlot *plot();
43 | const QwtPlot *plot() const;
44 |
45 | void setAxisEnabled( int axis, bool on );
46 | bool isAxisEnabled( int axis ) const;
47 |
48 | protected Q_SLOTS:
49 | virtual void moveCanvas( int dx, int dy );
50 |
51 | protected:
52 | virtual QBitmap contentsMask() const;
53 | virtual QPixmap grab() const;
54 |
55 | private:
56 | class PrivateData;
57 | PrivateData *d_data;
58 | };
59 |
60 | #endif
61 |
--------------------------------------------------------------------------------
/src/trunk/BNC/src/bnctableitem.h:
--------------------------------------------------------------------------------
1 | // Part of BNC, a utility for retrieving decoding and
2 | // converting GNSS data streams from NTRIP broadcasters.
3 | //
4 | // Copyright (C) 2007
5 | // German Federal Agency for Cartography and Geodesy (BKG)
6 | // http://www.bkg.bund.de
7 | // Czech Technical University Prague, Department of Geodesy
8 | // http://www.fsv.cvut.cz
9 | //
10 | // Email: euref-ip@bkg.bund.de
11 | //
12 | // This program is free software; you can redistribute it and/or
13 | // modify it under the terms of the GNU General Public License
14 | // as published by the Free Software Foundation, version 2.
15 | //
16 | // This program is distributed in the hope that it will be useful,
17 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
18 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 | // GNU General Public License for more details.
20 | //
21 | // You should have received a copy of the GNU General Public License
22 | // along with this program; if not, write to the Free Software
23 | // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24 |
25 | #ifndef BNCTABLEITEM_H
26 | #define BNCTABLEITEM_H
27 |
28 | #include
29 | #include
30 | #include
31 |
32 | class bncGetThread;
33 |
34 | class bncTableItem : public QObject, public QTableWidgetItem {
35 | Q_OBJECT
36 |
37 | public:
38 | bncTableItem();
39 | ~bncTableItem();
40 | void setGetThread(bncGetThread* getThread);
41 | bncGetThread* getThread() {return _getThread;}
42 |
43 | signals:
44 |
45 | public slots:
46 | void slotNewBytes(const QByteArray staID, double nbyte);
47 |
48 | private:
49 | double _bytesRead;
50 | QMutex _mutex;
51 | bncGetThread* _getThread;
52 | };
53 |
54 | #endif
55 |
--------------------------------------------------------------------------------
/src/trunk/BNC/qwtpolar/qwt_polar_magnifier.h:
--------------------------------------------------------------------------------
1 | /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
2 | * QwtPolar Widget Library
3 | * Copyright (C) 2008 Uwe Rathmann
4 | *
5 | * This library is free software; you can redistribute it and/or
6 | * modify it under the terms of the Qwt License, Version 1.0
7 | *****************************************************************************/
8 |
9 | #ifndef QWT_POLAR_MAGNIFIER_H
10 | #define QWT_POLAR_MAGNIFIER_H 1
11 |
12 | #include "qwt_polar_global.h"
13 | #include "qwt_magnifier.h"
14 |
15 | class QwtPolarPlot;
16 | class QwtPolarCanvas;
17 |
18 | /*!
19 | \brief QwtPolarMagnifier provides zooming, by magnifying in steps.
20 |
21 | Using QwtPlotMagnifier a plot can be zoomed in/out in steps using
22 | keys, the mouse wheel or moving a mouse button in vertical direction.
23 |
24 | Together with QwtPolarPanner it is possible to implement
25 | an individual navigation of the plot canvas.
26 |
27 | \sa QwtPolarPanner, QwtPolarPlot, QwtPolarCanvas
28 | */
29 |
30 | class QWT_POLAR_EXPORT QwtPolarMagnifier: public QwtMagnifier
31 | {
32 | Q_OBJECT
33 |
34 | public:
35 | explicit QwtPolarMagnifier( QwtPolarCanvas * );
36 | virtual ~QwtPolarMagnifier();
37 |
38 | void setUnzoomKey( int key, int modifiers );
39 | void getUnzoomKey( int &key, int &modifiers ) const;
40 |
41 | QwtPolarPlot *plot();
42 | const QwtPolarPlot *plot() const;
43 |
44 | QwtPolarCanvas *canvas();
45 | const QwtPolarCanvas *canvas() const;
46 |
47 | protected:
48 | virtual void rescale( double factor );
49 | void unzoom();
50 |
51 | virtual void widgetKeyPressEvent( QKeyEvent * );
52 |
53 | private:
54 | class PrivateData;
55 | PrivateData *d_data;
56 | };
57 |
58 | #endif
59 |
--------------------------------------------------------------------------------
/src/trunk/GnssCenter/thrift/bidi_java/client/MessageSender.java:
--------------------------------------------------------------------------------
1 | package com.joelpm.bidiMessages.client;
2 |
3 | import java.util.concurrent.BlockingQueue;
4 | import java.util.concurrent.LinkedBlockingQueue;
5 |
6 | import org.apache.thrift.TException;
7 | import org.apache.thrift.protocol.TProtocol;
8 | import com.joelpm.bidiMessages.generated.Message;
9 | import com.joelpm.bidiMessages.generated.MessageService;
10 |
11 | /**
12 | * The class responsible for sending messages to the server.
13 | *
14 | * @author Joel Meyer
15 | */
16 | public class MessageSender extends ConnectionRequiredRunnable {
17 | private final MessageService.Client client;
18 | private final BlockingQueue msgSendQueue;
19 |
20 | public MessageSender(
21 | TProtocol protocol,
22 | ConnectionStatusMonitor connectionMonitor) {
23 | super(connectionMonitor, "Message Sender");
24 | this.client = new MessageService.Client(protocol);
25 | this.msgSendQueue = new LinkedBlockingQueue();
26 | }
27 |
28 | public void send(Message msg) {
29 | msgSendQueue.add(msg);
30 | }
31 |
32 | @Override
33 | public void run() {
34 | connectWait();
35 | while (true) {
36 | try {
37 | Message msg = msgSendQueue.take();
38 | try {
39 | client.sendMessage(msg);
40 | } catch (TException e) {
41 | // The message isn't lost, but it could end up being sent out of
42 | // order - not ideal.
43 | msgSendQueue.add(msg);
44 | disconnected();
45 | }
46 | } catch (InterruptedException e) {
47 | // Thread will be interrupted if connection is lost, we should wait
48 | // for reconnection if that happens.
49 | connectWait();
50 | }
51 | }
52 | }
53 | }
54 |
55 |
--------------------------------------------------------------------------------
/src/trunk/BNS/newmat/controlw.h:
--------------------------------------------------------------------------------
1 | /// \ingroup newmat
2 | ///@{
3 |
4 | /// \file controlw.h
5 | /// Control word class.
6 | /// Manipulate bits used for setting options.
7 |
8 |
9 | #ifndef CONTROL_WORD_LIB
10 | #define CONTROL_WORD_LIB 0
11 |
12 | /// Organise an int as a series of bits to set options.
13 | /// \internal
14 | class ControlWord
15 | {
16 | protected:
17 | int cw; // the control word
18 | public:
19 | ControlWord() : cw(0) {} // do nothing
20 | ControlWord(int i) : cw(i) {} // load an integer
21 |
22 | // select specific bits (for testing at least one set)
23 | ControlWord operator*(ControlWord i) const
24 | { return ControlWord(cw & i.cw); }
25 | void operator*=(ControlWord i) { cw &= i.cw; }
26 |
27 | // set bits
28 | ControlWord operator+(ControlWord i) const
29 | { return ControlWord(cw | i.cw); }
30 | void operator+=(ControlWord i) { cw |= i.cw; }
31 |
32 | // reset bits
33 | ControlWord operator-(ControlWord i) const
34 | { return ControlWord(cw - (cw & i.cw)); }
35 | void operator-=(ControlWord i) { cw -= (cw & i.cw); }
36 |
37 | // check if all of selected bits set or reset
38 | bool operator>=(ControlWord i) const { return (cw & i.cw) == i.cw; }
39 | bool operator<=(ControlWord i) const { return (cw & i.cw) == cw; }
40 |
41 | // flip selected bits
42 | ControlWord operator^(ControlWord i) const
43 | { return ControlWord(cw ^ i.cw); }
44 | ControlWord operator~() const { return ControlWord(~cw); }
45 |
46 | // convert to integer
47 | int operator+() const { return cw; }
48 | int operator!() const { return cw==0; }
49 | FREE_CHECK(ControlWord)
50 | };
51 |
52 |
53 | #endif
54 |
55 | ///@}
56 |
57 |
--------------------------------------------------------------------------------
/src/trunk/GnssCenter/qwt/qwt_plot_panner.h:
--------------------------------------------------------------------------------
1 | /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
2 | * Qwt Widget Library
3 | * Copyright (C) 1997 Josef Wilgen
4 | * Copyright (C) 2002 Uwe Rathmann
5 | *
6 | * This library is free software; you can redistribute it and/or
7 | * modify it under the terms of the Qwt License, Version 1.0
8 | *****************************************************************************/
9 |
10 | #ifndef QWT_PLOT_PANNER_H
11 | #define QWT_PLOT_PANNER_H 1
12 |
13 | #include "qwt_global.h"
14 | #include "qwt_panner.h"
15 |
16 | class QwtPlotCanvas;
17 | class QwtPlot;
18 |
19 | /*!
20 | \brief QwtPlotPanner provides panning of a plot canvas
21 |
22 | QwtPlotPanner is a panner for a QwtPlotCanvas, that
23 | adjusts the scales of the axes after dropping
24 | the canvas on its new position.
25 |
26 | Together with QwtPlotZoomer and QwtPlotMagnifier powerful ways
27 | of navigating on a QwtPlot widget can be implemented easily.
28 |
29 | \note The axes are not updated, while dragging the canvas
30 | \sa QwtPlotZoomer, QwtPlotMagnifier
31 | */
32 | class QWT_EXPORT QwtPlotPanner: public QwtPanner
33 | {
34 | Q_OBJECT
35 |
36 | public:
37 | explicit QwtPlotPanner( QwtPlotCanvas * );
38 | virtual ~QwtPlotPanner();
39 |
40 | QwtPlotCanvas *canvas();
41 | const QwtPlotCanvas *canvas() const;
42 |
43 | QwtPlot *plot();
44 | const QwtPlot *plot() const;
45 |
46 | void setAxisEnabled( int axis, bool on );
47 | bool isAxisEnabled( int axis ) const;
48 |
49 | protected Q_SLOTS:
50 | virtual void moveCanvas( int dx, int dy );
51 |
52 | protected:
53 | virtual QBitmap contentsMask() const;
54 |
55 | private:
56 | class PrivateData;
57 | PrivateData *d_data;
58 | };
59 |
60 | #endif
61 |
--------------------------------------------------------------------------------
/src/trunk/BNC/src/bncfigurelate.h:
--------------------------------------------------------------------------------
1 | // Part of BNC, a utility for retrieving decoding and
2 | // converting GNSS data streams from NTRIP broadcasters.
3 | //
4 | // Copyright (C) 2007
5 | // German Federal Agency for Cartography and Geodesy (BKG)
6 | // http://www.bkg.bund.de
7 | // Czech Technical University Prague, Department of Geodesy
8 | // http://www.fsv.cvut.cz
9 | //
10 | // Email: euref-ip@bkg.bund.de
11 | //
12 | // This program is free software; you can redistribute it and/or
13 | // modify it under the terms of the GNU General Public License
14 | // as published by the Free Software Foundation, version 2.
15 | //
16 | // This program is distributed in the hope that it will be useful,
17 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
18 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 | // GNU General Public License for more details.
20 | //
21 | // You should have received a copy of the GNU General Public License
22 | // along with this program; if not, write to the Free Software
23 | // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24 |
25 | #ifndef BNCFIGURELATE_H
26 | #define BNCFIGURELATE_H
27 |
28 | #include
29 | #include
30 | #include
31 | #include
32 |
33 | class bncFigureLate : public QWidget {
34 | Q_OBJECT
35 | public:
36 | bncFigureLate(QWidget *parent);
37 | ~bncFigureLate();
38 | void updateMountPoints();
39 | public slots:
40 | void slotNewLatency(const QByteArray staID, double clate);
41 | protected:
42 | void paintEvent(QPaintEvent *event);
43 | private slots:
44 | void slotNextAnimationFrame();
45 | private:
46 | QMap _latency;
47 | QMutex _mutex;
48 | int _ran[3][1001];
49 | };
50 |
51 | #endif
52 |
--------------------------------------------------------------------------------
/src/trunk/GnssCenter/thrift/bidi_java/server/Server.java:
--------------------------------------------------------------------------------
1 | package com.joelpm.bidiMessages.server;
2 |
3 | import org.apache.log4j.Logger;
4 |
5 | import org.apache.thrift.TProcessor;
6 | import org.apache.thrift.TProcessorFactory;
7 | import org.apache.thrift.server.TServer;
8 | import org.apache.thrift.server.TThreadPoolServer;
9 | import org.apache.thrift.transport.TServerSocket;
10 | import org.apache.thrift.transport.TServerTransport;
11 | import org.apache.thrift.transport.TTransport;
12 | import com.joelpm.bidiMessages.generated.MessageService;
13 |
14 | /**
15 | * A simple server that accepts messages from clients and broadcasts
16 | * them out to all connected clients.
17 | *
18 | * @author Joel Meyer
19 | */
20 | public class Server {
21 | private static final Logger LOGGER = Logger.getLogger(Server.class);
22 |
23 | public static void main(String[] args) throws Exception {
24 | final int port = Integer.parseInt(args[0]);
25 |
26 | final MessageDistributor messageDistributor = new MessageDistributor();
27 |
28 | new Thread(messageDistributor).start();
29 |
30 | // Using our own TProcessorFactory gives us an opportunity to get
31 | // access to the transport right after the client connection is
32 | // accepted.
33 | TProcessorFactory processorFactory = new TProcessorFactory(null) {
34 | @Override
35 | public TProcessor getProcessor(TTransport trans) {
36 | messageDistributor.addClient(new MessageServiceClient(trans));
37 | return new MessageService.Processor(messageDistributor);
38 | }
39 | };
40 |
41 | TServerTransport serverTransport = new TServerSocket(port);
42 | TServer server = new TThreadPoolServer(processorFactory, serverTransport);
43 | LOGGER.info("Server started");
44 | server.serve();
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/src/trunk/BNC/qwt/qwt_plot_svgitem.h:
--------------------------------------------------------------------------------
1 | /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
2 | * Qwt Widget Library
3 | * Copyright (C) 1997 Josef Wilgen
4 | * Copyright (C) 2002 Uwe Rathmann
5 | *
6 | * This library is free software; you can redistribute it and/or
7 | * modify it under the terms of the Qwt License, Version 1.0
8 | *****************************************************************************/
9 |
10 | #ifndef QWT_PLOT_SVGITEM_H
11 | #define QWT_PLOT_SVGITEM_H
12 |
13 | #include "qwt_global.h"
14 | #include "qwt_plot_item.h"
15 | #include
16 |
17 | class QSvgRenderer;
18 | class QByteArray;
19 |
20 | /*!
21 | \brief A plot item, which displays
22 | data in Scalable Vector Graphics (SVG) format.
23 |
24 | SVG images are often used to display maps
25 | */
26 |
27 | class QWT_EXPORT QwtPlotSvgItem: public QwtPlotItem
28 | {
29 | public:
30 | explicit QwtPlotSvgItem( const QString& title = QString::null );
31 | explicit QwtPlotSvgItem( const QwtText& title );
32 | virtual ~QwtPlotSvgItem();
33 |
34 | bool loadFile( const QRectF&, const QString &fileName );
35 | bool loadData( const QRectF&, const QByteArray & );
36 |
37 | virtual QRectF boundingRect() const;
38 |
39 | virtual void draw( QPainter *p,
40 | const QwtScaleMap &xMap, const QwtScaleMap &yMap,
41 | const QRectF &rect ) const;
42 |
43 | virtual int rtti() const;
44 |
45 | protected:
46 | const QSvgRenderer &renderer() const;
47 | QSvgRenderer &renderer();
48 |
49 | void render( QPainter *painter,
50 | const QRectF &viewBox, const QRectF &rect ) const;
51 |
52 | QRectF viewBox( const QRectF &area ) const;
53 |
54 | private:
55 | void init();
56 |
57 | class PrivateData;
58 | PrivateData *d_data;
59 | };
60 |
61 | #endif
62 |
--------------------------------------------------------------------------------
/src/trunk/BNC/newmat/controlw.h:
--------------------------------------------------------------------------------
1 | /// \ingroup newmat
2 | ///@{
3 |
4 | /// \file controlw.h
5 | /// Control word class.
6 | /// Manipulate bits used for setting options.
7 |
8 |
9 | #ifndef CONTROL_WORD_LIB
10 | #define CONTROL_WORD_LIB 0
11 |
12 | /// Organise an int as a series of bits to set options.
13 | /// \internal
14 | class ControlWord
15 | {
16 | protected:
17 | int cw; // the control word
18 | public:
19 | ControlWord() : cw(0) {} // do nothing
20 | ControlWord(int i) : cw(i) {} // load an integer
21 |
22 | // select specific bits (for testing at least one set)
23 | ControlWord operator*(ControlWord i) const
24 | { return ControlWord(cw & i.cw); }
25 | void operator*=(ControlWord i) { cw &= i.cw; }
26 |
27 | // set bits
28 | ControlWord operator+(ControlWord i) const
29 | { return ControlWord(cw | i.cw); }
30 | void operator+=(ControlWord i) { cw |= i.cw; }
31 |
32 | // reset bits
33 | ControlWord operator-(ControlWord i) const
34 | { return ControlWord(cw - (cw & i.cw)); }
35 | void operator-=(ControlWord i) { cw -= (cw & i.cw); }
36 |
37 | // check if all of selected bits set or reset
38 | bool operator>=(ControlWord i) const { return (cw & i.cw) == i.cw; }
39 | bool operator<=(ControlWord i) const { return (cw & i.cw) == cw; }
40 |
41 | // flip selected bits
42 | ControlWord operator^(ControlWord i) const
43 | { return ControlWord(cw ^ i.cw); }
44 | ControlWord operator~() const { return ControlWord(~cw); }
45 |
46 | // convert to integer
47 | int operator+() const { return cw; }
48 | int operator!() const { return cw==0; }
49 | FREE_CHECK(ControlWord)
50 | };
51 |
52 |
53 | #endif
54 |
55 | ///@}
56 |
57 |
--------------------------------------------------------------------------------
/src/trunk/BNC/src/serial/posix_qextserialport.h:
--------------------------------------------------------------------------------
1 |
2 | #ifndef _POSIX_QEXTSERIALPORT_H_
3 | #define _POSIX_QEXTSERIALPORT_H_
4 |
5 | #include
6 | #include
7 | #include
8 | #include
9 | #include
10 | #include
11 | #include
12 | #include "qextserialbase.h"
13 |
14 | class Posix_QextSerialPort:public QextSerialBase {
15 | public:
16 | Posix_QextSerialPort();
17 | Posix_QextSerialPort(const Posix_QextSerialPort& s);
18 | Posix_QextSerialPort(const QString & name);
19 | Posix_QextSerialPort(const PortSettings& settings);
20 | Posix_QextSerialPort(const QString & name, const PortSettings& settings);
21 | Posix_QextSerialPort& operator=(const Posix_QextSerialPort& s);
22 | virtual ~Posix_QextSerialPort();
23 |
24 | virtual void setBaudRate(BaudRateType);
25 | virtual void setDataBits(DataBitsType);
26 | virtual void setParity(ParityType);
27 | virtual void setStopBits(StopBitsType);
28 | virtual void setFlowControl(FlowType);
29 | virtual void setTimeout(ulong, ulong);
30 |
31 | virtual bool open(OpenMode mode=0);
32 | virtual void close();
33 | virtual void flush();
34 |
35 | virtual qint64 size() const;
36 | virtual qint64 bytesAvailable();
37 |
38 | virtual void ungetChar(char c);
39 |
40 | virtual void translateError(ulong error);
41 |
42 | virtual void setDtr(bool set=true);
43 | virtual void setRts(bool set=true);
44 | virtual ulong lineStatus();
45 |
46 | protected:
47 | QFile* Posix_File;
48 | struct termios Posix_CommConfig;
49 | struct timeval Posix_Timeout;
50 | struct timeval Posix_Copy_Timeout;
51 |
52 | virtual qint64 readData(char * data, qint64 maxSize);
53 | virtual qint64 writeData(const char * data, qint64 maxSize);
54 | };
55 |
56 | #endif
57 |
--------------------------------------------------------------------------------
/src/trunk/GnssCenter/qwt/qwt_legend_itemmanager.h:
--------------------------------------------------------------------------------
1 | /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
2 | * Qwt Widget Library
3 | * Copyright (C) 1997 Josef Wilgen
4 | * Copyright (C) 2002 Uwe Rathmann
5 | *
6 | * This library is free software; you can redistribute it and/or
7 | * modify it under the terms of the Qwt License, Version 1.0
8 | *****************************************************************************/
9 |
10 | #ifndef QWT_LEGEND_ITEM_MANAGER_H
11 | #define QWT_LEGEND_ITEM_MANAGER_H
12 |
13 | #include "qwt_global.h"
14 |
15 | class QwtLegend;
16 | class QWidget;
17 | class QRectF;
18 | class QPainter;
19 |
20 | /*!
21 | \brief Abstract API to bind plot items to the legend
22 | */
23 |
24 | class QWT_EXPORT QwtLegendItemManager
25 | {
26 | public:
27 | //! Constructor
28 | QwtLegendItemManager()
29 | {
30 | }
31 |
32 | //! Destructor
33 | virtual ~QwtLegendItemManager()
34 | {
35 | }
36 |
37 | /*!
38 | Update the widget that represents the item on the legend
39 | \param legend Legend
40 | \sa legendItem()
41 | */
42 | virtual void updateLegend( QwtLegend *legend ) const = 0;
43 |
44 | /*!
45 | Allocate the widget that represents the item on the legend
46 | \return Allocated widget
47 | \sa updateLegend() QwtLegend()
48 | */
49 |
50 | virtual QWidget *legendItem() const = 0;
51 |
52 | /*!
53 | QwtLegendItem can display an icon-identifier followed
54 | by a text. The icon helps to identify a plot item on
55 | the plot canvas and depends on the type of information,
56 | that is displayed.
57 |
58 | The default implementation paints nothing.
59 | */
60 | virtual void drawLegendIdentifier( QPainter *, const QRectF & ) const
61 | {
62 | }
63 | };
64 |
65 | #endif
66 |
67 |
--------------------------------------------------------------------------------
/src/trunk/BNC/qwtpolar/qwt_polar.h:
--------------------------------------------------------------------------------
1 | /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
2 | * QwtPolar Widget Library
3 | * Copyright (C) 2008 Uwe Rathmann
4 | *
5 | * This library is free software; you can redistribute it and/or
6 | * modify it under the terms of the Qwt License, Version 1.0
7 | *****************************************************************************/
8 |
9 | #ifndef QWT_POLAR_H
10 | #define QWT_POLAR_H 1
11 |
12 | #include "qwt_polar_global.h"
13 |
14 | namespace QwtPolar
15 | {
16 | //! Unit of an angle
17 | enum AngleUnit
18 | {
19 | //! 0.0 -> 2_M_PI
20 | Radians,
21 |
22 | //! 0.0 -> 360.0
23 | Degrees,
24 |
25 | //! 0.0 - 400.0
26 | Gradians,
27 |
28 | //! 0.0 - 1.0
29 | Turns
30 | };
31 |
32 | //! An enum, that identifies the type of a coordinate
33 | enum Coordinate
34 | {
35 | //! Azimuth
36 | Azimuth,
37 |
38 | //! Radius
39 | Radius
40 | };
41 |
42 | /*!
43 | Indices used to identify an axis.
44 | \sa Scale
45 | */
46 | enum Axis
47 | {
48 | //! Azimuth axis
49 | AxisAzimuth,
50 |
51 | //! Left axis
52 | AxisLeft,
53 |
54 | //! Right axis
55 | AxisRight,
56 |
57 | //! Top axis
58 | AxisTop,
59 |
60 | //! Bottom axis
61 | AxisBottom,
62 |
63 | //! Number of available axis
64 | AxesCount
65 | };
66 |
67 | /*!
68 | Indices used to identify a scale.
69 | \sa Axis
70 | */
71 | enum Scale
72 | {
73 | //! Azimuth scale
74 | ScaleAzimuth = Azimuth,
75 |
76 | //! Radial scale
77 | ScaleRadius = Radius,
78 |
79 | //! Number of scales
80 | ScaleCount
81 | };
82 | }
83 |
84 | #endif
85 |
--------------------------------------------------------------------------------
/src/trunk/GnssCenter/thrift/rtnet_sdo_example/ConnectionStatusMonitor.h:
--------------------------------------------------------------------------------
1 | #ifndef RTNET_SDO_EXAMPLE_CONNECTIONSTATUSMONITOR_H
2 | #define RTNET_SDO_EXAMPLE_CONNECTIONSTATUSMONITOR_H
3 |
4 | #include
5 | #include
6 |
7 | #include
8 | //#include // needs newer version of g++ using C++0x
9 | #include
10 |
11 | class ConnectionRequiredRunnable;
12 |
13 | class ConnectionStatusMonitor
14 | {
15 | public:
16 | ConnectionStatusMonitor(boost::shared_ptr& transport,
17 | boost::shared_ptr& timeMgr);
18 | ~ConnectionStatusMonitor();
19 |
20 | void addListener(boost::shared_ptr listener);
21 | void disconnected(const ConnectionRequiredRunnable* noticer);
22 | void tryOpen();
23 | void stop();
24 | bool connected();
25 |
26 | private:
27 | class Reconnect : public apache::thrift::concurrency::Runnable
28 | {
29 | public:
30 | Reconnect(ConnectionStatusMonitor* parent) : parent_(parent) {}
31 | void run() {
32 | parent_->tryOpen();
33 | }
34 | private:
35 | ConnectionStatusMonitor* parent_;
36 | };
37 | std::set > listeners_;
38 | boost::shared_ptr transport_;
39 | boost::shared_ptr timeMgr_;
40 | boost::shared_ptr thFactory_;
41 | //std::atomic connected_;
42 | //boost::atomic connected_; // need a higher version of boost or gcc than is available on kurenai
43 | boost::detail::atomic_count connected_; // need a higher version of boost or gcc than is available on kurenai
44 | };
45 |
46 | #endif // RTNET_SDO_EXAMPLE_CONNECTIONSTATUSMONITOR_H
47 |
--------------------------------------------------------------------------------
/src/trunk/GnssCenter/qwt/qwt_plot_svgitem.h:
--------------------------------------------------------------------------------
1 | /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
2 | * Qwt Widget Library
3 | * Copyright (C) 1997 Josef Wilgen
4 | * Copyright (C) 2002 Uwe Rathmann
5 | *
6 | * This library is free software; you can redistribute it and/or
7 | * modify it under the terms of the Qwt License, Version 1.0
8 | *****************************************************************************/
9 |
10 | #ifndef QWT_PLOT_SVGITEM_H
11 | #define QWT_PLOT_SVGITEM_H
12 |
13 | #include "qwt_global.h"
14 | #include "qwt_plot_item.h"
15 | #include
16 |
17 | class QSvgRenderer;
18 | class QByteArray;
19 |
20 | /*!
21 | \brief A plot item, which displays
22 | data in Scalable Vector Graphics (SVG) format.
23 |
24 | SVG images are often used to display maps
25 | */
26 |
27 | class QWT_EXPORT QwtPlotSvgItem: public QwtPlotItem
28 | {
29 | public:
30 | explicit QwtPlotSvgItem( const QString& title = QString::null );
31 | explicit QwtPlotSvgItem( const QwtText& title );
32 | virtual ~QwtPlotSvgItem();
33 |
34 | bool loadFile( const QRectF&, const QString &fileName );
35 | bool loadData( const QRectF&, const QByteArray & );
36 |
37 | virtual QRectF boundingRect() const;
38 |
39 | virtual void draw( QPainter *p,
40 | const QwtScaleMap &xMap, const QwtScaleMap &yMap,
41 | const QRectF &rect ) const;
42 |
43 | virtual int rtti() const;
44 |
45 | protected:
46 | const QSvgRenderer &renderer() const;
47 | QSvgRenderer &renderer();
48 |
49 | void render( QPainter *painter,
50 | const QRectF &viewBox, const QRectF &rect ) const;
51 |
52 | QRectF viewBox( const QRectF &area ) const;
53 |
54 | private:
55 | void init();
56 |
57 | class PrivateData;
58 | PrivateData *d_data;
59 | };
60 |
61 | #endif
62 |
--------------------------------------------------------------------------------
/src/trunk/BNC/qwt/qwt_plot_dict.h:
--------------------------------------------------------------------------------
1 | /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
2 | * Qwt Widget Library
3 | * Copyright (C) 1997 Josef Wilgen
4 | * Copyright (C) 2002 Uwe Rathmann
5 | *
6 | * This library is free software; you can redistribute it and/or
7 | * modify it under the terms of the Qwt License, Version 1.0
8 | *****************************************************************************/
9 |
10 | /*! \file !*/
11 | #ifndef QWT_PLOT_DICT
12 | #define QWT_PLOT_DICT
13 |
14 | #include "qwt_global.h"
15 | #include "qwt_plot_item.h"
16 | #include
17 |
18 | /// \var typedef QList< QwtPlotItem *> QwtPlotItemList
19 | /// \brief See QT 4.x assistant documentation for QList
20 | typedef QList QwtPlotItemList;
21 | typedef QList::ConstIterator QwtPlotItemIterator;
22 |
23 | /*!
24 | \brief A dictionary for plot items
25 |
26 | QwtPlotDict organizes plot items in increasing z-order.
27 | If autoDelete() is enabled, all attached items will be deleted
28 | in the destructor of the dictionary.
29 | QwtPlotDict can be used to get access to all QwtPlotItem items - or all
30 | items of a specific type - that are currently on the plot.
31 |
32 | \sa QwtPlotItem::attach(), QwtPlotItem::detach(), QwtPlotItem::z()
33 | */
34 | class QWT_EXPORT QwtPlotDict
35 | {
36 | public:
37 | explicit QwtPlotDict();
38 | virtual ~QwtPlotDict();
39 |
40 | void setAutoDelete( bool );
41 | bool autoDelete() const;
42 |
43 | const QwtPlotItemList& itemList() const;
44 | QwtPlotItemList itemList( int rtti ) const;
45 |
46 | void detachItems( int rtti = QwtPlotItem::Rtti_PlotItem,
47 | bool autoDelete = true );
48 |
49 | protected:
50 | void insertItem( QwtPlotItem * );
51 | void removeItem( QwtPlotItem * );
52 |
53 | private:
54 | class PrivateData;
55 | PrivateData *d_data;
56 | };
57 |
58 | #endif
59 |
--------------------------------------------------------------------------------
/src/trunk/GnssCenter/thrift/rtnet_sdo_example/Client.cpp:
--------------------------------------------------------------------------------
1 | #include "Client.h"
2 | #include "ConnectionStatusMonitor.h"
3 | #include "RtnetDataHandler.h"
4 | #include "RtnetDataListener.h"
5 | #include "RtnetDataRequest.h"
6 |
7 | #include
8 | #include
9 |
10 | #include
11 |
12 | using boost::shared_ptr;
13 |
14 | using namespace apache::thrift;
15 | using namespace apache::thrift::protocol;
16 | using namespace apache::thrift::transport;
17 | using namespace apache::thrift::concurrency;
18 |
19 | Client::Client(const std::string& server,
20 | int16_t port, boost::shared_ptr& timeMgr,
21 | boost::shared_ptr dataHandler)
22 | : connectionMonitor_(),
23 | transport_(),
24 | protocol_(),
25 | sender_(),
26 | senderThread_(),
27 | receiver_(),
28 | receiverThread_()
29 | {
30 | transport_ = boost::shared_ptr(new TSocket(server, port));
31 | protocol_ = boost::shared_ptr(new TBinaryProtocol(transport_));
32 |
33 | connectionMonitor_ = boost::shared_ptr(new ConnectionStatusMonitor(transport_,timeMgr));
34 |
35 | sender_ = boost::shared_ptr(new RtnetDataRequest(protocol_, connectionMonitor_));
36 | connectionMonitor_->addListener(sender_);
37 | senderThread_ = timeMgr->threadFactory()->newThread(sender_);
38 | senderThread_->start();
39 | receiver_ = boost::shared_ptr(new RtnetDataListener(protocol_, connectionMonitor_, dataHandler));
40 | connectionMonitor_->addListener(receiver_);
41 | receiverThread_ = timeMgr->threadFactory()->newThread(receiver_);
42 | receiverThread_->start();
43 |
44 | connectionMonitor_->tryOpen();
45 | }
46 |
47 | Client::~Client() {
48 | }
49 |
50 | void
51 | Client::stop() {
52 | connectionMonitor_->stop();
53 | }
54 |
55 |
--------------------------------------------------------------------------------
/src/trunk/BNC/src/bncrawfile.h:
--------------------------------------------------------------------------------
1 | // Part of BNC, a utility for retrieving decoding and
2 | // converting GNSS data streams from NTRIP broadcasters.
3 | //
4 | // Copyright (C) 2007
5 | // German Federal Agency for Cartography and Geodesy (BKG)
6 | // http://www.bkg.bund.de
7 | // Czech Technical University Prague, Department of Geodesy
8 | // http://www.fsv.cvut.cz
9 | //
10 | // Email: euref-ip@bkg.bund.de
11 | //
12 | // This program is free software; you can redistribute it and/or
13 | // modify it under the terms of the GNU General Public License
14 | // as published by the Free Software Foundation, version 2.
15 | //
16 | // This program is distributed in the hope that it will be useful,
17 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
18 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 | // GNU General Public License for more details.
20 | //
21 | // You should have received a copy of the GNU General Public License
22 | // along with this program; if not, write to the Free Software
23 | // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24 |
25 | #ifndef BNCRAWFILE_H
26 | #define BNCRAWFILE_H
27 |
28 | #include
29 | #include
30 |
31 | #include "bnccaster.h"
32 |
33 | class bncRawFile {
34 | public:
35 |
36 | enum inpOutFlag {input, output};
37 |
38 | bncRawFile(const QByteArray& fileName, const QByteArray& staID,
39 | inpOutFlag ioflg);
40 |
41 | ~bncRawFile();
42 | QByteArray format() const {return _format;}
43 | QByteArray staID() const {return _staID;}
44 | QByteArray readChunk();
45 | void writeRawData(const QByteArray& data, const QByteArray& staID,
46 | const QByteArray& format);
47 | private:
48 | QString _fileName;
49 | QString _currentFileName;
50 | QByteArray _format;
51 | QByteArray _staID;
52 | QFile* _inpFile;
53 | QFile* _outFile;
54 | int _version;
55 | };
56 | #endif
57 |
--------------------------------------------------------------------------------
/src/trunk/BNC/qwt/qwt_math.cpp:
--------------------------------------------------------------------------------
1 | /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
2 | * Qwt Widget Library
3 | * Copyright (C) 1997 Josef Wilgen
4 | * Copyright (C) 2002 Uwe Rathmann
5 | *
6 | * This library is free software; you can redistribute it and/or
7 | * modify it under the terms of the Qwt License, Version 1.0
8 | *****************************************************************************/
9 |
10 | #include "qwt_math.h"
11 |
12 | /*!
13 | \brief Find the smallest value in an array
14 | \param array Pointer to an array
15 | \param size Array size
16 | */
17 | double qwtGetMin( const double *array, int size )
18 | {
19 | if ( size <= 0 )
20 | return 0.0;
21 |
22 | double rv = array[0];
23 | for ( int i = 1; i < size; i++ )
24 | rv = qMin( rv, array[i] );
25 |
26 | return rv;
27 | }
28 |
29 |
30 | /*!
31 | \brief Find the largest value in an array
32 | \param array Pointer to an array
33 | \param size Array size
34 | */
35 | double qwtGetMax( const double *array, int size )
36 | {
37 | if ( size <= 0 )
38 | return 0.0;
39 |
40 | double rv = array[0];
41 | for ( int i = 1; i < size; i++ )
42 | rv = qMax( rv, array[i] );
43 |
44 | return rv;
45 | }
46 |
47 | /*!
48 | \brief Normalize an angle to be int the range [0.0, 2 * PI[
49 | \param radians Angle in radians
50 | \return Normalized angle in radians
51 | */
52 | double qwtNormalizeRadians( double radians )
53 | {
54 | double a = ::fmod( radians, 2.0 * M_PI );
55 | if ( a < 0.0 )
56 | a += 2.0 * M_PI;
57 |
58 | return a;
59 |
60 | }
61 |
62 | /*!
63 | \brief Normalize an angle to be int the range [0.0, 360.0[
64 | \param radians Angle in degrees
65 | \return Normalized angle in degrees
66 | */
67 | double qwtNormalizeDegrees( double degrees )
68 | {
69 | double a = ::fmod( degrees, 360.0 );
70 | if ( a < 0.0 )
71 | a += 360.0;
72 |
73 | return a;
74 | }
75 |
--------------------------------------------------------------------------------
/src/trunk/GnssCenter/thrift/rtnet_sdo_example/RtnetDataListener.cpp:
--------------------------------------------------------------------------------
1 | #include "RtnetDataListener.h"
2 |
3 | #include
4 |
5 | using namespace apache::thrift;
6 | using namespace apache::thrift::protocol;
7 | using namespace com::gpssolutions::rtnet;
8 |
9 | RtnetDataListener::RtnetDataListener(boost::shared_ptr& protocol,
10 | boost::shared_ptr& connectionMonitor,
11 | boost::shared_ptr dataHandler)
12 | : ConnectionRequiredRunnable(connectionMonitor,"StreamDataRequestService"),
13 | dataHandler_(dataHandler),
14 | protocol_(protocol),
15 | processor_()
16 | {
17 | processor_ = boost::shared_ptr(new RtnetDataProcessor(dataHandler_));
18 | }
19 |
20 | RtnetDataListener::~RtnetDataListener() {
21 | }
22 |
23 | void
24 | RtnetDataListener::run() {
25 | printf("Starting RtnetDataListener thread.\n");
26 | while (!stop_) {
27 | printf("RtnetDataListener::waiting for connection\n");
28 | connectWait();
29 | printf("RtnetDataListener::Connected to rtnet\n");
30 | if (stop_) {
31 | printf("Quitting RtnetDataListener thread (stop is true)\n");
32 | return;
33 | }
34 | try {
35 | while (processor_->process(protocol_,protocol_,0)) {}
36 | } catch(TException& e) {
37 | fprintf(stderr,"Caught an exception generated by Thrift in RtnetDataListener: %s\n",e.what());
38 | } catch(...) {
39 | fprintf(stderr,"Unknown exception generated by Thrift in RtnetDataListener\n");
40 | }
41 | if (!stop_)
42 | disconnected();
43 | }
44 | printf("Quitting RtnetDataListener thread\n");
45 | }
46 |
47 | void
48 | RtnetDataListener::stop(){
49 | printf("RtnetDataListener::stop()\n");
50 | protocol_->getTransport()->close();
51 | ConnectionRequiredRunnable::stop();
52 | }
53 |
54 |
--------------------------------------------------------------------------------
/src/trunk/GnssCenter/monitor/monitor.h:
--------------------------------------------------------------------------------
1 | #ifndef GnssCenter_MONITOR_H
2 | #define GnssCenter_MONITOR_H
3 |
4 | #include
5 | #include
6 | #include "plugininterface.h"
7 | #include "const.h"
8 |
9 | namespace GnssCenter {
10 | class t_worldPlot;
11 | class t_thriftClient;
12 | class t_thriftResult;
13 | class t_thriftSatellite;
14 | }
15 |
16 | namespace GnssCenter {
17 |
18 | class t_monitor : public QMainWindow {
19 | Q_OBJECT
20 | public:
21 | t_monitor();
22 | ~t_monitor();
23 |
24 | void putThriftResults(std::vector* results);
25 | void putThriftSatellites(std::vector* satellites);
26 |
27 | private slots:
28 | void slotConfig();
29 | void slotStartThrift();
30 | void slotStopThrift();
31 | void slotThriftFinished();
32 | void slotPlot();
33 | void slotMessage(QByteArray msg);
34 |
35 | private:
36 | void readSettings();
37 | void setTitle();
38 | void enableActions();
39 | void plotResults();
40 | void plotSatellites();
41 | QMutex _mutex;
42 | QTabWidget* _tabWidget;
43 | QAction* _actConfig;
44 | QAction* _actStartThrift;
45 | QAction* _actStopThrift;
46 | QString _host;
47 | QString _port;
48 | t_thriftClient* _thriftClient;
49 | t_worldPlot* _plotStations;
50 | t_worldPlot* _plotSatellites;
51 | std::vector* _results;
52 | std::vector* _satellites;
53 | };
54 |
55 | class t_monitorFactory : public QObject, public t_pluginFactoryInterface {
56 | Q_OBJECT
57 | Q_INTERFACES(GnssCenter::t_pluginFactoryInterface)
58 | public:
59 | virtual QWidget* create() {return new t_monitor();}
60 | virtual QString getName() const {return pluginName;}
61 | };
62 |
63 | } // namespace GnssCenter
64 |
65 | #endif
66 |
--------------------------------------------------------------------------------
/src/trunk/BNC/src/rinex/corrfile.h:
--------------------------------------------------------------------------------
1 | // Part of BNC, a utility for retrieving decoding and
2 | // converting GNSS data streams from NTRIP broadcasters.
3 | //
4 | // Copyright (C) 2007
5 | // German Federal Agency for Cartography and Geodesy (BKG)
6 | // http://www.bkg.bund.de
7 | // Czech Technical University Prague, Department of Geodesy
8 | // http://www.fsv.cvut.cz
9 | //
10 | // Email: euref-ip@bkg.bund.de
11 | //
12 | // This program is free software; you can redistribute it and/or
13 | // modify it under the terms of the GNU General Public License
14 | // as published by the Free Software Foundation, version 2.
15 | //
16 | // This program is distributed in the hope that it will be useful,
17 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
18 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 | // GNU General Public License for more details.
20 | //
21 | // You should have received a copy of the GNU General Public License
22 | // along with this program; if not, write to the Free Software
23 | // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24 |
25 | #ifndef CORRFILE_H
26 | #define CORRFILE_H
27 |
28 | #include
29 | #include
30 | #include "bncconst.h"
31 | #include "bnctime.h"
32 | #include "satObs.h"
33 |
34 | class t_corrFile : public QObject {
35 | Q_OBJECT
36 |
37 | public:
38 | t_corrFile(QString fileName);
39 | ~t_corrFile();
40 | void syncRead(const bncTime& tt);
41 | const QMap& corrIODs() const {return _corrIODs;}
42 |
43 | signals:
44 | void newOrbCorrections(QList);
45 | void newClkCorrections(QList);
46 | void newCodeBiases(QList);
47 | void newPhaseBiases(QList);
48 | void newTec(t_vTec);
49 |
50 | private:
51 | std::ifstream _stream;
52 | std::string _lastLine;
53 | bncTime _lastEpoTime;
54 | QMap _corrIODs;
55 | };
56 |
57 | #endif
58 |
--------------------------------------------------------------------------------