Changeset 3004 in ntrip
- Timestamp:
- Feb 22, 2011, 11:53:04 AM (14 years ago)
- Location:
- trunk/BNC
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncapp.cpp
r2922 r3004 839 839 QByteArray fileName = settings.value("rawOutFile").toByteArray(); 840 840 if (!fileName.isEmpty()) { 841 _rawFile = new bncRawFile(fileName, format, bncRawFile::output);841 _rawFile = new bncRawFile(fileName, staID, format, bncRawFile::output); 842 842 } 843 843 } -
trunk/BNC/bncmain.cpp
r2909 r3004 64 64 QByteArray rawFileName; 65 65 QByteArray format; 66 QByteArray staID; 66 67 QString confFileName; 67 68 … … 81 82 format = QByteArray(argv[ii+1]); 82 83 } 84 if (QByteArray(argv[ii]).indexOf("-staID") != -1) { 85 staID = QByteArray(argv[ii+1]); 86 } 83 87 } 84 88 } … … 89 93 90 94 QString printHelp = "Usage: bnc -nw\n" 91 " --conf <confFileName>\n" 92 " --file <rawFileName>\n" 95 " --conf <confFileName>\n" 96 " --file <rawFileName>\n" 97 " --staID <station>\n" 93 98 " --format <RTIGS | RTCM_2 | RTCM_3>\n"; 94 99 … … 150 155 // ----------------------------- 151 156 else { 152 if ( format.isEmpty() ) {157 if ( format.isEmpty() || staID.isEmpty() ) { 153 158 cout << printHelp.toAscii().data() << endl; 154 159 exit(0); 155 160 } 156 161 157 bncRawFile* rawFile = new bncRawFile(rawFileName, format,162 bncRawFile* rawFile = new bncRawFile(rawFileName, staID, format, 158 163 bncRawFile::input); 159 164 -
trunk/BNC/bncrawfile.cpp
r2543 r3004 49 49 // Constructor 50 50 //////////////////////////////////////////////////////////////////////////// 51 bncRawFile::bncRawFile(const QByteArray& fileName, const QByteArray& format, 52 inpOutFlag ioFlg) { 51 bncRawFile::bncRawFile(const QByteArray& fileName, const QByteArray& staID, 52 const QByteArray& format, inpOutFlag ioFlg) { 53 53 54 _fileName = fileName; expandEnvVar(_fileName); 55 _staID = staID; 54 56 _format = format; 55 _staID = fileName.mid(fileName.lastIndexOf(QDir::separator())+1,5);56 57 _inpFile = 0; 57 58 _outFile = 0; -
trunk/BNC/bncrawfile.h
r2542 r3004 36 36 enum inpOutFlag {input, output}; 37 37 38 bncRawFile(const QByteArray& fileName, const QByteArray& format,39 inpOutFlag ioflg);38 bncRawFile(const QByteArray& fileName, const QByteArray& staID, 39 const QByteArray& format, inpOutFlag ioflg); 40 40 41 41 ~bncRawFile();
Note:
See TracChangeset
for help on using the changeset viewer.