SASC-NG
DVBSoftCAM

cProviderIrdeto Class Reference

#include <parse.h>

Inheritance diagram for cProviderIrdeto:

List of all members.

Public Member Functions

 cProviderIrdeto (void)
 cProviderIrdeto (unsigned char pb, const unsigned char *pi)
virtual bool MatchID (const unsigned char *data)
virtual bool MatchEMM (const unsigned char *data)
virtual unsigned long long ProvId (void)

Public Attributes

unsigned char provBase
unsigned char provId [3]

Detailed Description

Definition at line 84 of file parse.h.


Constructor & Destructor Documentation

cProviderIrdeto::cProviderIrdeto ( void  ) [inline]

Definition at line 89 of file parse.h.

{}
cProviderIrdeto::cProviderIrdeto ( unsigned char  pb,
const unsigned char *  pi 
)

Definition at line 167 of file parse.c.

References provBase, and provId.

{
  provBase=pb;
  memcpy(provId,pi,sizeof(provId));
}

Member Function Documentation

bool cProviderIrdeto::MatchEMM ( const unsigned char *  data) [virtual]

Implements cProvider.

Definition at line 179 of file parse.c.

References cParseIrdeto::AddrBase(), cParseIrdeto::AddrLen(), provBase, and provId.

{
  const unsigned int len=cParseIrdeto::AddrLen(data);
  const unsigned int mode=cParseIrdeto::AddrBase(data);
  return (   mode<0x10 && len<=sizeof(provId)
          && mode==provBase && (!len || !memcmp(&data[4],provId,len)));
}
bool cProviderIrdeto::MatchID ( const unsigned char *  data) [virtual]

Implements cProvider.

Definition at line 173 of file parse.c.

References cParseIrdeto::AddrBase(), and provBase.

{
  const unsigned int mode=cParseIrdeto::AddrBase(data);
  return (mode<0x10 && mode==provBase);
}
unsigned long long cProviderIrdeto::ProvId ( void  ) [virtual]

Implements cProvider.

Definition at line 187 of file parse.c.

References provBase, and provId.

{
  return (provId[0]<<24)+(provId[1]<<16)+(provId[2]<<8)+provBase;
}

Member Data Documentation


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