summaryrefslogtreecommitdiff
path: root/sources.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2013-04-11 10:40:47 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2013-04-11 10:40:47 +0200
commit53ef55410c7d5532151e9fba1ac5ab8eda553715 (patch)
treeab6b54850414d4f993156c7ef48a054058045657 /sources.h
parent4263a1a41029d159f72b4267c3c05d56438f75dc (diff)
downloadvdr-53ef55410c7d5532151e9fba1ac5ab8eda553715.tar.gz
vdr-53ef55410c7d5532151e9fba1ac5ab8eda553715.tar.bz2
Changed the sign of the satellite position value in cSource to reflect the standard of western values being negative
Diffstat (limited to 'sources.h')
-rw-r--r--sources.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/sources.h b/sources.h
index 516a3edc..e40b2b1d 100644
--- a/sources.h
+++ b/sources.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: sources.h 2.4 2012/06/17 11:19:23 kls Exp $
+ * $Id: sources.h 3.1 2013/04/11 10:23:16 kls Exp $
*/
#ifndef __SOURCES_H
@@ -31,8 +31,15 @@ public:
cSource(char Source, const char *Description);
~cSource();
int Code(void) const { return code; }
+ int Position(void) { return Position(code); }
+ ///< Returns the orbital position of the satellite in case this is a DVB-S
+ ///< source (zero otherwise). The returned value is in the range -1800...+1800.
+ ///< A positive sign indicates a position east of Greenwich, while western
+ ///< positions have a negative sign. The absolute value is in "degrees * 10",
+ ///< which allows for a resolution of 1/10 of a degree.
const char *Description(void) const { return description; }
bool Parse(const char *s);
+ static int Position(int Code);
static char ToChar(int Code) { return (Code & st_Mask) >> 24; }
static cString ToString(int Code);
static int FromString(const char *s);