OGRE-Next
2.3
Object-Oriented Graphics Rendering Engine
|
General purpose response structure. More...
#include <OgreWorkQueue.h>
Public Member Functions | |
Response (const Request *rq, bool success, const Any &data, const String &msg=BLANKSTRING) | |
~Response () | |
void | abortRequest () |
Abort the request. More... | |
const Any & | getData () const |
Return the response data (user defined, only valid on success) More... | |
const String & | getMessages () const |
Get any diagnostic messages about the process. More... | |
const Request * | getRequest () const |
Get the request that this is a response to (NB destruction destroys this) More... | |
void | operator delete (void *ptr) |
void | operator delete (void *ptr, const char *, int, const char *) |
void | operator delete (void *ptr, void *) |
void | operator delete[] (void *ptr) |
void | operator delete[] (void *ptr, const char *, int, const char *) |
void * | operator new (size_t sz) |
void * | operator new (size_t sz, const char *file, int line, const char *func) |
operator new, with debug line info More... | |
void * | operator new (size_t sz, void *ptr) |
placement operator new More... | |
void * | operator new[] (size_t sz) |
void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
array operator new, with debug line info More... | |
bool | succeeded () const |
Return whether this is a successful response. More... | |
Public Attributes | |
Any | mData |
Data associated with the result of the process. More... | |
String | mMessages |
Any diagnostic messages. More... | |
const Request * | mRequest |
Pointer to the request that this response is in relation to. More... | |
bool | mSuccess |
Whether the work item succeeded or not. More... | |
General purpose response structure.
Ogre::WorkQueue::Response::Response | ( | const Request * | rq, |
bool | success, | ||
const Any & | data, | ||
const String & | msg = BLANKSTRING |
||
) |
Ogre::WorkQueue::Response::~Response | ( | ) |
|
inline |
Abort the request.
References Ogre::WorkQueue::Request::abortRequest(), and Ogre::Any::destroy().
|
inline |
Return the response data (user defined, only valid on success)
|
inline |
Get any diagnostic messages about the process.
|
inline |
Get the request that this is a response to (NB destruction destroys this)
Referenced by Ogre::WorkQueue::ResponseHandler::canHandleResponse().
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
operator new, with debug line info
|
inlineinherited |
placement operator new
|
inlineinherited |
|
inlineinherited |
array operator new, with debug line info
|
inline |
Return whether this is a successful response.
Any Ogre::WorkQueue::Response::mData |
Data associated with the result of the process.
const Request* Ogre::WorkQueue::Response::mRequest |
Pointer to the request that this response is in relation to.
bool Ogre::WorkQueue::Response::mSuccess |
Whether the work item succeeded or not.