C++ API Library Reference  4.3.2-74-ge1d4cca
Public Functions | List of all members
RequestManager Class Reference

Public Functions

virtual void HandleRequest (RequestInfo const &request)
 
virtual void RegisterRequestHandler (String const &destination, IRequestHandler *pHandler)
 
virtual bool UnregisterRequestHandler (String const &destination, IRequestHandler *pHandler)
 
Constructors and Destructors
 RequestManager ()
 
 ~RequestManager ()
 

Usage Description

void HandleRequest ( RequestInfo const &  request)
virtual

Handles the specified request.

void RegisterRequestHandler ( String const &  destination,
IRequestHandler *  pHandler 
)
virtual

Registers a request handler with StateManager.

Parameters
destinationThe name that you want to give the handler. This will serve as the handler's unique identifier when sending requests to it.
pHandlerThe handler function that will be executed when the request is received.
bool UnregisterRequestHandler ( String const &  destination,
IRequestHandler *  pHandler 
)
virtual

Unregisters the specified request handler from StateManager.

Parameters
destinationThe name that you gave the handler when you registered it.
pHandlerThe handler that you are unregistering.