22 code = int(Source) << 24;
34 if (2 == sscanf(s,
"%m[^ ] %m[^\n]", &codeBuf, &
description))
44 return Code1 == Code2;
61 q += snprintf(q,
sizeof(buffer) - 2,
"%u.%u", abs(n) / 10, abs(n) % 10);
62 *q++ = (n < 0) ?
'W' :
'E';
71 if (
'A' <= *s && *s <=
'Z') {
72 int code = int(*s) << 24;
79 case '0' ...
'9': pos *= 10;
88 default:
esyslog(
"ERROR: unknown source character '%c'", *s);
99 esyslog(
"ERROR: unknown source key '%c'", *s);
106 int code = SourceType;
107 if (SourceType ==
stSat) {
110 code |= (Position &
st_Pos);
122 if (p->Code() ==
Code)
static cString ToString(int Code)
static char ToChar(int Code)
bool Parse(const char *s)
cListObject * Next(void) const
static bool IsSat(int Code)
const char * Description(void) const
bool ContainsSourceType(char SourceType)
static int FromString(const char *s)
static bool Matches(int Code1, int Code2)
Returns true if Code2 matches Code1.
int Position(void)
Returns the orbital position of the satellite in case this is a DVB-S source (zero otherwise)...
static int FromData(eSourceType SourceType, int Position=0, bool East=false)