Loading...
Searching...
No Matches
handler_connection.h
1// <one line to give the program's name and a brief idea of what it does.>
2// SPDX-FileCopyrightText: 2022 <copyright holder> <email>
3// SPDX-License-Identifier: GPL-3.0-or-later
4
5#ifndef NAF_TOOLS_HANDLERCONNECTION
6#define NAF_TOOLS_HANDLERCONNECTION
7
8
9#include <functional>
10
11#include "handlers/root_handler.h"
12#include "handlers/null_handler.h"
13#include "handlers/backend_handler.h"
14
15
16namespace NAF
17{
18 namespace Tools
19 {
20 class HandlerConnection;
21 }
22}
23
25{
26 public:
27 using HandlerFunctor = std::function<NAF::Handlers::RootHandler*()>;
28
29 HandlerConnection(NAF::Tools::Route route, HandlerFunctor handler);
31
32 NAF::Tools::Route current_route_;
33 HandlerFunctor return_handler_;
34};
35
36
37#endif // NAF_TOOLS_HANDLERCONNECTION
Definition root_handler.h:98
Definition handler_connection.h:25
Definition route.h:49