SASC
DVBSoftCAM

cMutableKey Class Reference

#include <data.h>

Inheritance diagram for cMutableKey:

List of all members.

Public Member Functions

 cMutableKey (bool Super)
virtual ~cMutableKey ()
virtual bool Cmp (cPlainKey *k)
virtual void Get (void *mem)
virtual int Size (void)
virtual bool SetKey (void *Key, int Keylen)
virtual bool SetBinKey (unsigned char *Mem, int Keylen)
 cMutableKey (bool Super)
virtual ~cMutableKey ()
virtual bool Cmp (cPlainKey *k)
virtual void Get (void *mem)
virtual int Size (void)
virtual bool SetKey (void *Key, int Keylen)
virtual bool SetBinKey (unsigned char *Mem, int Keylen)

Protected Member Functions

virtual cString Print (void)
virtual cPlainKey * Alloc (void) const =0
virtual cString Print (void)
virtual cPlainKey * Alloc (void) const =0

Detailed Description

Definition at line 295 of file data.h.


Constructor & Destructor Documentation

cMutableKey::cMutableKey ( bool  Super)

Definition at line 736 of file data.c.

:cPlainKey(Super)
{
  real=0;
}
cMutableKey::~cMutableKey ( ) [virtual]

Definition at line 742 of file data.c.

{
  delete real;
}
cMutableKey::cMutableKey ( bool  Super)
virtual cMutableKey::~cMutableKey ( ) [virtual]

Member Function Documentation

virtual cPlainKey* cMutableKey::Alloc ( void  ) const [protected, pure virtual]

Implemented in cDualKey, and cDualKey.

Referenced by SetBinKey(), and SetKey().

virtual cPlainKey* cMutableKey::Alloc ( void  ) const [protected, pure virtual]

Implemented in cDualKey, and cDualKey.

virtual bool cMutableKey::Cmp ( cPlainKey *  k) [virtual]

Implements cPlainKey.

bool cMutableKey::Cmp ( cPlainKey *  k) [virtual]

Implements cPlainKey.

Definition at line 764 of file data.c.

References cPlainKey::Cmp(), and k.

{
  cMutableKey *mk=dynamic_cast<cMutableKey *>(k); // high magic ;)
  return real->Cmp(mk ? mk->real : k);
}
void cMutableKey::Get ( void *  mem) [virtual]

Implements cPlainKey.

Definition at line 770 of file data.c.

References cPlainKey::Get().

{
  real->Get(mem);
}
virtual void cMutableKey::Get ( void *  mem) [virtual]

Implements cPlainKey.

virtual cString cMutableKey::Print ( void  ) [protected, virtual]

Implements cPlainKey.

cString cMutableKey::Print ( void  ) [protected, virtual]

Implements cPlainKey.

Definition at line 775 of file data.c.

References cPlainKey::Print().

{
  return real->Print();
}
virtual bool cMutableKey::SetBinKey ( unsigned char *  Mem,
int  Keylen 
) [virtual]

Implements cPlainKey.

bool cMutableKey::SetBinKey ( unsigned char *  Mem,
int  Keylen 
) [virtual]

Implements cPlainKey.

Definition at line 753 of file data.c.

References Alloc(), and cPlainKey::SetBinKey().

Referenced by cPlainKeySeca::Parse(), cPlainKeyNagra::Parse(), and cPlainKeyCryptoworks::Parse().

{
  delete real;
  return (real=Alloc()) && real->SetBinKey(Mem,Keylen);
}
virtual bool cMutableKey::SetKey ( void *  Key,
int  Keylen 
) [virtual]

Implements cPlainKey.

bool cMutableKey::SetKey ( void *  Key,
int  Keylen 
) [virtual]

Implements cPlainKey.

Definition at line 747 of file data.c.

References Alloc(), and cPlainKey::SetKey().

{
  delete real;
  return (real=Alloc()) && real->SetKey(Key,Keylen);
}
virtual int cMutableKey::Size ( void  ) [virtual]

Implements cPlainKey.

int cMutableKey::Size ( void  ) [virtual]

Implements cPlainKey.

Definition at line 759 of file data.c.

References cPlainKey::Size().

{
  return real->Size();
}

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