Home
Download
API Documentation
Development
Loading...
Searching...
No Matches
src
functions
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
13
namespace
NAF
14
{
15
namespace
Functions
16
{
17
class
FunctionsManager;
18
}
19
}
20
21
22
class
NAF::Functions::FunctionsManager
23
{
24
public
:
25
using
FunctionsMap = std::map<std::string, Function::Ptr>;
26
27
FunctionsManager
();
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
NAF::Functions::FunctionsManager
Definition
functions_manager.h:23