![]() |
VR-Link API Documentation for DIS
|
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 More... | |
| virtual | ~DtPduDecoderFactory () |
| destructor More... | |
| virtual void | initialize () |
| virtual DtPduDecoder * | createDecoder (DtPduKind kind) |
| Create an Decoder for the specified object class. More... | |
| virtual DtPduDecoder * | addDecoder (DtPduKind kind, DtPduDecoder *Decoder) |
| Add a Decoder prototype to the factory. More... | |
| virtual void | clearDecoder (DtPduKind kind) |
| remove this specific decoder from the factory. More... | |
| virtual DtPduDecoder * | decoder (DtPduKind kind) |
| Returns the Decoder prototype associated with handle by a previous call to addDecoder. More... | |
Protected Types | |
| typedef std::map< DtPduKind, DtPduDecoder * > | PduToDecoderMap |
Protected Attributes | |
| PduToDecoderMap | myProtos |
| DtExerciseConn * | myExConn |
Private Member Functions | |
| DtPduDecoderFactory (const DtPduDecoderFactory &orig) | |
| copy constructor - not implemented. More... | |
| DtPduDecoderFactory & | operator= (const DtPduDecoderFactory &orig) |
| assignment operator - not implemented. More... | |
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).
|
protected |
| DtPduDecoderFactory::DtPduDecoderFactory | ( | DtExerciseConn * | exConn | ) |
constructor
|
virtual |
destructor
|
private |
copy constructor - not implemented.
|
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 |
remove this specific decoder from the factory.
If another encoder is not added then this pdu will not decode correctly.
|
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 |
Returns the Decoder prototype associated with handle by a previous call to addDecoder.
|
virtual |
|
private |
assignment operator - not implemented.
|
protected |
|
protected |