2019-02-25 14:48:22 +01:00
|
|
|
/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
|
2014-10-30 15:22:55 +01:00
|
|
|
|
|
|
|
#ifndef VARIABLEUTILITY_H
|
|
|
|
#define VARIABLEUTILITY_H
|
|
|
|
|
|
|
|
#include "base/i2-base.hpp"
|
2015-02-26 11:04:57 +01:00
|
|
|
#include "cli/i2-cli.hpp"
|
2014-10-30 15:22:55 +01:00
|
|
|
#include "base/dictionary.hpp"
|
|
|
|
#include "base/string.hpp"
|
|
|
|
#include <ostream>
|
|
|
|
|
|
|
|
namespace icinga
|
|
|
|
{
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @ingroup cli
|
|
|
|
*/
|
2017-12-31 07:22:16 +01:00
|
|
|
class VariableUtility
|
2014-10-30 15:22:55 +01:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
static Value GetVariable(const String& name);
|
|
|
|
static void PrintVariables(std::ostream& outfp);
|
|
|
|
|
|
|
|
private:
|
2018-01-04 04:25:35 +01:00
|
|
|
VariableUtility();
|
2014-10-30 15:22:55 +01:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* VARIABLEUTILITY_H */
|