|
Klv2CoT Converter Version 1.0
|
IKlv2CoTConv interface More...
Public Types | |
| enum | KLV_MODE { LDS, UDS } |
| KLV_MODE defines an operational mode. More... | |
| enum | COT_MODE { PLATFORM_POSITION = 1, SPI = 2, PLATFORM_POSITION_AND_SPI = 3 } |
| COT_MODE defines an operational mode More... | |
| enum | BattleDimension { BD_Space, BD_Air, BD_Ground, BD_Sea_Surface, BD_Sea_Subsurface, BD_Other } |
| BattleDimension enum More... | |
| enum | Affiliation { AF_Pending, AF_Unknown, AF_Assumed_friend, AF_Friend, AF_Neutral, AF_Suspect, AF_Hostile, AF_Joker, AF_Faker, AF_None_specified, AF_Other } |
| Affiliation enum More... | |
Public Member Functions | |
| virtual bool | Process (char *klv_buf, size_t len, string &xmlStrPP, string &xmlStrSPI)=0 |
| Process. Processes the Klv data buffer. | |
| virtual bool | Process (list< IKlvItem * > *klvList, string &xmlStrPP, string &xmlStrSPI)=0 |
| Process. Processes the Klv items list. | |
| virtual void | SetBattleDimensionInfo (const BattleDimension bd)=0 |
| SetBattleDimension. Sets BattleDimension. | |
| virtual void | SetAffiliationInfo (const Affiliation af)=0 |
| SetAffiliationInfo. Sets Affiliation. | |
| virtual void | SetFunctionTypeInfo (const char *finfo)=0 |
| SetFunctionTypeInfo. Sets FunctionInfo. | |
| virtual void | SetCoTMode (const COT_MODE cot_mode)=0 |
| SetCoTMode. Sets COT operational mode | |
| virtual const COT_MODE | GetCoTMode ()=0 |
| GetCoTMode. Gets COT operational mode | |
IKlv2CoTConv interface definition
CoT affiliation of atoms The "Atoms" portion of the "type" tree contains fields taken from MIL-STD-2525.
BattleDimension enumeration The "Atoms" portion of the "type" tree contains the "Battle Dimension" fields taken from MIL-STD-2525. "Battle Dimension" is a single character taken from MIL-STD-2525.
COT_MODE specifies the Situational Awareness COT message type generated by the Converter Generally, the Converter may either produce one type of the messages or both, depending on the mode set.
| virtual const COT_MODE IKlv2CoTConv::GetCoTMode | ( | ) | [pure virtual] |
Converter may either produce one type of the messages or both, depending on the mode set.
| virtual bool IKlv2CoTConv::Process | ( | list< IKlvItem * > * | klvList, |
| string & | xmlStrPP, | ||
| string & | xmlStrSPI | ||
| ) | [pure virtual] |
Process method receives a pointer to the KLV items list, processes it and fills the supplied buffer with the CoT message.
| klvList | a list<IKlvItem>. Pointer to the list of IKlvItems [in]. |
| xmlStrPP | a string. Platform Position message string [out]. |
| xmlStrSPI | a string. Sensor Point of Interest message string [out]. |
| virtual bool IKlv2CoTConv::Process | ( | char * | klv_buf, |
| size_t | len, | ||
| string & | xmlStrPP, | ||
| string & | xmlStrSPI | ||
| ) | [pure virtual] |
Process method receives a pointer to the data buffer containing Klv metadata, processes it and fills the supplied buffer with the CoT message.
| klv_buf | a const char*. Pointer to KLV buffer [in]. |
| len | a size_t. Defines klv_buf length [in]. |
| xmlStrPP | a string. Platform Position message string [out]. |
| xmlStrSPI | a string. Sensor Point of Interest message string [out]. |
| virtual void IKlv2CoTConv::SetAffiliationInfo | ( | const Affiliation | af | ) | [pure virtual] |
Sets CoT affiliation of the atoms
| af | the Affiliation. Defines Affiliation field. |
| virtual void IKlv2CoTConv::SetBattleDimensionInfo | ( | const BattleDimension | bd | ) | [pure virtual] |
Sets CoT BattleDimension of the atoms
| bd | the BattleDimension. Defines BattleDimension field. |
| virtual void IKlv2CoTConv::SetCoTMode | ( | const COT_MODE | cot_mode | ) | [pure virtual] |
Converter may either produce one type of the messages or both, depending on the mode set.
| cot_mode | a COT_MODE. Defines COT operational mode. |
| virtual void IKlv2CoTConv::SetFunctionTypeInfo | ( | const char * | finfo | ) | [pure virtual] |
Sets dimension specific Function (taken from MIL-STD-2525 function fields (upper case))
| finfo | a const char*. Defines Function field. |