![]() |
MAK RTIspy API Documentation for HLA Evolved
|
DtMessageFilter is a base class for filters applied to DtFilteredTcpForwarder. More...
Inheritance diagram for DtMessageFilter:
Collaboration diagram for DtMessageFilter:Public Member Functions | |
| DtMessageFilter (const char *name) | |
| Default Ctor ( created with empty list of filtered messages ) More... | |
| DtMessageFilter (const char *name, const std::set< DtRtiMsgKind > &filteredKinds) | |
| Ctor taking a set of filtered message kinds. More... | |
| virtual | ~DtMessageFilter () |
| Default Dtor. More... | |
| MAKRti::DtString const & | name () const |
| Return filter name. More... | |
| const std::set< DtRtiMsgKind > & | filteredMsgKinds () const |
| Returns the set of all message types to which this filter may be applied - used to map messages to filters NOTE: isFilteredMsgKind may still reject the message. More... | |
| virtual void | filter (const DtTcpMsgSocket *fromSocket, const DtTcpMsgSocketMap *connectionList, DtTcpMsgSocketMap *destinationList, caddr_t packet, size_t size) |
| If applicable message type, Apply filter to the message and modify destination list to add or remove filtered connections from full connection list NOTE: Generally it is only necessary to override the isFilteredMsgKind and doFilter() methods since all real work should be done there. More... | |
| virtual bool | isFilteredMsgKind (DtRtiMsgKind kind) const |
| Does this filter apply to this message? More... | |
Static Public Member Functions | |
| static void | addToSocketMap (DtTcpMsgSocketMap *sockMap, DtTcpMsgSocket *sock) |
| Adds the given socket to the given socket map. More... | |
| static void | removeFromSocketMap (DtTcpMsgSocketMap *sockMap, DtTcpMsgSocket *sock) |
| Remove the given socket from the given socket map. More... | |
Protected Member Functions | |
| virtual void | doFilter (const DtTcpMsgSocket *fromSocket, const DtTcpMsgSocketMap *connectionList, DtTcpMsgSocketMap *destinationList, caddr_t packet, size_t size) |
| Apply filter to the message and modify destination list to add or remove filtered connections from full connection list. More... | |
Protected Attributes | |
| std::set< DtRtiMsgKind > | myFilteredMsgKinds |
| MAKRti::DtString | myName |
DtMessageFilter is a base class for filters applied to DtFilteredTcpForwarder.
DtMessageFilter and its derived classes process incoming messages and return a list of connections. The default DtMessageFilter returns an unmodified list.
|
inline |
Default Ctor ( created with empty list of filtered messages )
|
inline |
Ctor taking a set of filtered message kinds.
|
inlinevirtual |
Default Dtor.
|
inlinestatic |
Adds the given socket to the given socket map.
References DtTcpMsgSocket::inetTcpSocket().
|
inlineprotectedvirtual |
Apply filter to the message and modify destination list to add or remove filtered connections from full connection list.
Reimplemented in DtInternalRoutingFilter, DtUpdateInterRoutingFilter, DtRtiExecTrackingFilter, DtFederationShadowTrackingFilter, DtInternalRoutePrinterFilter, DtFedexMsgFilter, DtFederateTrackingFilter, DtRoutePrinterFilter, DtConnectConfirmFilter, and DtDeleteSocketFilter.
Referenced by filter().
|
inlinevirtual |
If applicable message type, Apply filter to the message and modify destination list to add or remove filtered connections from full connection list NOTE: Generally it is only necessary to override the isFilteredMsgKind and doFilter() methods since all real work should be done there.
References doFilter(), and isFilteredMsgKind().
|
inline |
Returns the set of all message types to which this filter may be applied - used to map messages to filters NOTE: isFilteredMsgKind may still reject the message.
References myFilteredMsgKinds.
|
inlinevirtual |
Does this filter apply to this message?
References myFilteredMsgKinds.
Referenced by filter().
|
inline |
Return filter name.
References myName.
|
inlinestatic |
Remove the given socket from the given socket map.
References DtTcpMsgSocket::inetTcpSocket().
|
protected |
Referenced by filteredMsgKinds(), and isFilteredMsgKind().
|
protected |
Referenced by name().