icinga2/lib/config/objectrule.hpp

34 lines
507 B
C++
Raw Normal View History

/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
#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"
#include "base/debuginfo.hpp"
#include <set>
namespace icinga
{
/**
* @ingroup config
*/
2017-12-31 07:22:16 +01:00
class ObjectRule
{
public:
typedef std::set<String> TypeSet;
static void RegisterType(const String& sourceType);
static bool IsValidSourceType(const String& sourceType);
private:
ObjectRule();
static TypeSet m_Types;
};
}
#endif /* OBJECTRULE_H */