MAK RTIspy API Documentation for HLA 4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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. More...
 
virtual ~DtDfltMsgFactory ()
 destructor More...
 
 DtDfltMsgFactory (const DtDfltMsgFactory &orig)
 copy constructor More...
 
DtDfltMsgFactoryoperator= (const DtDfltMsgFactory &orig)
 assignment operator More...
 
- Public Member Functions inherited from DtMessageFactory< T_Message, T_MessageKind, T_NetworkHeader >
 DtMessageFactory ()
 Constructor - Default. More...
 
 DtMessageFactory (const DtMessageFactory &orig)
 Constructor - Copy. More...
 
 ~DtMessageFactory ()
 Destructor. More...
 
DtMessageFactoryoperator= (const DtMessageFactory &orig)
 Operator - Assignment. More...
 
T_Message * create (T_MessageKind kind, MAKRti::DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER)
 Create a blank message to be filled. More...
 
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. More...
 
DtSendMessageCreator addSendCreator (T_MessageKind kind, DtSendMessageCreator creator)
 Add to the factory a msg creation function used for sending messages. More...
 
DtReceiveMessageCreator addRecvCreator (T_MessageKind kind, DtReceiveMessageCreator creator)
 Add to the factory a msg creation function used for receiving messages. More...
 
void addCreators (T_MessageKind kind, DtReceiveMessageCreator rCreator, DtSendMessageCreator sCreator)
 Add both types of msg creators (for sending and receiving) at once. More...
 
int packetGood (const T_NetworkHeader *packet) const
 Check that the message packet is good. More...
 

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. More...
 
typedef T_Message *(* DtSendMessageCreator )(MAKRti::DtBufferPtr buffer)
 Function type for creating blank messages for sending. More...
 
typedef std::map
< T_MessageKind,
DtReceiveMessageCreator
DtReceiveCreatorMap
 A map from message kind to a receive creator function. More...
 
typedef std::map
< T_MessageKind,
DtSendMessageCreator
DtSendCreatorMap
 A map from message kind to a send creator function. More...
 
- 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. More...
 
- Protected Attributes inherited from DtMessageFactory< T_Message, T_MessageKind, T_NetworkHeader >
DtSendCreatorMap mySendCreators
 A map of the send message creator functions. More...
 
DtReceiveCreatorMap myReceiveCreators
 A map of the receive message creator functions. More...
 

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 ( )

default constructor Adds creators for the various standard msgs.

virtual 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 file:

Document ID: Generated on Sun Jul 20 16:15:30 EDT 2025 from SVN revision 277985
Copyright © 2005-2025 MAK Technologies Inc. All Rights Reserved (www.mak.com)