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

#include "dbreference.hpp"

using namespace icinga;

DbReference::DbReference(long id)
	: m_Id(id)
{ }

bool DbReference::IsValid() const
{
	return (m_Id != -1);
}

DbReference::operator long() const
{
	return m_Id;
}