Ignore:
Timestamp:
Feb 7, 2018, 2:26:39 PM (6 years ago)
Author:
stuerze
Message:

some preparation to allow Ntrip version 2 stream upload in future

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/upload/bncrtnetdecoder.cpp

    r4176 r8275  
    3535 * Created:    28-Mar-2011
    3636 *
    37  * Changes:   
     37 * Changes:
    3838 *
    3939 * -----------------------------------------------------------------------*/
     
    4646
    4747// Constructor
    48 //////////////////////////////////////////////////////////////////////// 
     48////////////////////////////////////////////////////////////////////////
    4949bncRtnetDecoder::bncRtnetDecoder() {
    5050  bncSettings settings;
     
    5959      ++iRow;
    6060      int  outPort = hlp[1].toInt();
    61       bool CoM     = (hlp[5].toInt() == Qt::Checked);
     61      bool CoM     = (hlp[7].toInt() == Qt::Checked);
    6262      int PID = 0;
    63       if (hlp.size() > 8) {
    64         PID = hlp[8].toInt();
     63      if (hlp.size() > 10) {
     64        PID = hlp[10].toInt();
    6565      }
    6666      int SID = 0;
    67       if (hlp.size() > 9) {
    68         SID = hlp[9].toInt();
     67      if (hlp.size() > 11) {
     68        SID = hlp[11].toInt();
    6969      }
    7070      int IOD = 0;
    71       if (hlp.size() > 10) {
    72         IOD = hlp[10].toInt();
     71      if (hlp.size() > 12) {
     72        IOD = hlp[12].toInt();
    7373      }
    7474      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],
    7879                                                       PID, SID, IOD, iRow);
    7980      newCaster->start();
     
    8485
    8586// Destructor
    86 //////////////////////////////////////////////////////////////////////// 
     87////////////////////////////////////////////////////////////////////////
    8788bncRtnetDecoder::~bncRtnetDecoder() {
    8889  for (int ic = 0; ic < _casters.size(); ic++) {
     
    9293
    9394// Decode Method
    94 //////////////////////////////////////////////////////////////////////// 
     95////////////////////////////////////////////////////////////////////////
    9596t_irc bncRtnetDecoder::Decode(char* buffer, int bufLen, vector<string>& errmsg) {
    9697  errmsg.clear();
Note: See TracChangeset for help on using the changeset viewer.