CoT2Klv Converter Version 1.0
Public Types | Public Member Functions

ICoT2KlvConv Class Reference

ICoT2KlvConv interface More...

Inheritance diagram for ICoT2KlvConv:
CoT2KlvConv

List of all members.

Public Types

enum  KLV_MODE { LDS, UDS }
 

KLV_MODE defines an operational mode

More...

Public Member Functions

virtual bool Process (const char *cot_buf, const unsigned char *klv_buf, size_t &len)=0
 Process. Processes the CoT message.
virtual void SetSecurityMetadata (const unsigned char *buf, size_t len)=0
 Set Security Metadata binary buffer.

Detailed Description

ICoT2KlvConv interface definition

Examples:

CoT2KlvTest.cpp.


Member Enumeration Documentation

Enumerator:
LDS 

Local Data Set (1 byte key)

UDS 

Universal Data Set (16 byte key)


Member Function Documentation

virtual bool ICoT2KlvConv::Process ( const char *  cot_buf,
const unsigned char *  klv_buf,
size_t &  len 
) [pure virtual]

Process method receives a pointer to the buffer containing CoT message, processes it and fills the supplied buffer with the KLV encoded data.

Parameters:
cot_bufa const char*. Pointer to CoT buffer [in].
klv_bufa const unsigned char*. Pointer to KLV buffer [out].
lena size_t&. Encoded length [out].
Returns:
bool.

Implemented in CoT2KlvConv.

Examples:
CoT2KlvTest.cpp.
virtual void ICoT2KlvConv::SetSecurityMetadata ( const unsigned char *  buf,
size_t  len 
) [pure virtual]

According to the standard, Security Metadata Universal/Local Data Sets should be added to the KLV packet If set, this buffer will be encoded and added to the KLV data

Parameters:
bufa const unsigned char* . Pointer to Security Metadata Universal/Local Data Sets [in].
lena size_t. Buffer length [in].
Returns:
void.

Implemented in CoT2KlvConv.

Examples:
CoT2KlvTest.cpp.
 All Classes Functions Enumerations Enumerator
Untitled 1




 Copyright 2011,    IMPLEOTV SYSTEMS LTD