Instances of DtInteractionDecoderFactory are used to create decoders which know how to decode an HLA interaction message (or network representation) into an interaction repository (or host representation).
More...
|
| | DtInteractionDecoderFactory (DtExerciseConn *exConn) |
| | constructor More...
|
| |
| virtual | ~DtInteractionDecoderFactory () |
| | destructor More...
|
| |
| | DtInteractionDecoderFactory (const DtInteractionDecoderFactory &orig) |
| | copy constructor Copies across added decoder creation functions. More...
|
| |
| DtInteractionDecoderFactory & | operator= (const DtInteractionDecoderFactory &orig) |
| | assignment operator Copies across added decoder creation functions. More...
|
| |
| virtual DtInteractionDecoder * | createDecoder (RTI::InteractionClassHandle hand) |
| | Create a decoder for the specified interaction class. More...
|
| |
| virtual DtInteractionDecoder * | addDecoder (RTI::InteractionClassHandle hand, DtInteractionDecoder *decoder) |
| | Add a decoder prototype to the factory. More...
|
| |
| virtual void | addParameterDecoder (RTI::InteractionClassHandle classHand, RTI::ParameterHandle paramHand, DtInteractionDecoder::DtParameterDecoder decoder, bool applyToSubclasses=true) |
| | This function is used to add a parameter decoder function to several prototype decoders all at once - namely, those associated with the interaction class denoted by hand, as well as all of its subclasses. More...
|
| |
| void | addParameterDecoder (char *className, RTI::ParameterHandle paramHand, DtInteractionDecoder::DtParameterDecoder func, bool applyToSubclasses=true) |
| | Same as above, but identify class by name. More...
|
| |
| void | addParameterDecoder (RTI::InteractionClassHandle classHand, char *paramName, DtInteractionDecoder::DtParameterDecoder func, bool applyToSubclasses=true) |
| | Same as above, but identify param by name. More...
|
| |
| void | addParameterDecoder (char *className, char *paramName, DtInteractionDecoder::DtParameterDecoder func, bool applyToSubclasses=true) |
| | Same as above, but identify class and param by name. More...
|
| |
| virtual DtInteractionDecoder * | decoder (RTI::InteractionClassHandle hand, bool copybase=false) |
| | Returns the decoder prototype associated with handle by a previous call to addDecoder. More...
|
| |
Instances of DtInteractionDecoderFactory are used to create decoders which know how to decode an HLA interaction message (or network representation) into an interaction repository (or host representation).
| DtInteractionDecoderFactory::DtInteractionDecoderFactory |
( |
DtExerciseConn * |
exConn | ) |
|
| virtual DtInteractionDecoderFactory::~DtInteractionDecoderFactory |
( |
| ) |
|
|
virtual |
copy constructor Copies across added decoder creation functions.
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.
This function is used to add a parameter decoder function to several prototype decoders all at once - namely, those associated with the interaction class denoted by hand, as well as all of its subclasses.
If applyToSubclasses is false, then the function is only registered with the one decoder prototype, making it equivalent to decoder(hand)->addDecoder(hand, decoder));
Same as above, but identify class by name.
Same as above, but identify param by name.
Same as above, but identify class and param by name.
| virtual DtInteractionDecoder* DtInteractionDecoderFactory::createDecoder |
( |
RTI::InteractionClassHandle |
hand | ) |
|
|
virtual |
Create a decoder for the specified interaction class.
Note: Caller is responsible for deleting. Returns NULL if decoder creation function is not in the factory.
| virtual DtInteractionDecoder* DtInteractionDecoderFactory::decoder |
( |
RTI::InteractionClassHandle |
hand, |
|
|
bool |
copybase = false |
|
) |
| |
|
virtual |
Returns the decoder prototype associated with handle by a previous call to addDecoder.
If there is no decoder registered with hand, and if copyBase is true, then rather than returning NULL, we try to find a decoder that can be used for hand by searching up the class hierarchy for the most specific superclass that has a decoder registered with it. We make a clone of this decoder and associate it with hand, and return this clone. If necessary, we also associate clones with the classes in between hand and the ancestor whose decoder we are cloning. If no decoders for any superclasses can be found, we return NULL.
assignment operator Copies across added decoder creation functions.
The documentation for this class was generated from the following file: