summaryrefslogtreecommitdiffstats
path: root/lib/config/objectrule.cpp
blob: 6a74a40b996f123e7ced7153cd7afba48da254ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */

#include "config/objectrule.hpp"
#include <set>

using namespace icinga;

ObjectRule::TypeSet ObjectRule::m_Types;

void ObjectRule::RegisterType(const String& sourceType)
{
	m_Types.insert(sourceType);
}

bool ObjectRule::IsValidSourceType(const String& sourceType)
{
	return m_Types.find(sourceType) != m_Types.end();
}