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
DtStateRepositoryExtensionDecoderFactory Class Reference

A DIS Exercise connection will create an instance of this class which allows state repository extension decoders to be registered and called automatically for both published and reflected objects. More...

+ Collaboration diagram for DtStateRepositoryExtensionDecoderFactory:

Public Member Functions

 DtStateRepositoryExtensionDecoderFactory (DtExerciseConn *conn)
 
 ~DtStateRepositoryExtensionDecoderFactory ()
 
DtStateRepositoryExtensionDecoder * createDecoder (DtString extName)
 
virtual
DtStateRepositoryExtensionDecoder * 
addDecoder (DtString extName, DtStateRepositoryExtensionDecoder *dec)
 Add a decoder prototype to the factory. More...
 
virtual void clearDecoder (DtString extName)
 remove this specific decoder from the factory. More...
 
virtual
DtStateRepositoryExtensionDecoder * 
decoder (DtString extName)
 Returns the decoder prototype associated with name by a previous call to addDecoder. More...
 

Protected Types

typedef std::map< DtString,
DtStateRepositoryExtensionDecoder * > 
ExtensionToDecoderMap
 

Protected Attributes

ExtensionToDecoderMap myProtos
 
DtExerciseConn * myExConn
 

Private Member Functions

 DtStateRepositoryExtensionDecoderFactory (const DtStateRepositoryExtensionDecoderFactory &orig)
 copy constructor - not implemented. More...
 
DtStateRepositoryExtensionDecoderFactory & operator= (const DtStateRepositoryExtensionDecoderFactory &orig)
 assignment operator - not implemented. More...
 

Detailed Description

A DIS Exercise connection will create an instance of this class which allows state repository extension decoders to be registered and called automatically for both published and reflected objects.

Member Typedef Documentation

Constructor & Destructor Documentation

DtStateRepositoryExtensionDecoderFactory::DtStateRepositoryExtensionDecoderFactory ( DtExerciseConn *  conn)
DtStateRepositoryExtensionDecoderFactory::~DtStateRepositoryExtensionDecoderFactory ( )
DtStateRepositoryExtensionDecoderFactory::DtStateRepositoryExtensionDecoderFactory ( const DtStateRepositoryExtensionDecoderFactory &  orig)
private

copy constructor - not implemented.

Member Function Documentation

virtual DtStateRepositoryExtensionDecoder* DtStateRepositoryExtensionDecoderFactory::addDecoder ( DtString  extName,
DtStateRepositoryExtensionDecoder *  dec 
)
virtual

Add a decoder prototype to the factory.

The decoder prototype will be cloned by createDecoder when called for the appropriate name. 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 DtStateRepositoryExtensionDecoderFactory::clearDecoder ( DtString  extName)
virtual

remove this specific decoder from the factory.

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

DtStateRepositoryExtensionDecoder* DtStateRepositoryExtensionDecoderFactory::createDecoder ( DtString  extName)
virtual DtStateRepositoryExtensionDecoder* DtStateRepositoryExtensionDecoderFactory::decoder ( DtString  extName)
virtual

Returns the decoder prototype associated with name by a previous call to addDecoder.

DtStateRepositoryExtensionDecoderFactory& DtStateRepositoryExtensionDecoderFactory::operator= ( const DtStateRepositoryExtensionDecoderFactory &  orig)
private

assignment operator - not implemented.

Member Data Documentation

DtExerciseConn* DtStateRepositoryExtensionDecoderFactory::myExConn
protected
ExtensionToDecoderMap DtStateRepositoryExtensionDecoderFactory::myProtos
protected

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

Document ID: Generated on Mon Sep 28 00:09:32 EDT 2026 from SVN revision 295353
Copyright © 1992-2025 MAK Technologies. All Rights Reserved (www.mak.com)