source: ntrip/trunk/BNC/bncapp.cpp@ 1166

Last change on this file since 1166 was 1166, checked in by mervart, 16 years ago

* empty log message *

File size: 19.7 KB
Line 
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/* -------------------------------------------------------------------------
26 * BKG NTRIP Client
27 * -------------------------------------------------------------------------
28 *
29 * Class: bncApp
30 *
31 * Purpose: This class implements the main application
32 *
33 * Author: L. Mervart
34 *
35 * Created: 29-Aug-2006
36 *
37 * Changes:
38 *
39 * -----------------------------------------------------------------------*/
40
41#include <iostream>
42#include <QSettings>
43#include <QMessageBox>
44#include <cmath>
45#include <unistd.h>
46
47#include "bncapp.h"
48#include "bncutils.h"
49#include "bncrinex.h"
50
51using namespace std;
52
53struct converttimeinfo {
54 int second; /* seconds of GPS time [0..59] */
55 int minute; /* minutes of GPS time [0..59] */
56 int hour; /* hour of GPS time [0..24] */
57 int day; /* day of GPS time [1..28..30(31)*/
58 int month; /* month of GPS time [1..12]*/
59 int year; /* year of GPS time [1980..] */
60};
61
62extern "C" {
63 void converttime(struct converttimeinfo *c, int week, int tow);
64 void updatetime(int *week, int *tow, int tk, int fixnumleap);
65}
66
67// Constructor
68////////////////////////////////////////////////////////////////////////////
69bncApp::bncApp(int argc, char* argv[], bool GUIenabled) :
70 QApplication(argc, argv, GUIenabled) {
71
72 _bncVersion = "BNC 1.6";
73
74 _logFileFlag = 0;
75 _logFile = 0;
76 _logStream = 0;
77 _caster = 0;
78
79 // Lists of Ephemeris
80 // ------------------
81 for (int ii = PRN_GPS_START; ii <= PRN_GPS_END; ii++) {
82 _gpsEph[ii-PRN_GPS_START] = 0;
83 }
84 for (int ii = PRN_GLONASS_START; ii <= PRN_GLONASS_END; ii++) {
85 _glonassEph[ii-PRN_GLONASS_START] = 0;
86 }
87
88 // Eph file(s)
89 // -----------
90 _rinexVers = 0;
91 _ephFileGPS = 0;
92 _ephStreamGPS = 0;
93 _ephFileGlonass = 0;
94 _ephStreamGlonass = 0;
95
96 _port = 0;
97 _server = 0;
98 _sockets = 0;
99
100 _portCorr = 0;
101 _serverCorr = 0;
102 _socketsCorr = 0;
103
104 _pgmName = _bncVersion.leftJustified(20, ' ', true);
105#ifdef WIN32
106 _userName = QString("${USERNAME}");
107#else
108 _userName = QString("${USER}");
109#endif
110 expandEnvVar(_userName);
111 _userName = _userName.leftJustified(20, ' ', true);
112
113 _lastDumpCoSec = 0;
114
115 _corrs = new QMultiMap<long, QString>;
116
117 _currentDateAndTimeGPS = 0;
118}
119
120// Destructor
121////////////////////////////////////////////////////////////////////////////
122bncApp::~bncApp() {
123 delete _logStream;
124 delete _logFile;
125 delete _ephStreamGPS;
126 delete _ephFileGPS;
127 delete _server;
128 delete _sockets;
129 delete _serverCorr;
130 delete _socketsCorr;
131 if (_rinexVers == 2) {
132 delete _ephStreamGlonass;
133 delete _ephFileGlonass;
134 }
135 for (int ii = PRN_GPS_START; ii <= PRN_GPS_END; ii++) {
136 delete _gpsEph[ii-PRN_GPS_START];
137 }
138 for (int ii = PRN_GLONASS_START; ii <= PRN_GLONASS_END; ii++) {
139 delete _glonassEph[ii-PRN_GLONASS_START];
140 }
141
142 delete _corrs;
143
144 delete _currentDateAndTimeGPS;
145}
146
147// Write a Program Message
148////////////////////////////////////////////////////////////////////////////
149void bncApp::slotMessage(const QByteArray msg) {
150
151 QMutexLocker locker(&_mutex);
152
153 messagePrivate(msg);
154}
155
156// Write a Program Message (private, no lock)
157////////////////////////////////////////////////////////////////////////////
158void bncApp::messagePrivate(const QByteArray& msg) {
159
160 // First time resolve the log file name
161 // ------------------------------------
162 if (_logFileFlag == 0) {
163 _logFileFlag = 1;
164 QSettings settings;
165 QString logFileName = settings.value("logFile").toString();
166 if ( !logFileName.isEmpty() ) {
167 expandEnvVar(logFileName);
168 _logFile = new QFile(logFileName);
169 if ( Qt::CheckState(settings.value("rnxAppend").toInt()) == Qt::Checked) {
170 _logFile->open(QIODevice::WriteOnly | QIODevice::Append);
171 }
172 else {
173 _logFile->open(QIODevice::WriteOnly);
174 }
175 _logStream = new QTextStream();
176 _logStream->setDevice(_logFile);
177 }
178 }
179
180 if (_logStream) {
181 *_logStream << currentDateAndTimeGPS().toString("yy-MM-dd hh:mm:ss ").toAscii().data();
182 *_logStream << msg.data() << endl;
183 _logStream->flush();
184 }
185}
186
187// New GPS Ephemeris
188////////////////////////////////////////////////////////////////////////////
189void bncApp::slotNewGPSEph(gpsephemeris* gpseph) {
190
191 QMutexLocker locker(&_mutex);
192
193 gpsephemeris copy_gpseph = *gpseph;
194 emit newEphGPS(copy_gpseph);
195
196 printEphHeader();
197
198 gpsephemeris** ee = &_gpsEph[gpseph->satellite-1];
199 if ( *ee == 0 ||
200 gpseph->GPSweek > (*ee)->GPSweek ||
201 (gpseph->GPSweek == (*ee)->GPSweek && gpseph->TOC > (*ee)->TOC) ) {
202 delete *ee;
203 *ee = gpseph;
204 printGPSEph(gpseph, true);
205 }
206 else {
207 printGPSEph(gpseph, false);
208 delete gpseph;
209 }
210}
211
212// New Glonass Ephemeris
213////////////////////////////////////////////////////////////////////////////
214void bncApp::slotNewGlonassEph(glonassephemeris* glonasseph) {
215
216 QMutexLocker locker(&_mutex);
217
218 glonassephemeris copy_glonasseph = *glonasseph;
219 emit newEphGlonass(copy_glonasseph);
220
221 printEphHeader();
222
223 glonassephemeris** ee = &_glonassEph[glonasseph->almanac_number-1];
224
225 int wwOld, towOld, wwNew, towNew;
226 if (*ee != 0) {
227 wwOld = (*ee)->GPSWeek;
228 towOld = (*ee)->GPSTOW;
229 updatetime(&wwOld, &towOld, (*ee)->tb*1000, 0);
230
231 wwNew = glonasseph->GPSWeek;
232 towNew = glonasseph->GPSTOW;
233 updatetime(&wwNew, &towNew, glonasseph->tb*1000, 0);
234 }
235
236 if ( *ee == 0 ||
237 wwNew > wwOld ||
238 (wwNew == wwOld && towNew > towOld) ) {
239 delete *ee;
240 *ee = glonasseph;
241 printGlonassEph(glonasseph, true);
242 }
243 else {
244 printGlonassEph(glonasseph, false);
245 delete glonasseph;
246 }
247}
248
249// Print Header of the output File(s)
250////////////////////////////////////////////////////////////////////////////
251void bncApp::printEphHeader() {
252
253 QSettings settings;
254
255 // Initialization
256 // --------------
257 if (_rinexVers == 0) {
258
259 if ( Qt::CheckState(settings.value("ephV3").toInt()) == Qt::Checked) {
260 _rinexVers = 3;
261 }
262 else {
263 _rinexVers = 2;
264 }
265
266 _ephPath = settings.value("ephPath").toString();
267
268 if ( !_ephPath.isEmpty() ) {
269 if ( _ephPath[_ephPath.length()-1] != QDir::separator() ) {
270 _ephPath += QDir::separator();
271 }
272 expandEnvVar(_ephPath);
273 }
274 }
275
276 // (Re-)Open output File(s)
277 // ------------------------
278 if (!_ephPath.isEmpty()) {
279
280 QDateTime datTim = currentDateAndTimeGPS();
281
282 QString ephFileNameGPS = _ephPath + "BRDC" +
283 QString("%1").arg(datTim.date().dayOfYear(), 3, 10, QChar('0'));
284
285 QString hlpStr = bncRinex::nextEpochStr(datTim,
286 settings.value("ephIntr").toString());
287
288 if (_rinexVers == 3) {
289 ephFileNameGPS += hlpStr + datTim.toString(".yyP");
290 }
291 else {
292 ephFileNameGPS += hlpStr + datTim.toString(".yyN");
293 }
294
295 if (_ephFileNameGPS == ephFileNameGPS) {
296 return;
297 }
298 else {
299 _ephFileNameGPS = ephFileNameGPS;
300 }
301
302 for (int ii = PRN_GPS_START; ii <= PRN_GPS_END; ii++) {
303 delete _gpsEph[ii-PRN_GPS_START];
304 _gpsEph[ii-PRN_GPS_START] = 0;
305 }
306 for (int ii = PRN_GLONASS_START; ii <= PRN_GLONASS_END; ii++) {
307 delete _glonassEph[ii-PRN_GLONASS_START];
308 _glonassEph[ii-PRN_GLONASS_START] = 0;
309 }
310
311 delete _ephStreamGPS;
312 delete _ephFileGPS;
313
314 QFlags<QIODevice::OpenModeFlag> appendFlagGPS;
315 QFlags<QIODevice::OpenModeFlag> appendFlagGlonass;
316
317 if ( Qt::CheckState(settings.value("rnxAppend").toInt()) == Qt::Checked &&
318 QFile::exists(ephFileNameGPS) ) {
319 appendFlagGPS = QIODevice::Append;
320 }
321
322 _ephFileGPS = new QFile(ephFileNameGPS);
323 _ephFileGPS->open(QIODevice::WriteOnly | appendFlagGPS);
324 _ephStreamGPS = new QTextStream();
325 _ephStreamGPS->setDevice(_ephFileGPS);
326
327 if (_rinexVers == 3) {
328 _ephFileGlonass = _ephFileGPS;
329 _ephStreamGlonass = _ephStreamGPS;
330 }
331 else if (_rinexVers == 2) {
332 QString ephFileNameGlonass = _ephPath + "BRDC" +
333 QString("%1").arg(datTim.date().dayOfYear(), 3, 10, QChar('0')) +
334 hlpStr + datTim.toString(".yyG");
335
336 delete _ephStreamGlonass;
337 delete _ephFileGlonass;
338
339 if ( Qt::CheckState(settings.value("rnxAppend").toInt()) == Qt::Checked &&
340 QFile::exists(ephFileNameGlonass) ) {
341 appendFlagGlonass = QIODevice::Append;
342 }
343
344 _ephFileGlonass = new QFile(ephFileNameGlonass);
345 _ephFileGlonass->open(QIODevice::WriteOnly | appendFlagGlonass);
346 _ephStreamGlonass = new QTextStream();
347 _ephStreamGlonass->setDevice(_ephFileGlonass);
348 }
349
350 // Header - RINEX Version 3
351 // ------------------------
352 if (_rinexVers == 3) {
353 if ( ! (appendFlagGPS & QIODevice::Append)) {
354 QString line;
355 line.sprintf(
356 "%9.2f%11sN: GNSS NAV DATA M: Mixed%12sRINEX VERSION / TYPE\n",
357 3.0, "", "");
358 *_ephStreamGPS << line;
359
360 QString hlp = currentDateAndTimeGPS().toString("yyyyMMdd hhmmss UTC").leftJustified(20, ' ', true);
361 *_ephStreamGPS << _pgmName.toAscii().data()
362 << _userName.toAscii().data()
363 << hlp.toAscii().data()
364 << "PGM / RUN BY / DATE" << endl;
365
366 line.sprintf("%60sEND OF HEADER\n", "");
367 *_ephStreamGPS << line;
368
369 _ephStreamGPS->flush();
370 }
371 }
372
373 // Headers - RINEX Version 2
374 // -------------------------
375 else if (_rinexVers == 2) {
376 if (! (appendFlagGPS & QIODevice::Append)) {
377 QString line;
378 line.sprintf(
379 "%9.2f%11sN: GPS NAV DATA%25sRINEX VERSION / TYPE\n", 2.11, "", "");
380 *_ephStreamGPS << line;
381
382 QString hlp = currentDateAndTimeGPS().date().toString("dd-MMM-yyyy").leftJustified(20, ' ', true);
383 *_ephStreamGPS << _pgmName.toAscii().data()
384 << _userName.toAscii().data()
385 << hlp.toAscii().data()
386 << "PGM / RUN BY / DATE" << endl;
387
388 line.sprintf("%60sEND OF HEADER\n", "");
389 *_ephStreamGPS << line;
390
391 _ephStreamGPS->flush();
392 }
393 if (! (appendFlagGlonass & QIODevice::Append)) {
394 QString line;
395 line.sprintf(
396 "%9.2f%11sG: GLONASS NAV DATA%21sRINEX VERSION / TYPE\n",2.11,"","");
397 *_ephStreamGlonass << line;
398
399 QString hlp = currentDateAndTimeGPS().date().toString("dd-MMM-yyyy").leftJustified(20, ' ', true);
400 *_ephStreamGlonass << _pgmName.toAscii().data()
401 << _userName.toAscii().data()
402 << hlp.toAscii().data()
403 << "PGM / RUN BY / DATE" << endl;
404
405 line.sprintf("%60sEND OF HEADER\n", "");
406 *_ephStreamGlonass << line;
407
408 _ephStreamGlonass->flush();
409 }
410 }
411 }
412}
413
414// Print One GPS Ephemeris
415////////////////////////////////////////////////////////////////////////////
416void bncApp::printGPSEph(gpsephemeris* ep, bool printFile) {
417
418 QString lineV2;
419 QString lineV3;
420
421 struct converttimeinfo cti;
422 converttime(&cti, ep->GPSweek, ep->TOC);
423
424 lineV3.sprintf("G%02d %04d %02d %02d %02d %02d %02d %18.11e %18.11e %18.11e\n",
425 ep->satellite, cti.year, cti.month, cti.day, cti.hour,
426 cti.minute, cti.second, ep->clock_bias, ep->clock_drift,
427 ep->clock_driftrate);
428
429 lineV2.sprintf("%02d %02d %02d %02d %02d %02d%5.1f %18.11e %18.11e %18.11e\n",
430 ep->satellite, cti.year%100, cti.month, cti.day, cti.hour,
431 cti.minute, (double) cti.second, ep->clock_bias,
432 ep->clock_drift, ep->clock_driftrate);
433
434 QString line;
435 QByteArray allLines;
436
437 line.sprintf(" %18.11e %18.11e %18.11e %18.11e\n", (double)ep->IODE,
438 ep->Crs, ep->Delta_n, ep->M0);
439 allLines += line;
440
441 line.sprintf(" %18.11e %18.11e %18.11e %18.11e\n", ep->Cuc,
442 ep->e, ep->Cus, ep->sqrt_A);
443 allLines += line;
444
445 line.sprintf(" %18.11e %18.11e %18.11e %18.11e\n",
446 (double) ep->TOE, ep->Cic, ep->OMEGA0, ep->Cis);
447 allLines += line;
448
449 line.sprintf(" %18.11e %18.11e %18.11e %18.11e\n", ep->i0,
450 ep->Crc, ep->omega, ep->OMEGADOT);
451 allLines += line;
452
453 double dd = 0;
454 unsigned long ii = ep->flags;
455 if(ii & GPSEPHF_L2CACODE)
456 dd += 2.0;
457 if(ii & GPSEPHF_L2PCODE)
458 dd += 1.0;
459 line.sprintf(" %18.11e %18.11e %18.11e %18.11e\n", ep->IDOT, dd,
460 (double) ep->GPSweek, ii & GPSEPHF_L2PCODEDATA ? 1.0 : 0.0);
461 allLines += line;
462
463 if(ep->URAindex <= 6) /* URA index */
464 dd = ceil(10.0*pow(2.0, 1.0+((double)ep->URAindex)/2.0))/10.0;
465 else
466 dd = ceil(10.0*pow(2.0, ((double)ep->URAindex)/2.0))/10.0;
467 line.sprintf(" %18.11e %18.11e %18.11e %18.11e\n", dd,
468 ((double) ep->SVhealth), ep->TGD, ((double) ep->IODC));
469 allLines += line;
470
471 line.sprintf(" %18.11e %18.11e\n", ((double)ep->TOW), 0.0);
472 allLines += line;
473
474 printOutput(printFile, _ephStreamGPS, lineV2, lineV3, allLines);
475}
476
477// Print One Glonass Ephemeris
478////////////////////////////////////////////////////////////////////////////
479void bncApp::printGlonassEph(glonassephemeris* ep, bool printFile) {
480
481 int ww = ep->GPSWeek;
482 int tow = ep->GPSTOW;
483 struct converttimeinfo cti;
484
485 updatetime(&ww, &tow, ep->tb*1000, 0);
486 converttime(&cti, ww, tow);
487
488 int tk = ep->tk-3*60*60;
489 if (tk < 0) {
490 tk += 86400;
491 }
492
493 QString lineV2;
494 QString lineV3;
495
496 lineV3.sprintf("R%02d %04d %02d %02d %02d %02d %02d %18.11e %18.11e %18.11e\n",
497 ep->almanac_number, cti.year, cti.month, cti.day, cti.hour,
498 cti.minute, cti.second, -ep->tau, ep->gamma, (double) tk);
499
500 lineV2.sprintf("%02d %02d %02d %02d %02d %02d%5.1f %18.11e %18.11e %18.11e\n",
501 ep->almanac_number, cti.year%100, cti.month, cti.day,
502 cti.hour, cti.minute, (double) cti.second, -ep->tau,
503 ep->gamma, (double) tk);
504
505 QString line;
506 QByteArray allLines;
507
508 line.sprintf(" %18.11e %18.11e %18.11e %18.11e\n", ep->x_pos,
509 ep->x_velocity, ep->x_acceleration,
510 (ep->flags & GLOEPHF_UNHEALTHY) ? 1.0 : 0.0);
511 allLines += line;
512
513 line.sprintf(" %18.11e %18.11e %18.11e %18.11e\n", ep->y_pos,
514 ep->y_velocity, ep->y_acceleration,
515 (double) ep->frequency_number);
516 allLines += line;
517
518 line.sprintf(" %18.11e %18.11e %18.11e %18.11e\n", ep->z_pos,
519 ep->z_velocity, ep->z_acceleration, (double) ep->E);
520 allLines += line;
521
522 printOutput(printFile, _ephStreamGlonass, lineV2, lineV3, allLines);
523}
524
525// Output
526////////////////////////////////////////////////////////////////////////////
527void bncApp::printOutput(bool printFile, QTextStream* stream,
528 const QString& lineV2,
529 const QString& lineV3,
530 const QByteArray& allLines) {
531 // Output into file
532 // ----------------
533 if (printFile && stream) {
534 if (_rinexVers == 2) {
535 *stream << lineV2.toAscii();
536 }
537 else {
538 *stream << lineV3.toAscii();
539 }
540 *stream << allLines;
541 stream->flush();
542 }
543
544 // Output into the socket
545 // ----------------------
546 if (_sockets) {
547 QMutableListIterator<QTcpSocket*> is(*_sockets);
548 while (is.hasNext()) {
549 QTcpSocket* sock = is.next();
550 if (sock->state() == QAbstractSocket::ConnectedState) {
551 if (sock->write(lineV3.toAscii()) == -1 ||
552 sock->write(allLines) == -1) {
553 delete sock;
554 is.remove();
555 }
556 }
557 else if (sock->state() != QAbstractSocket::ConnectingState) {
558 delete sock;
559 is.remove();
560 }
561 }
562 }
563}
564
565// Set Port Number
566////////////////////////////////////////////////////////////////////////////
567void bncApp::setPort(int port) {
568 _port = port;
569 if (_port != 0) {
570 delete _server;
571 _server = new QTcpServer;
572 _server->listen(QHostAddress::Any, _port);
573 connect(_server, SIGNAL(newConnection()), this, SLOT(slotNewConnection()));
574 delete _sockets;
575 _sockets = new QList<QTcpSocket*>;
576 }
577}
578
579// Set Port Number
580////////////////////////////////////////////////////////////////////////////
581void bncApp::setPortCorr(int port) {
582 _portCorr = port;
583 if (_portCorr != 0) {
584 delete _serverCorr;
585 _serverCorr = new QTcpServer;
586 _serverCorr->listen(QHostAddress::Any, _portCorr);
587 connect(_serverCorr, SIGNAL(newConnection()), this, SLOT(slotNewConnectionCorr()));
588 delete _socketsCorr;
589 _socketsCorr = new QList<QTcpSocket*>;
590 }
591}
592
593// New Connection
594////////////////////////////////////////////////////////////////////////////
595void bncApp::slotNewConnection() {
596 _sockets->push_back( _server->nextPendingConnection() );
597}
598
599// New Connection
600////////////////////////////////////////////////////////////////////////////
601void bncApp::slotNewConnectionCorr() {
602 _socketsCorr->push_back( _serverCorr->nextPendingConnection() );
603}
604
605//
606////////////////////////////////////////////////////////////////////////////
607void bncApp::slotQuit() {
608 cout << "bncApp::slotQuit" << endl;
609 delete _caster;
610 quit();
611}
612
613//
614////////////////////////////////////////////////////////////////////////////
615void bncApp::slotNewCorrLine(QString line, QString staID, long coTime) {
616
617 QMutexLocker locker(&_mutex);
618
619 if (!_socketsCorr) {
620 return;
621 }
622
623 QSettings settings;
624 _waitCoTime = settings.value("corrTime").toInt();
625 if (_waitCoTime < 1) {
626 _waitCoTime = 1;
627 }
628
629 // First time, set the _lastDumpSec immediately
630 // --------------------------------------------
631 if (_lastDumpCoSec == 0) {
632 _lastDumpCoSec = coTime - 1;
633 }
634
635 // An old correction - throw it away
636 // ---------------------------------
637 if (coTime <= _lastDumpCoSec) {
638 QString line = staID + ": Correction overaged by " +
639 QString().sprintf(" %ld sec",
640 _lastDumpCoSec - coTime + _waitCoTime);
641 messagePrivate(line.toAscii());
642 emit( newMessage(line.toAscii()) );
643 return;
644 }
645
646 _corrs->insert(coTime, QString(line + " " + staID));
647
648 // Dump Corrections
649 // ----------------
650 if (coTime - _waitCoTime > _lastDumpCoSec) {
651 dumpCorrs(_lastDumpCoSec + 1, coTime - _waitCoTime);
652 _lastDumpCoSec = coTime - _waitCoTime;
653 }
654}
655
656// Dump Complete Correction Epochs
657////////////////////////////////////////////////////////////////////////////
658void bncApp::dumpCorrs(long minTime, long maxTime) {
659
660 for (long sec = minTime; sec <= maxTime; sec++) {
661 QList<QString> allCorrs = _corrs->values(sec);
662 QListIterator<QString> it(allCorrs);
663 while (it.hasNext()) {
664 QString corrLine = it.next() + "\n";
665
666 QMutableListIterator<QTcpSocket*> is(*_socketsCorr);
667 while (is.hasNext()) {
668 QTcpSocket* sock = is.next();
669 if (sock->state() == QAbstractSocket::ConnectedState) {
670 if (sock->write(corrLine.toAscii()) == -1) {
671 delete sock;
672 is.remove();
673 }
674 }
675 else if (sock->state() != QAbstractSocket::ConnectingState) {
676 delete sock;
677 is.remove();
678 }
679 }
680 }
681 _corrs->remove(sec);
682 }
683}
Note: See TracBrowser for help on using the repository browser.