![]() |
VR-Link API Documentation for HLA 1516
|
DtInteractionEncoder is used to provide encoding of an interaction into an RTI::ParameterHandleValuePairSet in an HLA (as opposed to DIS) environment. More...
Inheritance diagram for DtInteractionEncoder:
Collaboration diagram for DtInteractionEncoder:Public Types | |
| typedef void(* | DtParameterEncoder )(const DtInteractionRep &inter, RTI::ParameterHandleValuePairSet *avlist, RTI::ParameterHandle handle) |
| Attribute encoding function declaration. | |
Public Member Functions | |
| DtInteractionEncoder (DtExerciseConn *exConn, DtInterClassDesc *classDesc) | |
| constructor | |
| virtual | ~DtInteractionEncoder () |
| destructor | |
| DtInteractionEncoder (const DtInteractionEncoder &orig) | |
| copy constructor | |
| DtInteractionEncoder & | operator= (const DtInteractionEncoder &orig) |
| assignment operator | |
| virtual DtParameterEncoder | addEncoder (RTI::ParameterHandle hand, DtParameterEncoder func) |
| Add a parameter encoder function by parameter handle. | |
| virtual DtParameterEncoder | addEncoder (char *name, DtParameterEncoder proc) |
| Add a parameter encoder function by parameter name. | |
| virtual DtParameterEncoder | encoder (RTI::ParameterHandle hand) |
| Get the parameter encoder for the specified handle. | |
| virtual void | encode (const DtInteractionRep &inter, RTI::ParameterHandleValueMap &pvMap) |
| Encode necessary values from the protocol-independent interaction. | |
| virtual RTI::InteractionClassHandle | interClassHandle () |
| Get the object's class handle. | |
| virtual DtInteractionEncoder * | clone () const |
| Returns a new-ed clone of this object. | |
| virtual DtInteractionEncoder * | clone (DtInterClassDesc *interDesc) const |
| Returns a new-ed clone of this object which corresponds to the inter description interDesc. | |
Protected Attributes | |
| DtExerciseConn * | myExConn |
| DtInterClassDesc * | myClassDesc |
| RTI::RTIambassador * | myRtiAmb |
| RTI::InteractionClassHandle | myHandle |
| std::map< RTI::ParameterHandle, DtParameterEncoder > | myList |
| myList is an array of classDesc->maxParamHandle() items. | |
DtInteractionEncoder is used to provide encoding of an interaction into an RTI::ParameterHandleValuePairSet in an HLA (as opposed to DIS) environment.
| typedef void(* DtInteractionEncoder::DtParameterEncoder)(const DtInteractionRep &inter, RTI::ParameterHandleValuePairSet *avlist, RTI::ParameterHandle handle) |
Attribute encoding function declaration.
| DtInteractionEncoder::DtInteractionEncoder | ( | DtExerciseConn * | exConn, |
| DtInterClassDesc * | classDesc | ||
| ) |
constructor
|
virtual |
destructor
| DtInteractionEncoder::DtInteractionEncoder | ( | const DtInteractionEncoder & | orig | ) |
copy constructor
|
virtual |
Add a parameter encoder function by parameter handle.
Returns any previous parameter encoder function which was replaced by the add.
|
virtual |
Add a parameter encoder function by parameter name.
Returns any previous parameter encoder function which was replaced by the add.
|
virtual |
Returns a new-ed clone of this object.
|
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 encoder as its parent.
|
virtual |
Encode necessary values from the protocol-independent interaction.
|
inlinevirtual |
Get the parameter encoder for the specified handle.
References myList.
|
inlinevirtual |
Get the object's class handle.
References myHandle.
| DtInteractionEncoder& DtInteractionEncoder::operator= | ( | const DtInteractionEncoder & | orig | ) |
assignment operator
|
protected |
|
protected |
|
protected |
Referenced by interClassHandle().
|
protected |
myList is an array of classDesc->maxParamHandle() items.
Referenced by encoder().
|
protected |