![]() |
VR-Link API Documentation for DIS
|
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 DtStateRepositoryExtensionEncoderFactory:Public Member Functions | |
| DtStateRepositoryExtensionEncoderFactory (DtExerciseConn *conn) | |
| ~DtStateRepositoryExtensionEncoderFactory () | |
| DtStateRepositoryExtensionEncoder * | createEncoder (DtString extName) |
| virtual DtStateRepositoryExtensionEncoder * | addEncoder (DtString extName, DtStateRepositoryExtensionEncoder *enc) |
| Add a encoder prototype to the factory. | |
| virtual void | clearEncoder (DtString extName) |
| remove this specific encoder from the factory. | |
| virtual DtStateRepositoryExtensionEncoder * | encoder (DtString extName) |
| Returns the encoder prototype associated with handle by a previous call to addEncoder. | |
Protected Types | |
| typedef std::map< DtString, DtStateRepositoryExtensionEncoder * > | ExtensionToEncoderMap |
Protected Attributes | |
| ExtensionToEncoderMap | myProtos |
| DtExerciseConn * | myExConn |
Private Member Functions | |
| DtStateRepositoryExtensionEncoderFactory (const DtStateRepositoryExtensionEncoderFactory &orig) | |
| copy constructor - not implemented. | |
| DtStateRepositoryExtensionEncoderFactory & | operator= (const DtStateRepositoryExtensionEncoderFactory &orig) |
| assignment operator - not implemented. | |
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.
|
protected |
| DtStateRepositoryExtensionEncoderFactory::DtStateRepositoryExtensionEncoderFactory | ( | DtExerciseConn * | conn | ) |
| DtStateRepositoryExtensionEncoderFactory::~DtStateRepositoryExtensionEncoderFactory | ( | ) |
|
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.
| DtStateRepositoryExtensionEncoder* DtStateRepositoryExtensionEncoderFactory::createEncoder | ( | DtString | extName | ) |
|
virtual |
Returns the encoder prototype associated with handle by a previous call to addEncoder.
|
private |
assignment operator - not implemented.
|
protected |
|
protected |