]> granicus.if.org Git - icinga2/blob - lib/db_ido/dbreference.cpp
Merge pull request #7124 from Icinga/bugfix/namespace-thread-safe
[icinga2] / lib / db_ido / dbreference.cpp
1 /* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
2
3 #include "dbreference.hpp"
4
5 using namespace icinga;
6
7 DbReference::DbReference(long id)
8         : m_Id(id)
9 { }
10
11 bool DbReference::IsValid() const
12 {
13         return (m_Id != -1);
14 }
15
16 DbReference::operator long() const
17 {
18         return m_Id;
19 }