VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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. More...

Public Types

enum  Encoding { BER, BER_OID, _16B }

Public Member Functions

 DtKlvKey ()
 Default CTOR.
 DtKlvKey (unsigned char *universalKey)
 CTOR This version takes a key represented as a string.
 DtKlvKey (unsigned int tag, Encoding encoding)
 CTOR This CTOR takes the tag and encoding type.
 ~DtKlvKey ()
bool operator== (const DtKlvKey &rhs)
 Comparison operator.
unsigned charbytes ()
 Get the set of bytes that makes up this key.
void setBytes (unsigned char *buffer, unsigned int length, Encoding enc)
 Set the key as a set of bytes.
void setBytes (std::string stringRep)
unsigned int bytesLength ()
 Get the number of bytes in the key.
Encoding encoding ()
 Get the encoding type used by this key.
void setEncoding (Encoding enc)
 Set the encoding type used by this key.
unsigned int tag ()
 Get the key tag not valid for 16 byte Universal Keys.
void setTag (unsigned int value)
 Set the key tag.

Protected Attributes

unsigned char myBytes [16]
unsigned int myTagLength
Encoding myEncoding

Detailed Description

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

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 Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)