VR-Link API Documentation for HLA 1.3
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
DtInteractionDecoder Class Reference

Instances of DtInteractionDecoder are used to decode interactions from the network. More...

+ Inheritance diagram for DtInteractionDecoder:
+ Collaboration diagram for DtInteractionDecoder:

List of all members.

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 DtInteractionDecoderclone () const
 Returns a new-ed clone of this object.
virtual DtInteractionDecoderclone (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.
DtInteractionDecoderoperator= (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

DtExerciseConnmyExConn
DtInterClassDescmyClassDesc
RTI::InteractionClassHandle myClassHandle
std::map< RTI::ParameterHandle,
DtParameterDecoder
myList
 myList is an array of classDesc->maxParamHandle() items.

Detailed Description

Instances of DtInteractionDecoder are used to decode interactions from the network.


Member Typedef Documentation

typedef void(* DtInteractionDecoder::DtParameterDecoder)(DtInteractionRep *inter, const RTI::ParameterHandleValuePairSet &pvlist, int i)

Parameter decoder function signature.


Constructor & Destructor Documentation

constructor

destructor

copy constructor - not implemented.


Member Function Documentation

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.

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.


Member Data Documentation

RTI::InteractionClassHandle DtInteractionDecoder::myClassHandle [protected]

Referenced by interactionClassHandle().

std::map<RTI::ParameterHandle, DtParameterDecoder> DtInteractionDecoder::myList [protected]

myList is an array of classDesc->maxParamHandle() items.


The documentation for this class was generated from the following file:

Document ID: Generated on Mon May 14 08:06:18 EDT 2012 from SVN revision 114750
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)