SASC
DVBSoftCAM

cOverrideCat Class Reference

Inheritance diagram for cOverrideCat:

List of all members.

Public Member Functions

 cOverrideCat (void)
virtual bool Parse (char *str)
int GetCatEntry (unsigned char *buff)
 cOverrideCat (void)
virtual bool Parse (char *str)
int GetCatEntry (unsigned char *buff)

Detailed Description

Definition at line 188 of file override.c.


Constructor & Destructor Documentation

cOverrideCat::cOverrideCat ( void  ) [inline]

Definition at line 192 of file override.c.

References OV_CAT, and cOverride::type.

{ type=OV_CAT; }
cOverrideCat::cOverrideCat ( void  ) [inline]

Definition at line 192 of file override.c.

References OV_CAT, and cOverride::type.

{ type=OV_CAT; }

Member Function Documentation

int cOverrideCat::GetCatEntry ( unsigned char *  buff)

Definition at line 209 of file override.c.

References L_CORE_OVER, and PRINTF.

Referenced by cOverrides::GetCat().

{
  PRINTF(L_CORE_OVER,"cat: added caid %04x pid %04x",caid,pid);
  buff[0]=0x09;
  buff[1]=0x04;
  buff[2]=(caid>>8)&0xFF;
  buff[3]= caid    &0xFF;
  buff[4]=(pid >>8)&0xFF;
  buff[5]= pid     &0xFF;
  return 6;
}
int cOverrideCat::GetCatEntry ( unsigned char *  buff)
virtual bool cOverrideCat::Parse ( char *  str) [virtual]

Implements cOverride.

bool cOverrideCat::Parse ( char *  str) [virtual]

Implements cOverride.

Definition at line 197 of file override.c.

References L_CORE_LOAD, L_CORE_OVER, cValidityRange::Parse2(), cValidityRange::Print(), and PRINTF.

{
  if((str=Parse2(str))) {
    if(sscanf(str,"%x:%x",&caid,&pid)==2) {
      PRINTF(L_CORE_OVER,"cat: %s - caid %04x pid %04x",*Print(),caid,pid);
      return true;
      }
    PRINTF(L_CORE_LOAD,"override: CAT format error");
    }
  return false;
}

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines