]> granicus.if.org Git - icinga2/blob - lib/icinga/macroresolver.hpp
Merge pull request #7064 from widhalmt/feature/icingacli-elasticsearch-7063
[icinga2] / lib / icinga / macroresolver.hpp
1 /* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
2
3 #ifndef MACRORESOLVER_H
4 #define MACRORESOLVER_H
5
6 #include "icinga/i2-icinga.hpp"
7 #include "icinga/checkresult.hpp"
8 #include "base/dictionary.hpp"
9 #include "base/string.hpp"
10
11 namespace icinga
12 {
13
14 /**
15  * Resolves macros.
16  *
17  * @ingroup icinga
18  */
19 class MacroResolver
20 {
21 public:
22         DECLARE_PTR_TYPEDEFS(MacroResolver);
23
24         virtual bool ResolveMacro(const String& macro, const CheckResult::Ptr& cr, Value *result) const = 0;
25 };
26
27 }
28
29 #endif /* MACRORESOLVER_H */