CoT2Klv Converter Version 1.0
Public Member Functions | Public Attributes

CEG0601Enc Class Reference

CEG0601Enc class definition More...

List of all members.

Public Member Functions

const char * EncodeValue (const unsigned char tag, const void *value, int &length)
 Converts a value into units according to the EG0601 spec.

Public Attributes

unsigned __int64 m_uval_64
int m_val_32
unsigned short m_uval_16

Detailed Description

\

CEG0601Enc class definition. CEG0601Enc metadata processing module.


Member Function Documentation

const char* CEG0601Enc::EncodeValue ( const unsigned char  tag,
const void *  value,
int &  length 
)

EncodeValue converts a value into formated value in units defined in EG0601 spec.

Parameters:
taga 1 byte Key Tag
valuea void*. Pointer to value
lengtha size_t&. A number of bytes (according to EG0601 spec) in returned buffer.
Returns:
const char* A pointer to the converted buffer.
Note:
This function returns a pointer to the statically allocated buffer! This means that the next call to EncodeValue with the same Tag will rewrite this buffer! You should copy it before the next call to EncodeValue Usage: Convert Platform Heading Angle (Tag 5) to 2 bytes (unsigned short)
 double_val = 159.9744; 
 p = conv->EncodeValue( 5, &double_val , length );
 All Classes Functions Enumerations Enumerator
Untitled 1




 Copyright 2011,    IMPLEOTV SYSTEMS LTD