VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Protected Attributes

A DtKlvKey instance represents a KLV (Key-Length-Value) Key field.

Public Types

enum  Encoding { BER, BER_OID, _16B }
 

Public Member Functions

 DtKlvKey ()
 
 DtKlvKey (unsigned char *universalKey)
 
 DtKlvKey (unsigned int tag, Encoding encoding)
 
 ~DtKlvKey ()
 
bool operator== (const DtKlvKey &rhs)
 
unsigned charbytes ()
 
void setBytes (unsigned char *buffer, unsigned int length, Encoding enc)
 
void setBytes (std::string stringRep)
 
unsigned int bytesLength ()
 
Encoding encoding ()
 
void setEncoding (Encoding enc)
 
unsigned int tag ()
 
void setTag (unsigned int value)
 

Protected Attributes

unsigned char myBytes [16]
 
unsigned int myTagLength
 
Encoding myEncoding
 

Member Enumeration Documentation

Enumerator
BER 

Basic Encoding Rules.

BER_OID 

Basic Encoding Rules - Object Identifier.

_16B 

16 byte universal key

Constructor & Destructor Documentation

makVrv::DtKlvKey::DtKlvKey ( )

Default CTOR.

makVrv::DtKlvKey::DtKlvKey ( unsigned char universalKey)

CTOR This version takes a key represented as a string.

makVrv::DtKlvKey::DtKlvKey ( unsigned int  tag,
Encoding  encoding 
)

CTOR This CTOR takes the tag and encoding type.

makVrv::DtKlvKey::~DtKlvKey ( )

Member Function Documentation

bool makVrv::DtKlvKey::operator== ( const DtKlvKey rhs)

Comparison operator.

unsigned char* makVrv::DtKlvKey::bytes ( )

Get the set of bytes that makes up this key.

void makVrv::DtKlvKey::setBytes ( unsigned char buffer,
unsigned int  length,
Encoding  enc 
)

Set the key as a set of bytes.

void makVrv::DtKlvKey::setBytes ( std::string  stringRep)
unsigned int makVrv::DtKlvKey::bytesLength ( )

Get the number of bytes in the key.

Encoding makVrv::DtKlvKey::encoding ( )

Get the encoding type used by this key.

void makVrv::DtKlvKey::setEncoding ( Encoding  enc)

Set the encoding type used by this key.

unsigned int makVrv::DtKlvKey::tag ( )

Get the key tag not valid for 16 byte Universal Keys.

void makVrv::DtKlvKey::setTag ( unsigned int  value)

Set the key tag.

Member Data Documentation

unsigned char makVrv::DtKlvKey::myBytes[16]
protected
unsigned int makVrv::DtKlvKey::myTagLength
protected
Encoding makVrv::DtKlvKey::myEncoding
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)