Teko Version of the Day
Loading...
Searching...
No Matches
Teko::StaticRequestCallback< DataT > Class Template Reference

#include <Teko_StaticRequestCallback.hpp>

Inheritance diagram for Teko::StaticRequestCallback< DataT >:

Public Member Functions

DataT request (const RequestMesg &rm)
bool handlesRequest (const RequestMesg &rm)

Detailed Description

template<typename DataT>
class Teko::StaticRequestCallback< DataT >

A simple request interface that takes a static bit of data to return to Teko. This is meant primarily as a testing and early stage development tool.

The constructor takes an object of the same type the class was templated on. It also takes a string to be used to match the request.

Definition at line 28 of file Teko_StaticRequestCallback.hpp.

Member Function Documentation

◆ request()

template<typename DataT>
DataT Teko::StaticRequestCallback< DataT >::request ( const RequestMesg & )
virtual

Satisfy a request. Similar to preRequest no assumption on the response to handlesRequest is made. Again its up to the user to satisfy this.

Implements Teko::RequestCallback< DataT >.

Definition at line 42 of file Teko_StaticRequestCallback.hpp.

◆ handlesRequest()

template<typename DataT>
bool Teko::StaticRequestCallback< DataT >::handlesRequest ( const RequestMesg & )
virtual

Does this object satisfy the request?

Returns
True if the object can handle the request.

Implements Teko::RequestCallback< DataT >.

Definition at line 54 of file Teko_StaticRequestCallback.hpp.


The documentation for this class was generated from the following file: