SASC
DVBSoftCAM

cIdSet Class Reference

#include <parse.h>

Inheritance diagram for cIdSet:

List of all members.

Public Member Functions

 cIdSet (void)
 ~cIdSet ()
void SetCard (cCard *c)
void ResetIdSet (void)
bool MatchEMM (const unsigned char *data)
bool MatchAndAssemble (cAssembleData *ad, int *updtype, cProvider **p)
 cIdSet (void)
 ~cIdSet ()
void SetCard (cCard *c)
void ResetIdSet (void)
bool MatchEMM (const unsigned char *data)
bool MatchAndAssemble (cAssembleData *ad, int *updtype, cProvider **p)

Protected Attributes

cCard * card

Detailed Description

Definition at line 70 of file parse.h.


Constructor & Destructor Documentation

cIdSet::cIdSet ( void  )

Definition at line 121 of file parse.c.

References card.

{
  card=0;
}
cIdSet::~cIdSet ( )

Definition at line 126 of file parse.c.

References card.

{
  delete card;
}
cIdSet::cIdSet ( void  )
cIdSet::~cIdSet ( )

Member Function Documentation

bool cIdSet::MatchAndAssemble ( cAssembleData *  ad,
int *  updtype,
cProvider **  p 
)

Definition at line 148 of file parse.c.

References cProvider::Assemble(), cCard::Assemble(), card, cAssembleData::Data(), data, cCard::MatchEMM(), cProviders::MatchProv(), cProvider::UpdateType(), and cCard::UpdateType().

Referenced by cCardClientRadegast::ProcessEMM(), cCardClientNewCamd::ProcessEMM(), cCardClientCCcam2::ProcessEMM(), cCardClientCamd35::ProcessEMM(), cSmartCardViaccess::Update(), and cSmartCardCryptoworks::Update().

{
  const unsigned char *data=ad->Data();
  cProvider *p;
  if(card && card->MatchEMM(data)) {
    if(updtype) *updtype=card->UpdateType(data);
    if(prov) *prov=0;
    if(card->Assemble(ad)>=0) return true;
    }
  else if((p=MatchProv(data))) {
    if(updtype) *updtype=p->UpdateType(data);
    if(prov) *prov=p;
    if(p->Assemble(ad)>=0) return true;
    }
  return false;
}
bool cIdSet::MatchAndAssemble ( cAssembleData *  ad,
int *  updtype,
cProvider **  p 
)
bool cIdSet::MatchEMM ( const unsigned char *  data)
void cIdSet::ResetIdSet ( void  )
void cIdSet::SetCard ( cCard *  c)

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