![]() |
MAK RTIspy API Documentation for HLA 4
|
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. More... | |
| virtual bool | processMessage (const Address &src, Message &msg) const |
| Apply all registered message processors to the passed message Filtered list returned in msg. More... | |
| virtual void | addDestinationFilter (Filter *filter) |
| Add / Remove message and destination list processing filters. More... | |
| virtual void | removeDestinationFilter (Filter *filter) |
| virtual void | addMessageFilter (Filter *filter) |
| virtual void | removeMessageFilter (Filter *filter) |
Protected Attributes | |
| FilterList | myDestFilters |
| FilterList | myMsgFilters |
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.
| typedef std::vector< Address > DtMessageProcessor< Address, Message >::AddressList |
| typedef std::list< Filter* > DtMessageProcessor< Address, Message >::FilterList |
|
inline |
|
inlinevirtual |
|
inlinevirtual |
Add / Remove message and destination list processing filters.
|
inlinevirtual |
|
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 )
|
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 )
|
inlinevirtual |
|
inlinevirtual |
|
protected |
|
protected |