VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Types | Protected Attributes
makVrf::DtMessageFactory Class Reference

the DtMessageFactory class More...

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

Public Member Functions

 DtMessageFactory (bool initializeDefaults=true, bool isBigEndian=false)
 constructor. More...
 
virtual ~DtMessageFactory ()
 destructor More...
 
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. More...
 
virtual DtBaseMessagecreate (int msgType, unsigned char *bytes, int length)
 
virtual void registerCreator (unsigned int type, Decoder decoder)
 register a message decoder More...
 
virtual void initializeDefaultMessages ()
 initializes the message factory with the default message types More...
 
virtual void clear ()
 clears the factory of all messages More...
 

Protected Types

typedef std::map< unsigned int,
Decoder
DecoderMap
 

Protected Attributes

DecoderMap myCreatorMap
 
bool myIsBigEndian
 

Detailed Description

the DtMessageFactory class

Member Typedef Documentation

Constructor & Destructor Documentation

makVrf::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 makVrf::DtMessageFactory::~DtMessageFactory ( )
virtual

destructor

Member Function Documentation

virtual DtBaseMessage* makVrf::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* makVrf::DtMessageFactory::create ( int  msgType,
unsigned char bytes,
int  length 
)
virtual
virtual void makVrf::DtMessageFactory::registerCreator ( unsigned int  type,
Decoder  decoder 
)
virtual

register a message decoder

virtual void makVrf::DtMessageFactory::initializeDefaultMessages ( )
virtual

initializes the message factory with the default message types

virtual void makVrf::DtMessageFactory::clear ( )
virtual

clears the factory of all messages

Member Data Documentation

DecoderMap makVrf::DtMessageFactory::myCreatorMap
protected
bool makVrf::DtMessageFactory::myIsBigEndian
protected

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

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)