Home

Dokumentation

Impressum

Dokumentation VDR
 

Main Page   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields   Globals  

sources.h

Go to the documentation of this file.
00001 
00010 #ifndef __SOURCES_H
00011 #define __SOURCES_H
00012 
00013 #include "config.h"
00014 
00015 
00017 class cSource : public cListObject {
00018 public:
00019   enum eSourceType {
00020 
00024     stNone  = 0x0000,
00025 
00029     stCable = 0x4000,
00030 
00034     stSat   = 0x8000,
00035 
00039     stTerr  = 0xC000,
00040     st_Mask = 0xC000,
00041     st_Neg  = 0x0800,
00042     };
00043 private:
00044   int code;
00045   char *description;
00046 public:
00047   cSource(void);
00048   ~cSource();
00049   int Code(void) const { return code; }
00050   const char *Description(void) const { return description; }
00051   bool Parse(const char *s);
00052   static const char *ToString(int Code);
00053   static int FromString(const char *s);
00054   };
00055 
00056 
00058 class cSources : public cConfig<cSource> {
00059 public:
00060   cSource *Get(int Code);
00061   };
00062 
00063 extern cSources Sources;
00064 
00065 #endif //__SOURCES_H
00066 

Generated on Wed Feb 5 23:30:11 2003 for VDR by doxygen1.3-rc2