SASC
DVBSoftCAM

cOverrideIgnore Class Reference

Inheritance diagram for cOverrideIgnore:

List of all members.

Public Member Functions

 cOverrideIgnore (void)
virtual bool Parse (char *str)
bool Ignore (int Caid)
 cOverrideIgnore (void)
virtual bool Parse (char *str)
bool Ignore (int Caid)

Detailed Description

Definition at line 453 of file override.c.


Constructor & Destructor Documentation

cOverrideIgnore::cOverrideIgnore ( void  ) [inline]

Definition at line 457 of file override.c.

References OV_IGNORE, and cOverride::type.

cOverrideIgnore::cOverrideIgnore ( void  ) [inline]

Definition at line 457 of file override.c.

References OV_IGNORE, and cOverride::type.


Member Function Documentation

bool cOverrideIgnore::Ignore ( int  Caid)

Definition at line 484 of file override.c.

References i.

Referenced by cOverrides::Ignore().

{
  for(int i=0; i<num; i++)
    if(Caid==caid[i]) return true;
  return false;
}
bool cOverrideIgnore::Ignore ( int  Caid)
virtual bool cOverrideIgnore::Parse ( char *  str) [virtual]

Implements cOverride.

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

Implements cOverride.

Definition at line 462 of file override.c.

References i, L_CORE_LOAD, L_CORE_OVER, LBEND, LBPUT, LBSTART, OV_MAXIGNORES, cValidityRange::Parse2(), cValidityRange::Print(), and PRINTF.

{
  if((str=Parse2(str,true))) {
    num=0;
    int n=-1;
    do {
      int l=n+1;
      if(sscanf(&str[l],"%x%n",&caid[num],&n)!=1) {
        PRINTF(L_CORE_LOAD,"override: IGNORE format error");
        return false;
        }
      n+=l; num++;
      } while(num<OV_MAXIGNORES && str[n]==':');
    LBSTART(L_CORE_OVER);
    LBPUT("ignore: %s - caids",*Print());
    for(int i=0; i<num; i++) LBPUT(" %02x",caid[i]);
    LBEND();
    return true;
    }
  return false;
}

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