RadarFX API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
List of all members | Public Member Functions | Protected Types | Protected Attributes
makRadarFx::DtMessageFactory Class Reference

the DtMessageFactory class More...

Inheritance diagram for makRadarFx::DtMessageFactory:
Inheritance graph
[legend]

Public Member Functions

 DtMessageFactory (bool initializeDefaults=true, bool isBigEndian=false)
 constructor.
virtual ~DtMessageFactory ()
 destructor
virtual DtBaseMessagecreate (unsigned char *bytes, int length)
 Creates a specific DtMessage class from an array of bytes. Returns NULL if there is an error or no decoder for the message type.
virtual DtBaseMessagecreate (int msgType, unsigned char *bytes, int length)
virtual void registerCreator (unsigned int type, Decoder decoder)
 register a message decoder
virtual void initializeDefaultMessages ()
 initializes the message factory with the default message types
virtual void clear ()
 clears the factory of all messages

Protected Types

typedef std::map< unsigned int,
Decoder
DecoderMap

Protected Attributes

DecoderMap myCreatorMap
bool myIsBigEndian

Detailed Description

the DtMessageFactory class

Member Typedef Documentation

typedef std::map<unsigned int, Decoder> makRadarFx::DtMessageFactory::DecoderMap
protected

Constructor & Destructor Documentation

makRadarFx::DtMessageFactory::DtMessageFactory ( bool  initializeDefaults = true,
bool  isBigEndian = false 
)

constructor.

If initialize defaults is true then the factory will be populated with the standard RadarFX messages

virtual makRadarFx::DtMessageFactory::~DtMessageFactory ( )
virtual

destructor

Member Function Documentation

virtual DtBaseMessage* makRadarFx::DtMessageFactory::create ( unsigned char *  bytes,
int  length 
)
virtual

Creates a specific DtMessage class from an array of bytes. Returns NULL if there is an error or no decoder for the message type.

virtual DtBaseMessage* makRadarFx::DtMessageFactory::create ( int  msgType,
unsigned char *  bytes,
int  length 
)
virtual
virtual void makRadarFx::DtMessageFactory::registerCreator ( unsigned int  type,
Decoder  decoder 
)
virtual

register a message decoder

virtual void makRadarFx::DtMessageFactory::initializeDefaultMessages ( )
virtual

initializes the message factory with the default message types

virtual void makRadarFx::DtMessageFactory::clear ( )
virtual

clears the factory of all messages

Member Data Documentation

DecoderMap makRadarFx::DtMessageFactory::myCreatorMap
protected
bool makRadarFx::DtMessageFactory::myIsBigEndian
protected

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


Copyright © 2024 MAK Technologies, Inc. All Rights Reserved (www.mak.com)