MAK RTIspy API Documentation for HLA Evolved
List of all members | Public Member Functions
DtDfltMsgFactory Class Reference

class DtDfltMsgFactory: More...

+ Inheritance diagram for DtDfltMsgFactory:
+ Collaboration diagram for DtDfltMsgFactory:

Public Member Functions

 DtDfltMsgFactory ()
 default constructor Adds creators for the various standard msgs.
virtual ~DtDfltMsgFactory ()
 destructor
 DtDfltMsgFactory (const DtDfltMsgFactory &orig)
 copy constructor
DtDfltMsgFactoryoperator= (const DtDfltMsgFactory &orig)
 assignment operator
- Public Member Functions inherited from DtMessageFactory< T_Message, T_MessageKind, T_NetworkHeader >
 DtMessageFactory ()
 Constructor - Default.
 DtMessageFactory (const DtMessageFactory &orig)
 Constructor - Copy.
 ~DtMessageFactory ()
 Destructor.
DtMessageFactoryoperator= (const DtMessageFactory &orig)
 Operator - Assignment.
T_Message * create (T_MessageKind kind, MAKRti::DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER)
 Create a blank message to be filled.
T_Message * create (const T_NetworkHeader *packet, MAKRti::DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER)
 When receiving, the RTI will use the first create message to construct a message based on its net type.
DtSendMessageCreator addSendCreator (T_MessageKind kind, DtSendMessageCreator creator)
 Add to the factory a msg creation function used for sending messages.
DtReceiveMessageCreator addRecvCreator (T_MessageKind kind, DtReceiveMessageCreator creator)
 Add to the factory a msg creation function used for receiving messages.
void addCreators (T_MessageKind kind, DtReceiveMessageCreator rCreator, DtSendMessageCreator sCreator)
 Add both types of msg creators (for sending and receiving) at once.
int packetGood (const T_NetworkHeader *packet) const
 Check that the message packet is good.

Additional Inherited Members

- Public Types inherited from DtMessageFactory< T_Message, T_MessageKind, T_NetworkHeader >
typedef T_Message *(* DtReceiveMessageCreator )(const T_NetworkHeader *packet, MAKRti::DtBufferPtr buffer)
 Function type for creating messages received from the network using the given message header and packet buffer.
typedef T_Message *(* DtSendMessageCreator )(MAKRti::DtBufferPtr buffer)
 Function type for creating blank messages for sending.
typedef std::map
< T_MessageKind,
DtReceiveMessageCreator
DtReceiveCreatorMap
 A map from message kind to a receive creator function.
typedef std::map
< T_MessageKind,
DtSendMessageCreator
DtSendCreatorMap
 A map from message kind to a send creator function.
- Static Public Member Functions inherited from DtMessageFactory< T_Message, T_MessageKind, T_NetworkHeader >
static int dfltPacketGood (const T_NetworkHeader *packet)
 Default check for packet being good.
- Protected Attributes inherited from DtMessageFactory< T_Message, T_MessageKind, T_NetworkHeader >
DtSendCreatorMap mySendCreators
 A map of the send message creator functions.
DtReceiveCreatorMap myReceiveCreators
 A map of the receive message creator functions.

Detailed Description

class DtDfltMsgFactory:

Instances of DtDfltMsgFactory are used to create DtRtiMsgss. This class knows how to create the various standard msgs.

Constructor & Destructor Documentation

DtDfltMsgFactory::DtDfltMsgFactory ( )
DtDfltMsgFactory::~DtDfltMsgFactory ( )
virtual

destructor

DtDfltMsgFactory::DtDfltMsgFactory ( const DtDfltMsgFactory orig)

copy constructor

Member Function Documentation

DtDfltMsgFactory & DtDfltMsgFactory::operator= ( const DtDfltMsgFactory orig)

assignment operator


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

Document ID: Generated on Fri Mar 14 19:08:55 EDT 2014 from SVN revision 137085
Copyright © 2005-2014 VT MÄK Inc. All Rights Reserved (www.mak.com)