This documentation is archived and is not being maintained.

DECLARE_REQUEST_HANDLER 

Add this macro to your project to map a request handler name to the class responsible for handling the corresponding requests.


#define DECLARE_REQUEST_HANDLER(
      handlerName,
      className,
      classQName 
)

Parameters

handlerName

A string with the name of the request handler. Corresponds to the request_handler string that would be used in a handler tag.

className

The simple name of the request handler class that maps to the name given by handlerName.

classQName

The fully qualified name of the request handler class that maps to the name given by handlerName.

You can add this macro to your code at any point after the class specified by className has been declared. The class does not need to be fully defined at the point at which this macro appears.

This macro is equivalent in functionality to the request_handler attribute. className and classQName are equivalent to the class to which the request_handler attribute is applied. handlerName is equivalent to the name parameter used by the attribute.

Header: atlisapi.h

Show: