Instances of DtStateDecoderFactory are used to create decoders which know how to decode an HLA state message (or network representation) into a state repository (or host representation).
More...
|
| | DtStateDecoderFactory (DtExerciseConn *exConn) |
| | constructor More...
|
| |
| | DtStateDecoderFactory (DtFom *fom) |
| | constructor More...
|
| |
| virtual | ~DtStateDecoderFactory () |
| | destructor More...
|
| |
| virtual DtHlaStateDecoder * | createDecoder (RTI::ObjectClassHandle hand) |
| | Create a decoder for the specified object class. More...
|
| |
| virtual DtHlaStateDecoder * | addDecoder (RTI::ObjectClassHandle hand, DtHlaStateDecoder *decoder) |
| | Add a decoder prototype to the factory. More...
|
| |
| virtual void | addAttributeDecoder (RTI::ObjectClassHandle classHand, RTI::AttributeHandle attrHand, DtHlaStateDecoder::DtAttributeDecoder decoder, bool applyToSubclasses=true) |
| | This function is used to add an attribute decoder function to several prototype decoders all at once - namely, those associated with the object class denoted by hand, as well as all of its subclasses. More...
|
| |
| void | addAttributeDecoder (char *className, RTI::AttributeHandle attrHand, DtHlaStateDecoder::DtAttributeDecoder func, bool applyToSubclasses=true) |
| | Same as above, but identify class by name. More...
|
| |
| void | addAttributeDecoder (RTI::ObjectClassHandle classHand, char *attrName, DtHlaStateDecoder::DtAttributeDecoder func, bool applyToSubclasses=true) |
| | Same as above, but identify attr by name. More...
|
| |
| void | addAttributeDecoder (char *className, char *attrName, DtHlaStateDecoder::DtAttributeDecoder func, bool applyToSubclasses=true) |
| | Same as above, but identify class and attr by name. More...
|
| |
| virtual DtHlaStateDecoder * | decoder (RTI::ObjectClassHandle hand, bool copyBase=false) |
| | Returns the decoder prototype associated with handle by a previous call to addDecoder. More...
|
| |
Instances of DtStateDecoderFactory are used to create decoders which know how to decode an HLA state message (or network representation) into a state repository (or host representation).
| DtStateDecoderFactory::DtStateDecoderFactory |
( |
DtExerciseConn * |
exConn | ) |
|
| DtStateDecoderFactory::DtStateDecoderFactory |
( |
DtFom * |
fom | ) |
|
| virtual DtStateDecoderFactory::~DtStateDecoderFactory |
( |
| ) |
|
|
virtual |
copy constructor - not implemented
This function is used to add an attribute decoder function to several prototype decoders all at once - namely, those associated with the object 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 attr by name.
Same as above, but identify class and attr by name.
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 DtHlaStateDecoder* DtStateDecoderFactory::createDecoder |
( |
RTI::ObjectClassHandle |
hand | ) |
|
|
virtual |
Create a decoder for the specified object class.
Note: Caller is responsible for deleting. Returns NULL if decoder creation function is not in the factory.
| virtual DtHlaStateDecoder* DtStateDecoderFactory::decoder |
( |
RTI::ObjectClassHandle |
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 an 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 - not implemented
| DtFom* DtStateDecoderFactory::myFom |
|
protected |
The documentation for this class was generated from the following file: