![]() |
VR-Link API Documentation for HLA Evolved
|
Instances of DtInteractionDecoder are used to decode interactions from the network. More...
Inheritance diagram for DtInteractionDecoder:
Collaboration diagram for DtInteractionDecoder:Public Types | |
| typedef void(* | DtParameterDecoder )(DtInteractionRep *inter, const RTI::ParameterHandleValuePairSet &pvlist, int i) |
| Parameter decoder function signature. | |
Public Member Functions | |
| DtInteractionDecoder (DtExerciseConn *exConn, DtInterClassDesc *classDesc) | |
| constructor | |
| virtual | ~DtInteractionDecoder () |
| destructor | |
| DtParameterDecoder | addDecoder (RTI::ParameterHandle handle, DtParameterDecoder proc) |
| Add/Remove a decoding function for the parameter specified by handle. | |
| DtParameterDecoder | addDecoder (char *name, DtParameterDecoder proc) |
| Add/Remove a decoding function for the parameter specified by name. | |
| virtual DtParameterDecoder | decoder (RTI::ParameterHandle handle) const |
| Get the parameter decoder for the specified handle. | |
| virtual void | decode (DtInteractionRep *interaction, const RTI::ParameterHandleValuePairSet &pvList) |
| Decode the interaction. | |
| virtual RTI::InteractionClassHandle | interactionClassHandle () |
| Get the interaction's class handle. | |
| virtual DtInteractionDecoder * | clone () const |
| Returns a new-ed clone of this object. | |
| virtual DtInteractionDecoder * | clone (DtInterClassDesc *interDesc) const |
| Returns a new-ed clone of this object which corresponds to the inter description interDesc. | |
Static Public Member Functions | |
| static char * | decodingBuffer (int length) |
| Returns a pointer to a buffer that can be used to copy data obtained from a phvps. | |
Protected Member Functions | |
| DtInteractionDecoder (const DtInteractionDecoder &orig) | |
| copy constructor - not implemented. | |
| DtInteractionDecoder & | operator= (const DtInteractionDecoder &orig) |
| assignment operator - not implemented. | |
| virtual void | decodeParameter (DtInteractionRep *inter, const RTI::ParameterHandleValuePairSet &pvList, int index) |
| Process (decode) the specified parameter. | |
Protected Attributes | |
| DtExerciseConn * | myExConn |
| DtInterClassDesc * | myClassDesc |
| RTI::InteractionClassHandle | myClassHandle |
| std::map< RTI::ParameterHandle, DtParameterDecoder > | myList |
| myList is an array of classDesc->maxParamHandle() items. | |
Instances of DtInteractionDecoder are used to decode interactions from the network.
| typedef void(* DtInteractionDecoder::DtParameterDecoder)(DtInteractionRep *inter, const RTI::ParameterHandleValuePairSet &pvlist, int i) |
Parameter decoder function signature.
| DtInteractionDecoder::DtInteractionDecoder | ( | DtExerciseConn * | exConn, |
| DtInterClassDesc * | classDesc | ||
| ) |
constructor
| virtual DtInteractionDecoder::~DtInteractionDecoder | ( | ) | [virtual] |
destructor
| DtInteractionDecoder::DtInteractionDecoder | ( | const DtInteractionDecoder & | orig | ) | [protected] |
copy constructor - not implemented.
| DtParameterDecoder DtInteractionDecoder::addDecoder | ( | RTI::ParameterHandle | handle, |
| DtParameterDecoder | proc | ||
| ) |
Add/Remove a decoding function for the parameter specified by handle.
Returns the decoding function which is replaced by the add/remove. Note: This is non-virtual, since it is typically called by constructors.
| DtParameterDecoder DtInteractionDecoder::addDecoder | ( | char * | name, |
| DtParameterDecoder | proc | ||
| ) |
Add/Remove a decoding function for the parameter specified by name.
Returns the decoding function which is replaced by the add/remove. Note: This is non-virtual, since it is typically called by constructors.
| virtual DtInteractionDecoder* DtInteractionDecoder::clone | ( | ) | const [virtual] |
Returns a new-ed clone of this object.
| virtual DtInteractionDecoder* DtInteractionDecoder::clone | ( | DtInterClassDesc * | interDesc | ) | const [virtual] |
Returns a new-ed clone of this object which corresponds to the inter description interDesc.
Use this function if you want a subclass in the FOM to use the same decoder as its parent.
| virtual void DtInteractionDecoder::decode | ( | DtInteractionRep * | interaction, |
| const RTI::ParameterHandleValuePairSet & | pvList | ||
| ) | [virtual] |
Decode the interaction.
| virtual void DtInteractionDecoder::decodeParameter | ( | DtInteractionRep * | inter, |
| const RTI::ParameterHandleValuePairSet & | pvList, | ||
| int | index | ||
| ) | [protected, virtual] |
Process (decode) the specified parameter.
| virtual DtParameterDecoder DtInteractionDecoder::decoder | ( | RTI::ParameterHandle | handle | ) | const [virtual] |
Get the parameter decoder for the specified handle.
| char * DtInteractionDecoder::decodingBuffer | ( | int | length | ) | [inline, static] |
Returns a pointer to a buffer that can be used to copy data obtained from a phvps.
If the buffer isn't large enough to contain the data, more space will be allocated to it.
References DtDecodingBuffer().
| RTI::InteractionClassHandle DtInteractionDecoder::interactionClassHandle | ( | ) | [inline, virtual] |
Get the interaction's class handle.
References myClassHandle.
| DtInteractionDecoder& DtInteractionDecoder::operator= | ( | const DtInteractionDecoder & | orig | ) | [protected] |
assignment operator - not implemented.
DtInterClassDesc* DtInteractionDecoder::myClassDesc [protected] |
RTI::InteractionClassHandle DtInteractionDecoder::myClassHandle [protected] |
Referenced by interactionClassHandle().
DtExerciseConn* DtInteractionDecoder::myExConn [protected] |
std::map<RTI::ParameterHandle, DtParameterDecoder> DtInteractionDecoder::myList [protected] |
myList is an array of classDesc->maxParamHandle() items.