VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Types | Protected Attributes
DtBackendSelectorManager Class Reference

The DtBackendSelectorManager class will keep track of handlers that can be used to select a back-end on which to create entities. The handlers are added by back-end address. The default is DtAutomaticBackendSelector which is defined to the DtSimSendToAll address.

Public Member Functions

 DtBackendSelectorManager (DtVrfBackendListener *listener)
 
virtual ~DtBackendSelectorManager ()
 
virtual void addBackendSelectorHandler (const DtSimulationAddress &, DtBackendSelectorHandler *)
 
virtual DtBackendSelectorHandlerbackendSelectorHandler (const DtSimulationAddress &) const
 
virtual DtSimulationAddress backendCreationAddress (const DtEntityType &ot, const DtSimulationAddress &) const
 

Protected Types

typedef std::map< std::string,
DtBackendSelectorHandler * > 
BackendSelectorHandlers
 

Protected Attributes

BackendSelectorHandlers myBackendSelectorHandlers
 
DtVrfBackendListenermyListener
 

Member Typedef Documentation

Constructor & Destructor Documentation

DtBackendSelectorManager::DtBackendSelectorManager ( DtVrfBackendListener listener)

The listener will be passed to each of the handlers in their init method.

virtual DtBackendSelectorManager::~DtBackendSelectorManager ( )
virtual

Member Function Documentation

virtual void DtBackendSelectorManager::addBackendSelectorHandler ( const DtSimulationAddress &  ,
DtBackendSelectorHandler  
)
virtual

Once added this manager takes control of the memory. Also, any existing one will be deleted. When addBackendSelectorHandler is called, init will be called on the handler with the current backendListener.

virtual DtBackendSelectorHandler* DtBackendSelectorManager::backendSelectorHandler ( const DtSimulationAddress &  ) const
virtual
virtual DtSimulationAddress DtBackendSelectorManager::backendCreationAddress ( const DtEntityType &  ot,
const DtSimulationAddress &   
) const
virtual

Given the backend address, if there is a handler for that address, return the backend that really wants to be created at that address. Returns given address if no handler specified.

Member Data Documentation

BackendSelectorHandlers DtBackendSelectorManager::myBackendSelectorHandlers
protected
DtVrfBackendListener* DtBackendSelectorManager::myListener
protected

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

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)