#include <Teko_RequestHandler.hpp>
Public Member Functions | |
void | addRequestCallback (const Teuchos::RCP< RequestCallbackBase > &callback) |
template<typename DataT > | |
DataT | request (const RequestMesg &rm) const |
template<typename DataT > | |
DataT | request (const std::string &rm) const |
template<typename DataT > | |
void | preRequest (const RequestMesg &rm) const |
template<typename DataT > | |
void | preRequest (const std::string &rm) const |
Classes that handles and distrubutes requests. This has two types of users. Those that register callbacks to handle the requests, and those that make requests.
This class is passive-aggressive. It calls required data a "request", however it actually requires a handler to satisfy the request.
Definition at line 32 of file Teko_RequestHandler.hpp.
void Teko::RequestHandler::addRequestCallback | ( | const Teuchos::RCP< RequestCallbackBase > & | callback | ) |
Add a call back object to handle requests
[in] | callback | Ref-count-pointer to a call back object. |
Definition at line 16 of file Teko_RequestHandler.cpp.
DataT Teko::RequestHandler::request | ( | const RequestMesg & | rm | ) | const |
Get the data for a particular request.
[in] | rm | The message describing the request. |
Definition at line 15 of file Teko_RequestHandler.hpp.
|
inline |
Get the data for a particular request. Short hand version.
[in] | rm | The message describing the request. |
Definition at line 54 of file Teko_RequestHandler.hpp.
void Teko::RequestHandler::preRequest | ( | const RequestMesg & | rm | ) | const |
Send a pre-request message to the callback allowing them to do some work up front and ahead of time. This is meant to be called at construction/initialization.
[in] | rm | The message describing the request. |
Definition at line 39 of file Teko_RequestHandler.hpp.
|
inline |
Send a pre-request message to the callback allowing them to do some work up front and ahead of time. This is meant to be called at construction/initialization. Short hand version.
[in] | rm | The message describing the request. |
Definition at line 76 of file Teko_RequestHandler.hpp.