RXtoRINEX  V2.1
RXtoRINEX provides tools to collect data from GPS / GNSS receivers in mobile devices, convert them to RINEX or RTK formats, and process RINEX files.
Macros
RinexData.cpp File Reference
#include "RinexData.h"
#include <algorithm>
#include <stdio.h>
#include <math.h>
#include "Utilities.h"

Macros

#define SET_1PARAM(LABEL_rl, FROM_PARAM_a)
 a macro to assing in setHdLnData the value of the method parameter a to the given member More...
 
#define SET_2PARAM(LABEL_rl, FROM_PARAM_a, FROM_PARAM_b)
 a macro to assing in setHdLnData the value of the method parameters a and b to the given members More...
 
#define SET_3PARAM(LABEL_rl, FROM_PARAM_a, FROM_PARAM_b, FROM_PARAM_c)
 a macro to assing in setHdLnData the value of the method parameters a, b and c to the given members More...
 
#define GET_1PARAM(LABEL_rl, TO_PARAM_a)
 a macro to assign in getHdLnData the value of the given member to the method parameter a More...
 
#define GET_2PARAM(LABEL_rl, TO_PARAM_a, TO_PARAM_b)
 a macro to assing the values of the given members to the method parameters a and b More...
 
#define GET_3PARAM(LABEL_rl, TO_PARAM_a, TO_PARAM_b, TO_PARAM_c)
 a macro to assing the values of the given members to the method parameters a, b and c More...
 
#define DIFFERENT_SAT(POSITION)
 
#define RETURN_WITH_ERROR(ERROR_STR, ERROR_CODE)
 
#define GET_BO(LINE_I, COL_J)
 
#define PRINT_SYSREC(VECTOR, ITEMS_PER_LINE, PRNTPFX_1ST, PRNTPFX_CON, PRNT_ITEM, PRNT_EMPTYITEM)
 
#define READ_CONT_LINE(GIVEN_LABEL, BLANK_SPACE)
 
#define RETURN_WITH_ERROR(ERROR_STR)
 

Detailed Description

Contains the implementation of the RinexData class.

Macro Definition Documentation

#define DIFFERENT_SAT (   POSITION)
Value:
((POSITION-1)->sysIndex != POSITION->sysIndex) || \
((POSITION-1)->satellite != POSITION->satellite)
#define GET_1PARAM (   LABEL_rl,
  TO_PARAM_a 
)
Value:
a = TO_PARAM_a; \
return getLabelFlag(LABEL_rl);

a macro to assign in getHdLnData the value of the given member to the method parameter a

#define GET_2PARAM (   LABEL_rl,
  TO_PARAM_a,
  TO_PARAM_b 
)
Value:
a = TO_PARAM_a; \
b = TO_PARAM_b; \
return getLabelFlag(LABEL_rl);

a macro to assing the values of the given members to the method parameters a and b

#define GET_3PARAM (   LABEL_rl,
  TO_PARAM_a,
  TO_PARAM_b,
  TO_PARAM_c 
)
Value:
a = TO_PARAM_a; \
b = TO_PARAM_b; \
c = TO_PARAM_c; \
return getLabelFlag(LABEL_rl);

a macro to assing the values of the given members to the method parameters a, b and c

#define GET_BO (   LINE_I,
  COL_J 
)
Value:
if (sscanf(startPos1st, "%19lf", &bo[LINE_I][COL_J]) != 1) { \
retCode = 5; \
msgPrfx += string("Error Broad.Orb.[") + to_string((long long) LINE_I) + string("][") + to_string((long long) COL_J) + string("]."); \
} \
startPos1st += 19;
#define PRINT_SYSREC (   VECTOR,
  ITEMS_PER_LINE,
  PRNTPFX_1ST,
  PRNTPFX_CON,
  PRNT_ITEM,
  PRNT_EMPTYITEM 
)
Value:
/*for each VECTOR, print ITEMS_PER_LINE items per line (a 1st line + continuation lines if needed)*/ \
if ((k = VECTOR.size()) != 0) { \
for (j = 0; j < k; j++) { \
if ((j % ITEMS_PER_LINE) == 0) { \
if (j == 0) n = PRNTPFX_1ST; /*print the 1st line prefix*/ \
else { /*finish current line and print the continuation line prefix*/ \
fprintf(out, "%s%-20s\n", string(60-n,' ').c_str(), valueLabel(labelId).c_str()); \
n = PRNTPFX_CON; \
} \
} \
n += PRNT_ITEM; \
} \
while ((j++ % ITEMS_PER_LINE) != 0) n += PRNT_EMPTYITEM; /*print empty data to complete line*/\
fprintf(out, "%s%-20s\n", string(60-n,' ').c_str(), valueLabel(labelId).c_str()); /*finish line printing line label*/\
}
#define READ_CONT_LINE (   GIVEN_LABEL,
  BLANK_SPACE 
)
Value:
if (fgets(lineBuffer, sizeof lineBuffer, input) == NULL) return LASTONE; \
if (checkLabel(lineBuffer) != GIVEN_LABEL) { \
plog->warning(valueLabel(GIVEN_LABEL, "continuation expected, but received " + string(lineBuffer+61, 20))); \
return GIVEN_LABEL; \
} \
if (strrchr(lineBuffer, ' ') < lineBuffer+BLANK_SPACE) { \
plog->warning(valueLabel(GIVEN_LABEL, "wrong format in continuation line")); \
return GIVEN_LABEL; \
}
#define RETURN_WITH_ERROR (   ERROR_STR,
  ERROR_CODE 
)
Value:
{ \
plog->warning(msgPrfx + ERROR_STR); \
return ERROR_CODE; \
}
#define RETURN_WITH_ERROR (   ERROR_STR)
Value:
{ \
plog->warning(errorLabel(labelId) + ERROR_STR); \
return labelId; \
}
#define SET_1PARAM (   LABEL_rl,
  FROM_PARAM_a 
)
Value:
FROM_PARAM_a = a; \
setLabelFlag(LABEL_rl); \
return true;

a macro to assing in setHdLnData the value of the method parameter a to the given member

#define SET_2PARAM (   LABEL_rl,
  FROM_PARAM_a,
  FROM_PARAM_b 
)
Value:
FROM_PARAM_a = a; \
FROM_PARAM_b = b; \
setLabelFlag(LABEL_rl); \
return true;

a macro to assing in setHdLnData the value of the method parameters a and b to the given members

#define SET_3PARAM (   LABEL_rl,
  FROM_PARAM_a,
  FROM_PARAM_b,
  FROM_PARAM_c 
)
Value:
FROM_PARAM_a = a; \
FROM_PARAM_b = b; \
FROM_PARAM_c = c; \
setLabelFlag(LABEL_rl); \
return true;

a macro to assing in setHdLnData the value of the method parameters a, b and c to the given members