icinga2/lib/icinga/envresolver.hpp

31 lines
560 B
C++
Raw Normal View History

2020-09-30 16:16:53 +02:00
/* 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 */