Changeset 8275 in ntrip for trunk/BNC/src/upload/bncrtnetdecoder.cpp
- Timestamp:
- Feb 7, 2018, 2:26:39 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/upload/bncrtnetdecoder.cpp
r4176 r8275 35 35 * Created: 28-Mar-2011 36 36 * 37 * Changes: 37 * Changes: 38 38 * 39 39 * -----------------------------------------------------------------------*/ … … 46 46 47 47 // Constructor 48 //////////////////////////////////////////////////////////////////////// 48 //////////////////////////////////////////////////////////////////////// 49 49 bncRtnetDecoder::bncRtnetDecoder() { 50 50 bncSettings settings; … … 59 59 ++iRow; 60 60 int outPort = hlp[1].toInt(); 61 bool CoM = (hlp[ 5].toInt() == Qt::Checked);61 bool CoM = (hlp[7].toInt() == Qt::Checked); 62 62 int PID = 0; 63 if (hlp.size() > 8) {64 PID = hlp[ 8].toInt();63 if (hlp.size() > 10) { 64 PID = hlp[10].toInt(); 65 65 } 66 66 int SID = 0; 67 if (hlp.size() > 9) {68 SID = hlp[ 9].toInt();67 if (hlp.size() > 11) { 68 SID = hlp[11].toInt(); 69 69 } 70 70 int IOD = 0; 71 if (hlp.size() > 1 0) {72 IOD = hlp[1 0].toInt();71 if (hlp.size() > 12) { 72 IOD = hlp[12].toInt(); 73 73 } 74 74 bncRtnetUploadCaster* newCaster = new bncRtnetUploadCaster( 75 hlp[2], hlp[0], outPort, 76 hlp[3], hlp[4], CoM, 77 hlp[6], hlp[7], 75 hlp[2], hlp[0], outPort, 76 hlp[3], hlp[4], 77 hlp[5], hlp[6], CoM, 78 hlp[8], hlp[9], 78 79 PID, SID, IOD, iRow); 79 80 newCaster->start(); … … 84 85 85 86 // Destructor 86 //////////////////////////////////////////////////////////////////////// 87 //////////////////////////////////////////////////////////////////////// 87 88 bncRtnetDecoder::~bncRtnetDecoder() { 88 89 for (int ic = 0; ic < _casters.size(); ic++) { … … 92 93 93 94 // Decode Method 94 //////////////////////////////////////////////////////////////////////// 95 //////////////////////////////////////////////////////////////////////// 95 96 t_irc bncRtnetDecoder::Decode(char* buffer, int bufLen, vector<string>& errmsg) { 96 97 errmsg.clear();
Note:
See TracChangeset
for help on using the changeset viewer.