![]() |
VR-Link API Documentation for DIS
|
class DtPduFactory: More...
Inheritance diagram for DtPduFactory:
Collaboration diagram for DtPduFactory:Static Public Member Functions | |
| static int | dfltPacketGood (const DtNetPacket *packet) |
Protected Attributes | |
| DtPduCreator * | myCreators |
| myCreators is an array of theMaxPduKinds items. More... | |
| DtVPCreator * | myVPCreators |
| DtStandardVariableRecordFactory * | myStandardVariableFactory |
| DtAttributePduStrategy | myAttributePduStrategy |
Static Protected Attributes | |
| static const int | theMaxPduKinds |
class DtPduFactory:
Instances of DtPduFactory are used to create PDUs (protocol data units) or packets, typically for DIS (as opposed to HLA).
| DtPduFactory::DtPduFactory | ( | ) |
default constructor
|
virtual |
destructor
| DtPduFactory::DtPduFactory | ( | const DtPduFactory & | orig | ) |
copy constructor
|
virtual |
Add a pdu creation function to the factory.
The function must return a new'ed pdu object which will be deleted by the user. Returns any previous pdu creation function which was replaced by the add.
|
virtual |
Returns whether packet is appropriate DIS version.
|
virtual |
|
virtual |
Create the specified pdu.
Note: Caller is responsible for deleting. Returns NULL if pdu creation function is not in the factory.
|
virtual |
|
static |
| DtPduFactory& DtPduFactory::operator= | ( | const DtPduFactory & | orig | ) |
assignment operator
|
virtual |
|
virtual |
Sets/Gets whether to couple the attribute PDU.
|
virtual |
|
virtual |
|
protected |
|
protected |
myCreators is an array of theMaxPduKinds items.
|
protected |
|
protected |
|
staticprotected |