|
CoT2Klv Converter Version 1.0
|
CoT2KlvConv class definition More...
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. | |
CoT2KlvConv class definition. Main processing module. CoT2KlvConv implements the ICoT2KlvConv interface CoT2KlvConv comprises the following processing components:
| 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.
| cot_buf | a const char*. Pointer to CoT buffer [in]. |
| klv_buf | a const unsigned char*. Pointer to klv_buf buffer [out]. |
| klv_buf | an size_t&. Encoded length [out]. |
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
| buf | a const unsigned char* . Pointer to Security Metadata Universal/Local Data Sets [in]. |
| len | a size_t&. Buffer length [in]. |
Implements ICoT2KlvConv.