1 /* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
3 #ifndef CUSTOMVAROBJECT_H
4 #define CUSTOMVAROBJECT_H
6 #include "icinga/i2-icinga.hpp"
7 #include "icinga/customvarobject-ti.hpp"
8 #include "base/configobject.hpp"
9 #include "remote/messageorigin.hpp"
15 * An object with custom variable attribute.
19 class CustomVarObject : public ObjectImpl<CustomVarObject>
22 DECLARE_OBJECT(CustomVarObject);
24 void ValidateVars(const Lazy<Dictionary::Ptr>& lvalue, const ValidationUtils& utils) final;
27 int FilterArrayToInt(const Array::Ptr& typeFilters, const std::map<String, int>& filterMap, int defaultValue);
31 #endif /* CUSTOMVAROBJECT_H */