![]() |
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 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... | |
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 |
| DtStateRepositoryExtensionDecoderFactory::DtStateRepositoryExtensionDecoderFactory | ( | DtExerciseConn * | conn | ) |
| DtStateRepositoryExtensionDecoderFactory::~DtStateRepositoryExtensionDecoderFactory | ( | ) |
|
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 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 |
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 |
Returns the decoder prototype associated with name by a previous call to addDecoder.
|
private |
assignment operator - not implemented.
|
protected |
|
protected |