VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Types | Protected Attributes | Private Member Functions
DtPduDecoderFactory Class Reference

Instances of DtPduDecoderFactory are used to create Decoders which know how to encode a state repository (or host representation) into a DIS Pdu (or network representation). More...

+ Collaboration diagram for DtPduDecoderFactory:

Public Member Functions

 DtPduDecoderFactory (DtExerciseConn *exConn)
 constructor
virtual ~DtPduDecoderFactory ()
 destructor
virtual void initialize ()
virtual DtPduDecodercreateDecoder (DtPduKind kind)
 Create an Decoder for the specified object class.
virtual DtPduDecoderaddDecoder (DtPduKind kind, DtPduDecoder *Decoder)
 Add a Decoder prototype to the factory.
virtual void clearDecoder (DtPduKind kind)
 remove this specific decoder from the factory.
virtual DtPduDecoderdecoder (DtPduKind kind)
 Returns the Decoder prototype associated with handle by a previous call to addDecoder.

Protected Types

typedef std::map< DtPduKind,
DtPduDecoder * > 
PduToDecoderMap

Protected Attributes

PduToDecoderMap myProtos
DtExerciseConnmyExConn

Private Member Functions

 DtPduDecoderFactory (const DtPduDecoderFactory &orig)
 copy constructor - not implemented.
DtPduDecoderFactoryoperator= (const DtPduDecoderFactory &orig)
 assignment operator - not implemented.

Detailed Description

Instances of DtPduDecoderFactory are used to create Decoders which know how to encode a state repository (or host representation) into a DIS Pdu (or network representation).

Member Typedef Documentation

Constructor & Destructor Documentation

DtPduDecoderFactory::DtPduDecoderFactory ( DtExerciseConn exConn)

constructor

virtual DtPduDecoderFactory::~DtPduDecoderFactory ( )
virtual

destructor

DtPduDecoderFactory::DtPduDecoderFactory ( const DtPduDecoderFactory orig)
private

copy constructor - not implemented.

Member Function Documentation

virtual DtPduDecoder* DtPduDecoderFactory::addDecoder ( DtPduKind  kind,
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::clearDecoder ( DtPduKind  kind)
virtual

remove this specific decoder from the factory.

If another encoder is not added then this pdu will not decode correctly.

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

Create an Decoder for the specified object class.

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

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

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

virtual void DtPduDecoderFactory::initialize ( )
virtual
DtPduDecoderFactory& DtPduDecoderFactory::operator= ( const DtPduDecoderFactory orig)
private

assignment operator - not implemented.

Member Data Documentation

DtExerciseConn* DtPduDecoderFactory::myExConn
protected
PduToDecoderMap DtPduDecoderFactory::myProtos
protected

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

Document ID: Generated on Fri Dec 2 02:42:08 EST 2016 from SVN revision 171416
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)