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 #include "handlers/frontend_handler.h"
15 
16 
17 namespace NAF
18 {
19  namespace Tools
20  {
21  class HandlerConnection;
22  }
23 }
24 
26 {
27  public:
28  using HandlerFunctor = std::function<NAF::Handlers::RootHandler*()>;
29 
30  HandlerConnection(NAF::Tools::Route route, HandlerFunctor handler);
32 
33  NAF::Tools::Route current_route_;
34  HandlerFunctor return_handler_;
35 };
36 
37 
38 #endif // NAF_TOOLS_HANDLERCONNECTION
Definition: root_handler.h:97
Definition: handler_connection.h:26
Definition: route.h:49