2019-02-25 14:48:22 +01:00
|
|
|
/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
|
2013-03-22 14:40:55 +01:00
|
|
|
|
|
|
|
#ifndef MACRORESOLVER_H
|
|
|
|
#define MACRORESOLVER_H
|
|
|
|
|
2014-05-25 16:23:35 +02:00
|
|
|
#include "icinga/i2-icinga.hpp"
|
|
|
|
#include "icinga/checkresult.hpp"
|
|
|
|
#include "base/dictionary.hpp"
|
2014-10-19 14:48:19 +02:00
|
|
|
#include "base/string.hpp"
|
2013-03-22 14:40:55 +01:00
|
|
|
|
|
|
|
namespace icinga
|
|
|
|
{
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Resolves macros.
|
|
|
|
*
|
|
|
|
* @ingroup icinga
|
|
|
|
*/
|
2017-12-31 07:22:16 +01:00
|
|
|
class MacroResolver
|
2013-03-22 14:40:55 +01:00
|
|
|
{
|
|
|
|
public:
|
2014-11-07 12:32:25 +01:00
|
|
|
DECLARE_PTR_TYPEDEFS(MacroResolver);
|
2013-03-22 14:40:55 +01:00
|
|
|
|
2014-11-26 20:43:42 +01:00
|
|
|
virtual bool ResolveMacro(const String& macro, const CheckResult::Ptr& cr, Value *result) const = 0;
|
2013-03-22 14:40:55 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* MACRORESOLVER_H */
|