![]() |
VR-Link API Documentation for DIS
|
Instances of DtPduEncoderFactory are used to create encoders which know how to encode a state repository (or host representation) into a DIS Pdu (or network representation). More...
Collaboration diagram for DtPduEncoderFactory:Public Member Functions | |
| DtPduEncoderFactory (DtExerciseConn *exConn) | |
| constructor More... | |
| virtual | ~DtPduEncoderFactory () |
| destructor More... | |
| virtual void | initialize () |
| virtual DtPduEncoder * | createEncoder (DtPduKind kind) |
| Create an encoder for the specified object class. More... | |
| virtual DtPduEncoder * | addEncoder (DtPduKind kind, DtPduEncoder *encoder) |
| Add a encoder prototype to the factory. More... | |
| virtual void | clearEncoder (DtPduKind kind) |
| remove this specific encoder from the factory. More... | |
| virtual DtPduEncoder * | encoder (DtPduKind kind) |
| Returns the encoder prototype associated with handle by a previous call to addEncoder. More... | |
Protected Types | |
| typedef std::map< DtPduKind, DtPduEncoder * > | PduToEncoderMap |
Protected Attributes | |
| PduToEncoderMap | myProtos |
| DtExerciseConn * | myExConn |
Private Member Functions | |
| DtPduEncoderFactory (const DtPduEncoderFactory &orig) | |
| copy constructor - not implemented. More... | |
| DtPduEncoderFactory & | operator= (const DtPduEncoderFactory &orig) |
| assignment operator - not implemented. More... | |
Instances of DtPduEncoderFactory are used to create encoders which know how to encode a state repository (or host representation) into a DIS Pdu (or network representation).
|
protected |
| DtPduEncoderFactory::DtPduEncoderFactory | ( | DtExerciseConn * | exConn | ) |
constructor
|
virtual |
destructor
|
private |
copy constructor - not implemented.
|
virtual |
Add a encoder prototype to the factory.
The encoder prototype will be cloned by createEncoder when called for the appropriate handle. Caller deletes the encoder, but AFTER the encoder factory no longer needs it. Returns any previous encoder which was replaced by the add.
|
virtual |
remove this specific encoder from the factory.
If another encoder is not added then this pdu will not encode correctly.
|
virtual |
Create an encoder for the specified object class.
Note: Caller is responsible for deleting. Returns NULL if encoder creation function is not in the factory.
|
virtual |
Returns the encoder prototype associated with handle by a previous call to addEncoder.
|
virtual |
|
private |
assignment operator - not implemented.
|
protected |
|
protected |