CoT2Klv Converter Version 1.0
Public Member Functions

CoT2KlvConv Class Reference

CoT2KlvConv class definition More...

Inheritance diagram for CoT2KlvConv:
ICoT2KlvConv

List of all members.

Public Member Functions

 CoT2KlvConv (const ICoT2KlvConv::KLV_MODE klv_mode)
 CoT2KlvConv constructor.
virtual ~CoT2KlvConv ()
 CoT2KlvConv destructor.
bool Process (const char *cot_buf, const unsigned char *klv_buf, size_t &len)
 Process. Processes the CoT message.
void ProcessPlatformItems ()
void ProcessSensorItems ()
CConvertedData *const Convert_ISO8601_2000_To_Posix (const char *time_string)
void SetSecurityMetadata (const unsigned char *buf, size_t len)
 Set Security Metadata binary buffer.

Detailed Description

CoT2KlvConv class definition. Main processing module. CoT2KlvConv implements the ICoT2KlvConv interface CoT2KlvConv comprises the following processing components:


Member Function Documentation

bool CoT2KlvConv::Process ( const char *  cot_buf,
const unsigned char *  klv_buf,
size_t &  len 
) [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_buf buffer [out].
klv_bufan size_t&. Encoded length [out].
Returns:
bool.

Implements ICoT2KlvConv.

void CoT2KlvConv::SetSecurityMetadata ( const unsigned char *  buf,
size_t  len 
) [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.

Implements ICoT2KlvConv.

 All Classes Functions Enumerations Enumerator
Untitled 1




 Copyright 2011,    IMPLEOTV SYSTEMS LTD