NAVTOR SDK  v.3.0
Software Development Kit for fast and efficient development of ECDIS, ECS and generic marine applications
ILWEParser Class Referenceabstract

Message parser
More...

#include <lwe_interface.h>

Inherits ISDKProperties.

Public Member Functions

virtual bool SDK_CALLTYPE IsSupported (const SDKAny *data) const =0 throw ()
 Detects the supported message type by binary data. More...
 
virtual SDKResult SDK_CALLTYPE Process (const ISDKPropertiesSP &properties, const SDKAny *data, SDKUInt32 &result, IEnumSDKComponentSP &messages)=0 throw ()
 Provides a method to parse a binary data in to message or part of message. More...
 

Detailed Description

Message parser

Member Function Documentation

◆ IsSupported()

virtual bool SDK_CALLTYPE IsSupported ( const SDKAny *  data) const
throw (
)
pure virtual

Detects the supported message type by binary data.

Parameters
[in]dataPointer to raw binary data received from the network
Returns
true if message format supported, false - otherwise

◆ Process()

virtual SDKResult SDK_CALLTYPE Process ( const ISDKPropertiesSP &  properties,
const SDKAny *  data,
SDKUInt32 &  result,
IEnumSDKComponentSP &  messages 
)
throw (
)
pure virtual

Provides a method to parse a binary data in to message or part of message.

Parameters
[in]hostHost address that sent the data
[in]portHost port that sent the data
[in]hostHost address that receive the data
[in]portHost port that receive the data
[in]dataPointer to the raw data that have been received from the network
[out]resultResult of data parsing (see LWEParserResult)
[out]messagesIEnumSDKComponent interface associated with received messages
Returns
SDKResult_Succeeded or an error if fails

The documentation for this class was generated from the following file: