Changeset 4078 in ntrip
- Timestamp:
- Apr 28, 2012, 2:06:32 PM (13 years ago)
- Location:
- trunk/BNC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncsettings.cpp
r4077 r4078 47 47 // ------------ 48 48 else { 49 setValue("startTab", "0"); 50 setValue("statusTab", "0"); 51 setValue("casterUrlList", (QStringList() 49 setValue_p("startTab", "0"); 50 setValue_p("statusTab", "0"); 51 setValue_p("casterUrlList", (QStringList() 52 52 << "http://user:pass@www.euref-ip.net:2101" 53 53 << "http://user:pass@www.igs-ip.net:2101" 54 54 << "http://user:pass@products.igs-ip.net:2101" 55 55 << "http://user:pass@mgex.igs-ip.net:2101")); 56 setValue("mountPoints", ""); 57 setValue("ntripVersion", "1"); 56 setValue_p("mountPoints", ""); 57 setValue_p("ntripVersion", "1"); 58 58 // Network 59 setValue("proxyHost", ""); 60 setValue("proxyPort", ""); 61 setValue("sslCaCertPath", ""); 62 setValue("ignoreSslErrors", "0"); 59 setValue_p("proxyHost", ""); 60 setValue_p("proxyPort", ""); 61 setValue_p("sslCaCertPath", ""); 62 setValue_p("ignoreSslErrors", "0"); 63 63 // General 64 setValue("logFile", ""); 65 setValue("rnxAppend", "0"); 66 setValue("onTheFlyInterval", "1 day"); 67 setValue("autoStart", "0"); 68 setValue("rawOutFile", ""); 64 setValue_p("logFile", ""); 65 setValue_p("rnxAppend", "0"); 66 setValue_p("onTheFlyInterval", "1 day"); 67 setValue_p("autoStart", "0"); 68 setValue_p("rawOutFile", ""); 69 69 // RINEX Observations 70 setValue("rnxPath", ""); 71 setValue("rnxIntr", "1 day"); 72 setValue("rnxSampl", "0"); 73 setValue("rnxSkel", "SKL"); 74 setValue("rnxScript", ""); 75 setValue("rnxV3", "0"); 70 setValue_p("rnxPath", ""); 71 setValue_p("rnxIntr", "1 day"); 72 setValue_p("rnxSampl", "0"); 73 setValue_p("rnxSkel", "SKL"); 74 setValue_p("rnxScript", ""); 75 setValue_p("rnxV3", "0"); 76 76 // RINEX Ephemeris 77 setValue("ephPath", ""); 78 setValue("ephIntr", "1 day"); 79 setValue("outEphPort", ""); 80 setValue("ephV3", "0"); 77 setValue_p("ephPath", ""); 78 setValue_p("ephIntr", "1 day"); 79 setValue_p("outEphPort", ""); 80 setValue_p("ephV3", "0"); 81 81 // Braodcast Corrections 82 setValue("corrPath", ""); 83 setValue("corrIntr", "1 day"); 84 setValue("corrPort", ""); 85 setValue("corrTime", "5"); 82 setValue_p("corrPath", ""); 83 setValue_p("corrIntr", "1 day"); 84 setValue_p("corrPort", ""); 85 setValue_p("corrTime", "5"); 86 86 // Feed Engine 87 setValue("outPort", ""); 88 setValue("waitTime", "5"); 89 setValue("binSampl", "0"); 90 setValue("outFile", ""); 91 setValue("outUPort", ""); 87 setValue_p("outPort", ""); 88 setValue_p("waitTime", "5"); 89 setValue_p("binSampl", "0"); 90 setValue_p("outFile", ""); 91 setValue_p("outUPort", ""); 92 92 // Serial Output 93 setValue("serialMountPoint", ""); 94 setValue("serialPortName", ""); 95 setValue("serialBaudRate", "9600"); 96 setValue("serialFlowControl", "OFF"); 97 setValue("serialDataBits", "8"); 98 setValue("serialParity", "NONE"); 99 setValue("serialStopBits", "1"); 100 setValue("serialAutoNMEA", "Auto"); 101 setValue("serialFileNMEA", ""); 102 setValue("serialHeightNMEA", ""); 93 setValue_p("serialMountPoint", ""); 94 setValue_p("serialPortName", ""); 95 setValue_p("serialBaudRate", "9600"); 96 setValue_p("serialFlowControl", "OFF"); 97 setValue_p("serialDataBits", "8"); 98 setValue_p("serialParity", "NONE"); 99 setValue_p("serialStopBits", "1"); 100 setValue_p("serialAutoNMEA", "Auto"); 101 setValue_p("serialFileNMEA", ""); 102 setValue_p("serialHeightNMEA", ""); 103 103 // Outages 104 setValue("obsRate", ""); 105 setValue("adviseFail", "15"); 106 setValue("adviseReco", "5"); 107 setValue("adviseScript", ""); 104 setValue_p("obsRate", ""); 105 setValue_p("adviseFail", "15"); 106 setValue_p("adviseReco", "5"); 107 setValue_p("adviseScript", ""); 108 108 // Miscellaneous 109 setValue("miscMount", ""); 110 setValue("perfIntr", ""); 111 setValue("scanRTCM", "0"); 109 setValue_p("miscMount", ""); 110 setValue_p("perfIntr", ""); 111 setValue_p("scanRTCM", "0"); 112 112 // PPP 113 setValue("pppSPP", ""); 114 setValue("pppMount", ""); 115 setValue("pppCorrMount", ""); 116 setValue("pppRefCrdX", ""); 117 setValue("pppRefCrdY", ""); 118 setValue("pppRefCrdZ", ""); 119 setValue("pppRefdN", ""); 120 setValue("pppRefdE", ""); 121 setValue("pppRefdU", ""); 122 setValue("nmeaFile", ""); 123 setValue("nmeaPort", ""); 124 setValue("pppPlotCoordinates", ""); 125 setValue("postObsFile", ""); 126 setValue("postNavFile", ""); 127 setValue("postCorrFile", ""); 128 setValue("postOutFile", ""); 129 setValue("pppAntenna", ""); 130 setValue("pppAntex", ""); 131 setValue("pppApplySatAnt", "0"); 132 setValue("pppUsePhase", ""); 133 setValue("pppEstTropo", ""); 134 setValue("pppGLONASS", ""); 135 setValue("pppGalileo", ""); 136 setValue("pppSync", ""); 137 setValue("pppAverage", ""); 138 setValue("pppQuickStart", ""); 139 setValue("pppMaxSolGap", ""); 140 setValue("pppSigmaCode", "10.0"); 141 setValue("pppSigmaPhase", "0.02"); 142 setValue("pppSigCrd0", "100.0"); 143 setValue("pppSigCrdP", "100.0"); 144 setValue("pppSigTrp0", "0.1"); 145 setValue("pppSigTrpP", "3e-6"); 113 setValue_p("pppSPP", ""); 114 setValue_p("pppMount", ""); 115 setValue_p("pppCorrMount", ""); 116 setValue_p("pppRefCrdX", ""); 117 setValue_p("pppRefCrdY", ""); 118 setValue_p("pppRefCrdZ", ""); 119 setValue_p("pppRefdN", ""); 120 setValue_p("pppRefdE", ""); 121 setValue_p("pppRefdU", ""); 122 setValue_p("nmeaFile", ""); 123 setValue_p("nmeaPort", ""); 124 setValue_p("pppPlotCoordinates", ""); 125 setValue_p("postObsFile", ""); 126 setValue_p("postNavFile", ""); 127 setValue_p("postCorrFile", ""); 128 setValue_p("postOutFile", ""); 129 setValue_p("pppAntenna", ""); 130 setValue_p("pppAntex", ""); 131 setValue_p("pppApplySatAnt", "0"); 132 setValue_p("pppUsePhase", ""); 133 setValue_p("pppEstTropo", ""); 134 setValue_p("pppGLONASS", ""); 135 setValue_p("pppGalileo", ""); 136 setValue_p("pppSync", ""); 137 setValue_p("pppAverage", ""); 138 setValue_p("pppQuickStart", ""); 139 setValue_p("pppMaxSolGap", ""); 140 setValue_p("pppSigmaCode", "10.0"); 141 setValue_p("pppSigmaPhase", "0.02"); 142 setValue_p("pppSigCrd0", "100.0"); 143 setValue_p("pppSigCrdP", "100.0"); 144 setValue_p("pppSigTrp0", "0.1"); 145 setValue_p("pppSigTrpP", "3e-6"); 146 146 // Reqc 147 setValue("reqcAction", ""); 148 setValue("reqcObsFile", ""); 149 setValue("reqcNavFile", ""); 150 setValue("reqcOutObsFile", ""); 151 setValue("reqcOutNavFile", ""); 152 setValue("reqcOutLogFile", ""); 153 setValue("reqcRnxVersion", ""); 154 setValue("reqcSampling", ""); 155 setValue("reqcStartDateTime", ""); 156 setValue("reqcEndDateTime", ""); 157 setValue("reqcOldMarkerName", ""); 158 setValue("reqcNewMarkerName", ""); 159 setValue("reqcOldAntennaName", ""); 160 setValue("reqcNewAntennaName", ""); 161 setValue("reqcOldReceiverName", ""); 162 setValue("reqcNewReceiverName", ""); 147 setValue_p("reqcAction", ""); 148 setValue_p("reqcObsFile", ""); 149 setValue_p("reqcNavFile", ""); 150 setValue_p("reqcOutObsFile", ""); 151 setValue_p("reqcOutNavFile", ""); 152 setValue_p("reqcOutLogFile", ""); 153 setValue_p("reqcRnxVersion", ""); 154 setValue_p("reqcSampling", ""); 155 setValue_p("reqcStartDateTime", ""); 156 setValue_p("reqcEndDateTime", ""); 157 setValue_p("reqcOldMarkerName", ""); 158 setValue_p("reqcNewMarkerName", ""); 159 setValue_p("reqcOldAntennaName", ""); 160 setValue_p("reqcNewAntennaName", ""); 161 setValue_p("reqcOldReceiverName", ""); 162 setValue_p("reqcNewReceiverName", ""); 163 163 // Combination 164 setValue("combineStreams", ""); 165 setValue("cmbMethod", ""); 166 setValue("cmbMaxres", ""); 164 setValue_p("combineStreams", ""); 165 setValue_p("cmbMethod", ""); 166 setValue_p("cmbMaxres", ""); 167 167 // Upload (clk) 168 setValue("uploadMountpointsOut",""); 169 setValue("uploadIntr", "1 day"); 170 setValue("uploadSampl", "5"); 171 setValue("uploadSamplOrb", "0"); 172 setValue("trafo_dx", ""); 173 setValue("trafo_dy", ""); 174 setValue("trafo_dz", ""); 175 setValue("trafo_dxr", ""); 176 setValue("trafo_dyr", ""); 177 setValue("trafo_dzr", ""); 178 setValue("trafo_ox", ""); 179 setValue("trafo_oy", ""); 180 setValue("trafo_oz", ""); 181 setValue("trafo_oxr", ""); 182 setValue("trafo_oyr", ""); 183 setValue("trafo_ozr", ""); 184 setValue("trafo_sc", ""); 185 setValue("trafo_scr", ""); 186 setValue("trafo_t0", ""); 168 setValue_p("uploadMountpointsOut",""); 169 setValue_p("uploadIntr", "1 day"); 170 setValue_p("uploadSampl", "5"); 171 setValue_p("uploadSamplOrb", "0"); 172 setValue_p("trafo_dx", ""); 173 setValue_p("trafo_dy", ""); 174 setValue_p("trafo_dz", ""); 175 setValue_p("trafo_dxr", ""); 176 setValue_p("trafo_dyr", ""); 177 setValue_p("trafo_dzr", ""); 178 setValue_p("trafo_ox", ""); 179 setValue_p("trafo_oy", ""); 180 setValue_p("trafo_oz", ""); 181 setValue_p("trafo_oxr", ""); 182 setValue_p("trafo_oyr", ""); 183 setValue_p("trafo_ozr", ""); 184 setValue_p("trafo_sc", ""); 185 setValue_p("trafo_scr", ""); 186 setValue_p("trafo_t0", ""); 187 187 // Upload (eph) 188 setValue("uploadEphHost", ""); 189 setValue("uploadEphPort", ""); 190 setValue("uploadEphMountpoint", ""); 191 setValue("uploadEphPassword", ""); 192 setValue("uploadEphSample", "5"); 188 setValue_p("uploadEphHost", ""); 189 setValue_p("uploadEphPort", ""); 190 setValue_p("uploadEphMountpoint", ""); 191 setValue_p("uploadEphPassword", ""); 192 setValue_p("uploadEphSample", "5"); 193 193 } 194 194 } … … 198 198 //////////////////////////////////////////////////////////////////////////// 199 199 bncSettings::~bncSettings() { 200 QMutexLocker locker(&_mutex);201 202 200 } 203 201 … … 219 217 //////////////////////////////////////////////////////////////////////////// 220 218 void bncSettings::setValue(const QString &key, const QVariant& value) { 219 QMutexLocker locker(&_mutex); 220 setValue_p(key, value); 221 } 222 223 // 224 //////////////////////////////////////////////////////////////////////////// 225 void bncSettings::setValue_p(const QString &key, const QVariant& value) { 221 226 _bncApp->_settings[key] = value; 222 227 } -
trunk/BNC/bncsettings.h
r4077 r4078 16 16 void sync(); 17 17 private: 18 void setValue_p(const QString &key, const QVariant& value); 18 19 bncApp* _bncApp; 19 20 static QMutex _mutex;
Note:
See TracChangeset
for help on using the changeset viewer.