1 /* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
2 
3 #include "dbreference.hpp"
4 
5 using namespace icinga;
6 
DbReference(long id)7 DbReference::DbReference(long id)
8 	: m_Id(id)
9 { }
10 
IsValid() const11 bool DbReference::IsValid() const
12 {
13 	return (m_Id != -1);
14 }
15 
operator long() const16 DbReference::operator long() const
17 {
18 	return m_Id;
19 }
20