SASC-NG
DVBSoftCAM

cSystemConstCw Class Reference

Inheritance diagram for cSystemConstCw:

List of all members.

Public Member Functions

 cSystemConstCw (void)
virtual bool ProcessECM (const cEcmInfo *ecm, unsigned char *source)

Detailed Description

Definition at line 107 of file constcw.c.


Constructor & Destructor Documentation

cSystemConstCw::cSystemConstCw ( void  )

Definition at line 113 of file constcw.c.

References cSystem::constant.


Member Function Documentation

bool cSystemConstCw::ProcessECM ( const cEcmInfo *  ecm,
unsigned char *  source 
) [virtual]

Implements cSystem.

Definition at line 119 of file constcw.c.

References cEcmInfo::caId, cSystem::cw, cPlainKeys::FindKey(), cPlainKey::Get(), keys, cPlainKeyConstCw::Matches(), and cKeySnoop::OK().

{
  cKeySnoop ks(this,'X',ecm->caId,0);
  cPlainKey *pk=0;
  while((pk=keys.FindKey('X',ecm->caId,0,16,pk))) {
    cPlainKeyConstCw *ck=dynamic_cast<cPlainKeyConstCw *>(pk); // downcast
    if(ck && ck->Matches(ecm)) {
      pk->Get(cw);
      ks.OK(pk);
      return true;
      }
    }
  return false;
}

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