2019-02-25 14:48:22 +01:00
|
|
|
/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
|
2014-05-12 16:45:25 +02:00
|
|
|
|
|
|
|
#ifndef CUSTOMVAROBJECT_H
|
|
|
|
#define CUSTOMVAROBJECT_H
|
|
|
|
|
2014-05-25 16:23:35 +02:00
|
|
|
#include "icinga/i2-icinga.hpp"
|
2018-01-18 13:50:38 +01:00
|
|
|
#include "icinga/customvarobject-ti.hpp"
|
2015-08-15 20:28:05 +02:00
|
|
|
#include "base/configobject.hpp"
|
2014-05-25 16:23:35 +02:00
|
|
|
#include "remote/messageorigin.hpp"
|
2014-05-12 16:45:25 +02:00
|
|
|
|
|
|
|
namespace icinga
|
|
|
|
{
|
|
|
|
|
|
|
|
/**
|
2014-05-19 18:17:47 +02:00
|
|
|
* An object with custom variable attribute.
|
2014-05-12 16:45:25 +02:00
|
|
|
*
|
2014-05-19 18:17:47 +02:00
|
|
|
* @ingroup icinga
|
2014-05-12 16:45:25 +02:00
|
|
|
*/
|
2017-12-31 07:22:16 +01:00
|
|
|
class CustomVarObject : public ObjectImpl<CustomVarObject>
|
2014-05-12 16:45:25 +02:00
|
|
|
{
|
|
|
|
public:
|
2014-11-03 00:44:04 +01:00
|
|
|
DECLARE_OBJECT(CustomVarObject);
|
2014-05-12 16:45:25 +02:00
|
|
|
|
2018-01-11 07:08:09 +01:00
|
|
|
void ValidateVars(const Lazy<Dictionary::Ptr>& lvalue, const ValidationUtils& utils) final;
|
2014-05-12 16:45:25 +02:00
|
|
|
};
|
|
|
|
|
2017-12-31 07:22:16 +01:00
|
|
|
int FilterArrayToInt(const Array::Ptr& typeFilters, const std::map<String, int>& filterMap, int defaultValue);
|
2016-06-21 14:46:01 +02:00
|
|
|
|
2014-05-12 16:45:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* CUSTOMVAROBJECT_H */
|