SASC-NG
DVBSoftCAM

cPlainKeyConax Class Reference

Inheritance diagram for cPlainKeyConax:

List of all members.

Public Member Functions

 cPlainKeyConax (bool Super)
virtual bool Parse (const char *line)

Protected Member Functions

virtual cString PrintKeyNr (void)

Detailed Description

Definition at line 139 of file conax.c.


Constructor & Destructor Documentation

cPlainKeyConax::cPlainKeyConax ( bool  Super)

Definition at line 149 of file conax.c.

:cBNKey(Super)
{}

Member Function Documentation

bool cPlainKeyConax::Parse ( const char *  line) [virtual]

Reimplemented from cBNKey.

Definition at line 153 of file conax.c.

References GetChar(), GetHex(), cPlainKey::keynr, PLAINLEN_CONAX, cBNKey::SetBinKey(), sid, and cPlainKey::type.

{
  unsigned char sid, skey[PLAINLEN_CONAX];
  if(GetChar(line,&type,1) && GetHex(line,&sid,1) &&
     GetChar(line,&keynr,1) && GetHex(line,skey,PLAINLEN_CONAX)) {
    type=toupper(type); keynr=toupper(keynr); id=sid;
    SetBinKey(skey,PLAINLEN_CONAX);
    return true;
    }
  return false;
}
cString cPlainKeyConax::PrintKeyNr ( void  ) [protected, virtual]

Reimplemented from cPlainKey.

Definition at line 165 of file conax.c.

References cPlainKey::keynr, and cString::sprintf().

{
  return cString::sprintf("%c",keynr);
}

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