MAK RTIspy API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Classes | Public Types | Public Member Functions | Protected Attributes
DtMessageProcessor< Address, Message > Class Template Reference

The DtMessageProcessor template class allows user to register simple message processing function objects to be applied to all messages passed to the DtMessageProcessor. More...

+ Collaboration diagram for DtMessageProcessor< Address, Message >:

Classes

class  Filter
 User-defined Message Processing Function Object. More...

Public Types

typedef std::vector< Address > AddressList
typedef std::list< Filter * > FilterList

Public Member Functions

 DtMessageProcessor ()
virtual ~DtMessageProcessor ()
virtual bool processDestinationList (const Address &src, const Message &msg, AddressList &destinations) const
 Apply all registered filters to the passed destination list Filtered list returned in destinations.
virtual bool processMessage (const Address &src, Message &msg) const
 Apply all registered message processors to the passed message Filtered list returned in msg.
virtual void addDestinationFilter (Filter *filter)
 Add / Remove message and destination list processing filters.
virtual void removeDestinationFilter (Filter *filter)
virtual void addMessageFilter (Filter *filter)
virtual void removeMessageFilter (Filter *filter)

Protected Attributes

FilterList myDestFilters
FilterList myMsgFilters

Detailed Description

template<class Address, class Message>
class DtMessageProcessor< Address, Message >

The DtMessageProcessor template class allows user to register simple message processing function objects to be applied to all messages passed to the DtMessageProcessor.

This allows arbitrary filtering of message destination lists, and direct modification of message data.

Member Typedef Documentation

template<class Address , class Message >
typedef std::vector< Address > DtMessageProcessor< Address, Message >::AddressList
template<class Address , class Message >
typedef std::list< Filter* > DtMessageProcessor< Address, Message >::FilterList

Constructor & Destructor Documentation

template<class Address , class Message >
DtMessageProcessor< Address, Message >::DtMessageProcessor ( )
inline
template<class Address , class Message >
virtual DtMessageProcessor< Address, Message >::~DtMessageProcessor ( )
inlinevirtual

Member Function Documentation

template<class Address , class Message >
virtual void DtMessageProcessor< Address, Message >::addDestinationFilter ( Filter filter)
inlinevirtual

Add / Remove message and destination list processing filters.

template<class Address , class Message >
virtual void DtMessageProcessor< Address, Message >::addMessageFilter ( Filter filter)
inlinevirtual
template<class Address , class Message >
virtual bool DtMessageProcessor< Address, Message >::processDestinationList ( const Address &  src,
const Message &  msg,
AddressList destinations 
) const
inlinevirtual

Apply all registered filters to the passed destination list Filtered list returned in destinations.

Returns false ( and ignores remaining filters )if message should be dropped )

template<class Address , class Message >
virtual bool DtMessageProcessor< Address, Message >::processMessage ( const Address &  src,
Message &  msg 
) const
inlinevirtual

Apply all registered message processors to the passed message Filtered list returned in msg.

Returns false ( and ignores remaining filters )if message should be dropped )

template<class Address , class Message >
virtual void DtMessageProcessor< Address, Message >::removeDestinationFilter ( Filter filter)
inlinevirtual
template<class Address , class Message >
virtual void DtMessageProcessor< Address, Message >::removeMessageFilter ( Filter filter)
inlinevirtual

Member Data Documentation

template<class Address , class Message >
FilterList DtMessageProcessor< Address, Message >::myDestFilters
protected
template<class Address , class Message >
FilterList DtMessageProcessor< Address, Message >::myMsgFilters
protected

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

Document ID: Generated on Mon Mar 21 09:41:37 EDT 2016 from SVN revision 163228
Copyright © 2005-2015 VT MÄK Inc. All Rights Reserved (www.mak.com)