1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
/* Icinga 2 | (c) 2020 Icinga GmbH | GPLv2+ */
#ifndef ENVRESOLVER_H
#define ENVRESOLVER_H
#include "base/object.hpp"
#include "base/string.hpp"
#include "base/value.hpp"
#include "icinga/macroresolver.hpp"
#include "icinga/checkresult.hpp"
namespace icinga
{
/**
* Resolves env var names.
*
* @ingroup icinga
*/
class EnvResolver final : public Object, public MacroResolver
{
public:
DECLARE_PTR_TYPEDEFS(EnvResolver);
bool ResolveMacro(const String& macro, const CheckResult::Ptr&, Value *result) const override;
};
}
#endif /* ENVRESOLVER_H */
|