Instances of DtInteractionDecoder are used to decode interactions from the network.
More...
|
| typedef void(* | DtParameterDecoder )(DtInteractionRep *inter, const RTI::ParameterHandleValuePairSet &pvlist, int i) |
| | Parameter decoder function signature. More...
|
| |
|
| static char * | decodingBuffer (int length) |
| | Returns a pointer to a buffer that can be used to copy data obtained from a phvps. More...
|
| |
| static char * | parameterData (const RTI::ParameterHandleValuePairSet &pvList, int index, RTI::ULong &length) |
| | Returns a pointer to a buffer containing the parameter data. More...
|
| |
| static char * | parameterData (const RTI::ParameterHandleValuePairSet &pvList, int index, RTI::ULong &length, unsigned int expectedDataSize, const char *paramName) |
| | Gets the parameter data and checks the expected size. More...
|
| |
| static DtNetEventId * | eventIdParameterData (const RTI::ParameterHandleValuePairSet ¶ms, int index) |
| | Get the parameter data as a DtNetEventId (adds defensive null terminator) Returns a pointer to the parameter data. More...
|
| |
| static void | decodeGenericParameter (DtInteractionWithEncDec *inter, const RTI::ParameterHandleValuePairSet &pvlist, int i) |
| | Generic decoder class. More...
|
| |
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.
| virtual DtInteractionDecoder::~DtInteractionDecoder |
( |
| ) |
|
|
virtual |
copy constructor - not implemented.
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.
Returns a new-ed clone of this object.
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 |
| static void DtInteractionDecoder::decodeGenericParameter |
( |
DtInteractionWithEncDec * |
inter, |
|
|
const RTI::ParameterHandleValuePairSet & |
pvlist, |
|
|
int |
i |
|
) |
| |
|
static |
Generic decoder class.
Stores data as a generic attributes in the given state repository.
| virtual void DtInteractionDecoder::decodeParameter |
( |
DtInteractionRep * |
inter, |
|
|
const RTI::ParameterHandleValuePairSet & |
pvList, |
|
|
int |
index |
|
) |
| |
|
protectedvirtual |
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 | ) |
|
|
inlinestatic |
| DtNetEventId * DtInteractionDecoder::eventIdParameterData |
( |
const RTI::ParameterHandleValuePairSet & |
params, |
|
|
int |
index |
|
) |
| |
|
inlinestatic |
Get the parameter data as a DtNetEventId (adds defensive null terminator) Returns a pointer to the parameter data.
References decodingBuffer().
| RTI::InteractionClassHandle DtInteractionDecoder::interactionClassHandle |
( |
| ) |
|
|
inlinevirtual |
assignment operator - not implemented.
| char * DtInteractionDecoder::parameterData |
( |
const RTI::ParameterHandleValuePairSet & |
pvList, |
|
|
int |
index, |
|
|
RTI::ULong & |
length |
|
) |
| |
|
inlinestatic |
| char * DtInteractionDecoder::parameterData |
( |
const RTI::ParameterHandleValuePairSet & |
pvList, |
|
|
int |
index, |
|
|
RTI::ULong & |
length, |
|
|
unsigned int |
expectedDataSize, |
|
|
const char * |
paramName |
|
) |
| |
|
inlinestatic |
Gets the parameter data and checks the expected size.
If the data length is too small, no data is collected (0 returned and length set to 0) and a warning is printed. A message is printed if the data length is too large. Returns a pointer to the parameter data (or 0 if length < expected size).
References decodingBuffer(), DtNlVerbose, DtNotifyLevel, DtVerbose, DtWarn, and theUseGetValuePointer.
| RTI::InteractionClassHandle DtInteractionDecoder::myClassHandle |
|
protected |
myList is an array of classDesc->maxParamHandle() items.
| bool DtInteractionDecoder::theUseGetValuePointer |
|
static |
The documentation for this class was generated from the following file: