22 code = int(Source) << 24;
34 if (2 == sscanf(s,
"%a[^ ] %a[^\n]", &codeBuf, &
description))
49 q += snprintf(q,
sizeof(buffer) - 2,
"%u.%u", abs(n) / 10, abs(n) % 10);
50 *q++ = (n < 0) ?
'E' :
'W';
59 if (
'A' <= *s && *s <=
'Z') {
60 int code = int(*s) << 24;
67 case '0' ...
'9': pos *= 10;
76 default:
esyslog(
"ERROR: unknown source character '%c'", *s);
87 esyslog(
"ERROR: unknown source key '%c'", *s);
94 int code = SourceType;
95 if (SourceType ==
stSat) {
98 code |= (Position &
st_Pos);;
110 if (p->Code() == Code)
static cString ToString(int Code)
static char ToChar(int Code)
bool Parse(const char *s)
cSource * Next(const cSource *object) const
cSource * First(void) const
bool ContainsSourceType(char SourceType)
static int FromString(const char *s)
static int FromData(eSourceType SourceType, int Position=0, bool East=false)