2026-01-27 09:06:40 -05:00
|
|
|
// SPDX-FileCopyrightText: 2012 Icinga GmbH <https://icinga.com>
|
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2014-10-30 10:22:55 -04:00
|
|
|
|
|
|
|
|
#ifndef VARIABLEUTILITY_H
|
|
|
|
|
#define VARIABLEUTILITY_H
|
|
|
|
|
|
|
|
|
|
#include "base/i2-base.hpp"
|
2015-02-26 05:04:57 -05:00
|
|
|
#include "cli/i2-cli.hpp"
|
2014-10-30 10:22:55 -04:00
|
|
|
#include "base/dictionary.hpp"
|
|
|
|
|
#include "base/string.hpp"
|
|
|
|
|
#include <ostream>
|
|
|
|
|
|
|
|
|
|
namespace icinga
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @ingroup cli
|
|
|
|
|
*/
|
2017-12-31 01:22:16 -05:00
|
|
|
class VariableUtility
|
2014-10-30 10:22:55 -04:00
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
static Value GetVariable(const String& name);
|
|
|
|
|
static void PrintVariables(std::ostream& outfp);
|
|
|
|
|
|
|
|
|
|
private:
|
2018-01-03 22:25:35 -05:00
|
|
|
VariableUtility();
|
2014-10-30 10:22:55 -04:00
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif /* VARIABLEUTILITY_H */
|