Oxygen Engine
Modern C++ 3D Engine using OpenGL
Loading...
Searching...
No Matches
oe::util::pipeline::LambdaHandler< Request, Response > Class Template Reference

#include <OxygenEngine/util/pipeline.h>

Inheritance diagram for oe::util::pipeline::LambdaHandler< Request, Response >:
Collaboration diagram for oe::util::pipeline::LambdaHandler< Request, Response >:

Public Member Functions

 LambdaHandler (const handler_function &handler)
Response handle (const Request &&input) override
Public Member Functions inherited from oe::util::pipeline::Handler< Request, Response >
virtual void init ()
virtual void clean ()
Response next (const Request &&input)
Response next (const Request &input)

Protected Attributes

handler_function _handler
Protected Attributes inherited from oe::util::pipeline::Handler< Request, Response >
ConcretePipeline * _pipeline = nullptr

Detailed Description

template<typename Request, typename Response>
class oe::util::pipeline::LambdaHandler< Request, Response >

Special handler, let you providing a function (handy for simple handlers)

The lambda function prototype should be Response myFunction(Request& request, Handler<Request, Response>* request)

Member Function Documentation

◆ handle()

template<typename Request, typename Response>
Response oe::util::pipeline::LambdaHandler< Request, Response >::handle ( const Request && input)
inlineoverridevirtual

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