Loading...
Searching...
No Matches
functions_manager.h
1
2#ifndef NAF_FUNCTIONS_FUNCTIONS_MANAGER
3#define NAF_FUNCTIONS_FUNCTIONS_MANAGER
4
5
6#include <string>
7#include <map>
8
9#include "functions/function.h"
10#include "http/methods.h"
11
12
13namespace NAF
14{
15 namespace Functions
16 {
17 class FunctionsManager;
18 }
19}
20
21
23{
24 public:
25 using FunctionsMap = std::map<std::string, Function::Ptr>;
26
28
29 FunctionsMap& get_functions()
30 {
31 auto& var = functions_;
32 return var;
33 }
34
35 Function::Ptr AddFunction_(std::string endpoint, HTTP::EnumMethods method);
36
37 private:
38 FunctionsMap functions_;
39};
40
41#endif // NAF_FUNCTIONS_FUNCTIONS_MANAGER
Definition functions_manager.h:23