VR-Link API Documentation for DIS
List of all members | Public Member Functions | Protected Types | Protected Attributes
DtPduDecoderFactory Class Reference

Instances of DtPduDecoderFactory are used to create Decoders which know how to decode an DIS message (or network representation) into a repository (or host representation). More...

+ Collaboration diagram for DtPduDecoderFactory:

Public Member Functions

 DtPduDecoderFactory ()
 constructor
virtual ~DtPduDecoderFactory ()
 destructor
 DtPduDecoderFactory (const DtPduDecoderFactory &orig)
 copy constructor Copies across added Decoder creation functions.
DtPduDecoderFactoryoperator= (const DtPduDecoderFactory &orig)
 assignment operator Copies across added Decoder creation functions.
virtual DtPduDecodercreateDecoder (DtPduKind hand)
 Create a Decoder for the specified interaction class.
virtual DtPduDecoderaddDecoder (DtPduKind hand, DtPduDecoder *decoder)
 Add a Decoder prototype to the factory.
virtual DtPduDecoderdecoder (DtPduKind hand)
 Returns the Decoder prototype associated with handle by a previous call to addDecoder.
virtual void addDefaultDecoders (DtExerciseConn *exConn, int disVersion)
 Add all decoders for your specific version of DIS.

Protected Types

typedef std::map< DtPduKind,
DtPduDecoder * > 
PduHandleToDecoderMap
 A list that maps class handles (DtIntHashKeys) to DtInteractionDecoder pointers.

Protected Attributes

PduHandleToDecoderMap myProtos

Detailed Description

Instances of DtPduDecoderFactory are used to create Decoders which know how to decode an DIS message (or network representation) into a repository (or host representation).

Member Typedef Documentation

A list that maps class handles (DtIntHashKeys) to DtInteractionDecoder pointers.

Constructor & Destructor Documentation

DtPduDecoderFactory::DtPduDecoderFactory ( )

constructor

virtual DtPduDecoderFactory::~DtPduDecoderFactory ( )
virtual

destructor

DtPduDecoderFactory::DtPduDecoderFactory ( const DtPduDecoderFactory orig)

copy constructor Copies across added Decoder creation functions.

Member Function Documentation

virtual DtPduDecoder* DtPduDecoderFactory::addDecoder ( DtPduKind  hand,
DtPduDecoder decoder 
)
virtual

Add a Decoder prototype to the factory.

The Decoder prototype will be cloned by createDecoder when called for the appropriate handle. Caller deletes the Decoder, but AFTER the Decoder factory no longer needs it. Returns any previous Decoder which was replaced by the add.

virtual void DtPduDecoderFactory::addDefaultDecoders ( DtExerciseConn exConn,
int  disVersion 
)
virtual

Add all decoders for your specific version of DIS.

virtual DtPduDecoder* DtPduDecoderFactory::createDecoder ( DtPduKind  hand)
virtual

Create a Decoder for the specified interaction class.

Note: Caller is responsible for deleting. Returns NULL if Decoder creation function is not in the factory.

virtual DtPduDecoder* DtPduDecoderFactory::decoder ( DtPduKind  hand)
virtual

Returns the Decoder prototype associated with handle by a previous call to addDecoder.

DtPduDecoderFactory& DtPduDecoderFactory::operator= ( const DtPduDecoderFactory orig)

assignment operator Copies across added Decoder creation functions.

Member Data Documentation

PduHandleToDecoderMap DtPduDecoderFactory::myProtos
protected

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

Document ID: Generated on Wed Oct 23 22:25:48 EDT 2013 from SVN revision 132765
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)