Changeset 149 in ntrip for trunk/BNC/bncapp.cpp
- Timestamp:
- Sep 8, 2006, 9:04:28 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncapp.cpp
r109 r149 17 17 18 18 #include <iostream> 19 #include <QSettings> 19 20 20 21 #include "bncapp.h" … … 29 30 _logFile = 0; 30 31 _logStream = 0; 31 for (int ii = 1; ii < argc; ii++) {32 if (QString(argv[ii]) == "-o" && ii+1 < argc) {33 _logFile = new QFile(argv[ii+1]);34 _logFile->open(QIODevice::WriteOnly);35 _logStream = new QTextStream();36 _logStream->setDevice(_logFile);37 }32 QSettings settings; 33 QString logFileName = settings.value("logFile").toString(); 34 if ( !logFileName.isEmpty() ) { 35 _logFile = new QFile(logFileName); 36 _logFile->open(QIODevice::WriteOnly); 37 _logStream = new QTextStream(); 38 _logStream->setDevice(_logFile); 38 39 } 39 40 }
Note:
See TracChangeset
for help on using the changeset viewer.