SASC
DVBSoftCAM

cProviderSeca Class Reference

#include <parse.h>

Inheritance diagram for cProviderSeca:

List of all members.

Public Member Functions

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

Public Attributes

unsigned char provId [2]
unsigned char sa [3]

Detailed Description

Definition at line 151 of file parse.h.


Constructor & Destructor Documentation

cProviderSeca::cProviderSeca ( void  ) [inline]

Definition at line 156 of file parse.h.

{}
cProviderSeca::cProviderSeca ( const unsigned char *  pi,
const unsigned char *  s 
)

Definition at line 232 of file parse.c.

References provId, and sa.

{
  memcpy(provId,pi,sizeof(provId));
  memcpy(sa,s,sizeof(sa));
}
cProviderSeca::cProviderSeca ( void  ) [inline]

Definition at line 156 of file parse.h.

{}
cProviderSeca::cProviderSeca ( const unsigned char *  pi,
const unsigned char *  s 
)

Member Function Documentation

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

Implements cProvider.

Definition at line 244 of file parse.c.

References provId, sa, SA, SID, and TID.

{
  return TID(data)==0x84 &&
         !memcmp(SID(data),provId,sizeof(provId)) && !memcmp(SA(data),sa,sizeof(sa));
}
virtual bool cProviderSeca::MatchEMM ( const unsigned char *  data) [virtual]

Implements cProvider.

bool cProviderSeca::MatchID ( const unsigned char *  data) [virtual]

Implements cProvider.

Definition at line 238 of file parse.c.

References provId, and cParseSeca::ProvIdPtr().

{
  const unsigned char *id=cParseSeca::ProvIdPtr(data);
  return id && !memcmp(id,provId,sizeof(provId));
}
virtual bool cProviderSeca::MatchID ( const unsigned char *  data) [virtual]

Implements cProvider.

unsigned long long cProviderSeca::ProvId ( void  ) [virtual]

Implements cProvider.

Definition at line 250 of file parse.c.

References provId.

{
  return (provId[0]<<8)+provId[1];
}
virtual unsigned long long cProviderSeca::ProvId ( void  ) [virtual]

Implements cProvider.


Member Data Documentation

unsigned char cProviderSeca::sa

Definition at line 154 of file parse.h.

Referenced by cProviderSeca(), MatchEMM(), and cSecaCardInfo::Parse().


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