Interface definition for a handler of requests. More...
#include <OgreWorkQueue.h>
Public Member Functions | |
RequestHandler () | |
virtual | ~RequestHandler () |
virtual bool | canHandleRequest (const Request *req, const WorkQueue *srcQ) |
Return whether this handler can process a given request. | |
virtual Response * | handleRequest (const Request *req, const WorkQueue *srcQ)=0 |
The handler method every subclass must implement. |
Interface definition for a handler of requests.
Definition at line 160 of file OgreWorkQueue.h.
Ogre::WorkQueue::RequestHandler::RequestHandler | ( | ) |
Definition at line 163 of file OgreWorkQueue.h.
virtual Ogre::WorkQueue::RequestHandler::~RequestHandler | ( | ) | [virtual] |
Definition at line 164 of file OgreWorkQueue.h.
virtual bool Ogre::WorkQueue::RequestHandler::canHandleRequest | ( | const Request * | req, | |
const WorkQueue * | srcQ | |||
) | [virtual] |
Return whether this handler can process a given request.
Reimplemented in Ogre::ResourceBackgroundQueue, Ogre::Page, Ogre::Terrain, and Ogre::TerrainGroup.
Definition at line 172 of file OgreWorkQueue.h.
References Ogre::WorkQueue::Request::getAborted().
virtual Response* Ogre::WorkQueue::RequestHandler::handleRequest | ( | const Request * | req, | |
const WorkQueue * | srcQ | |||
) | [pure virtual] |
The handler method every subclass must implement.
If a failure is encountered, return a Response with a failure result rather than raise an exception.
req | The Request structure, which is effectively owned by the handler during this call. It must be attached to the returned Response regardless of success or failure. | |
srcQ | The work queue that this request originated from |
Implemented in Ogre::ResourceBackgroundQueue, Ogre::Page, Ogre::Terrain, and Ogre::TerrainGroup.
Copyright © 2012 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Fri May 25 23:41:36 2012