vdr  1.7.27
Public Types | Public Member Functions | Static Public Member Functions | Private Attributes
cSource Class Reference

#include <sources.h>

List of all members.

Public Types

enum  eSourceType {
  stNone = 0x00000000, stAtsc = ('A' << 24), stCable = ('C' << 24), stSat = ('S' << 24),
  stTerr = ('T' << 24), st_Mask = 0xFF000000, st_Pos = 0x0000FFFF, stNone = 0x00000000,
  stAtsc = ('A' << 24), stCable = ('C' << 24), stSat = ('S' << 24), stTerr = ('T' << 24),
  st_Mask = 0xFF000000, st_Pos = 0x0000FFFF
}
enum  eSourceType {
  stNone = 0x00000000, stAtsc = ('A' << 24), stCable = ('C' << 24), stSat = ('S' << 24),
  stTerr = ('T' << 24), st_Mask = 0xFF000000, st_Pos = 0x0000FFFF, stNone = 0x00000000,
  stAtsc = ('A' << 24), stCable = ('C' << 24), stSat = ('S' << 24), stTerr = ('T' << 24),
  st_Mask = 0xFF000000, st_Pos = 0x0000FFFF
}

Public Member Functions

 cSource (void)
 cSource (char Source, const char *Description)
 ~cSource ()
int Code (void) const
const char * Description (void) const
bool Parse (const char *s)
 cSource (void)
 cSource (char Source, const char *Description)
 ~cSource ()
int Code (void) const
const char * Description (void) const
bool Parse (const char *s)

Static Public Member Functions

static cString ToString (int Code)
static int FromString (const char *s)
static int FromData (eSourceType SourceType, int Position=0, bool East=false)
static bool IsAtsc (int Code)
static bool IsCable (int Code)
static bool IsSat (int Code)
static bool IsTerr (int Code)
static bool IsType (int Code, char Source)
static cString ToString (int Code)
static int FromString (const char *s)
static int FromData (eSourceType SourceType, int Position=0, bool East=false)
static bool IsAtsc (int Code)
static bool IsCable (int Code)
static bool IsSat (int Code)
static bool IsTerr (int Code)
static bool IsType (int Code, char Source)

Private Attributes

int code
char * description

Detailed Description

Definition at line 15 of file include/vdr/sources.h.


Member Enumeration Documentation

Enumerator:
stNone 
stAtsc 
stCable 
stSat 
stTerr 
st_Mask 
st_Pos 
stNone 
stAtsc 
stCable 
stSat 
stTerr 
st_Mask 
st_Pos 

Definition at line 17 of file include/vdr/sources.h.

Enumerator:
stNone 
stAtsc 
stCable 
stSat 
stTerr 
st_Mask 
st_Pos 
stNone 
stAtsc 
stCable 
stSat 
stTerr 
st_Mask 
st_Pos 

Definition at line 17 of file sources.h.


Constructor & Destructor Documentation

cSource::cSource ( void  )

Definition at line 14 of file sources.c.

References code, description, and stNone.

cSource::cSource ( char  Source,
const char *  Description 
)

Definition at line 20 of file sources.c.

References code, and description.

Definition at line 26 of file sources.c.

References description.

cSource::cSource ( void  )
cSource::cSource ( char  Source,
const char *  Description 
)

Member Function Documentation

int cSource::Code ( void  ) const [inline]

Definition at line 33 of file include/vdr/sources.h.

References code.

Referenced by cMenuEditSrcItem::ProcessKey(), and cMenuEditSrcItem::Set().

int cSource::Code ( void  ) const [inline]

Definition at line 33 of file sources.h.

References code.

const char* cSource::Description ( void  ) const [inline]

Definition at line 34 of file include/vdr/sources.h.

References description.

Referenced by cMenuEditSrcItem::Set().

const char* cSource::Description ( void  ) const [inline]

Definition at line 34 of file sources.h.

References description.

static int cSource::FromData ( eSourceType  SourceType,
int  Position = 0,
bool  East = false 
) [static]
int cSource::FromData ( eSourceType  SourceType,
int  Position = 0,
bool  East = false 
) [static]

Definition at line 92 of file sources.c.

References code, st_Pos, and stSat.

Referenced by cNitFilter::Process().

static int cSource::FromString ( const char *  s) [static]
int cSource::FromString ( const char *  s) [static]

Definition at line 56 of file sources.c.

References code, esyslog, isempty(), st_Pos, stNone, and stSat.

Referenced by Parse(), cDiseqc::Parse(), cChannel::Parse(), and cSetup::Parse().

static bool cSource::IsAtsc ( int  Code) [inline, static]

Definition at line 39 of file sources.h.

References st_Mask, and stAtsc.

static bool cSource::IsAtsc ( int  Code) [inline, static]

Definition at line 39 of file include/vdr/sources.h.

References st_Mask, and stAtsc.

static bool cSource::IsCable ( int  Code) [inline, static]

Definition at line 40 of file include/vdr/sources.h.

References st_Mask, and stCable.

Referenced by cSdtFilter::Process().

static bool cSource::IsCable ( int  Code) [inline, static]

Definition at line 40 of file sources.h.

References st_Mask, and stCable.

static bool cSource::IsSat ( int  Code) [inline, static]

Definition at line 41 of file sources.h.

References st_Mask, and stSat.

static bool cSource::IsSat ( int  Code) [inline, static]

Definition at line 41 of file include/vdr/sources.h.

References st_Mask, and stSat.

Referenced by cDvbDevice::ProvidesTransponder().

static bool cSource::IsTerr ( int  Code) [inline, static]

Definition at line 42 of file sources.h.

References st_Mask, and stTerr.

static bool cSource::IsTerr ( int  Code) [inline, static]

Definition at line 42 of file include/vdr/sources.h.

References st_Mask, and stTerr.

Referenced by cChannel::TransponderDataToString().

static bool cSource::IsType ( int  Code,
char  Source 
) [inline, static]

Definition at line 43 of file sources.h.

References st_Mask.

static bool cSource::IsType ( int  Code,
char  Source 
) [inline, static]

Definition at line 43 of file include/vdr/sources.h.

References st_Mask.

Referenced by cChannel::IsSourceType().

bool cSource::Parse ( const char *  s)
bool cSource::Parse ( const char *  s)

Definition at line 31 of file sources.c.

References code, description, FromString(), and stNone.

static cString cSource::ToString ( int  Code) [static]
cString cSource::ToString ( int  Code) [static]

Member Data Documentation

int cSource::code [private]

Definition at line 27 of file include/vdr/sources.h.

Referenced by Code(), cSource(), FromData(), FromString(), and Parse().

char * cSource::description [private]

Definition at line 28 of file include/vdr/sources.h.

Referenced by cSource(), Description(), Parse(), and ~cSource().


The documentation for this class was generated from the following files: