2019-02-25 14:48:22 +01:00
|
|
|
/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
|
2014-04-23 12:44:36 +02:00
|
|
|
|
|
|
|
#ifndef OBJECTRULE_H
|
|
|
|
#define OBJECTRULE_H
|
|
|
|
|
2014-05-25 16:23:35 +02:00
|
|
|
#include "config/i2-config.hpp"
|
2014-10-16 17:44:06 +02:00
|
|
|
#include "config/expression.hpp"
|
2014-09-09 14:49:21 +02:00
|
|
|
#include "base/debuginfo.hpp"
|
2014-11-16 16:20:39 +01:00
|
|
|
#include <set>
|
2014-04-23 12:44:36 +02:00
|
|
|
|
|
|
|
namespace icinga
|
|
|
|
{
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @ingroup config
|
|
|
|
*/
|
2017-12-31 07:22:16 +01:00
|
|
|
class ObjectRule
|
2014-04-23 12:44:36 +02:00
|
|
|
{
|
|
|
|
public:
|
2014-11-16 16:20:39 +01:00
|
|
|
typedef std::set<String> TypeSet;
|
2014-04-23 12:44:36 +02:00
|
|
|
|
2014-11-16 16:20:39 +01:00
|
|
|
static void RegisterType(const String& sourceType);
|
2014-04-23 12:44:36 +02:00
|
|
|
static bool IsValidSourceType(const String& sourceType);
|
|
|
|
|
|
|
|
private:
|
2018-01-04 04:25:35 +01:00
|
|
|
ObjectRule();
|
2014-04-23 12:44:36 +02:00
|
|
|
|
2014-11-16 16:20:39 +01:00
|
|
|
static TypeSet m_Types;
|
2014-04-23 12:44:36 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* OBJECTRULE_H */
|