2019-02-25 14:48:22 +01:00
|
|
|
/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
|
2013-07-05 09:37:04 +02:00
|
|
|
|
2014-05-25 16:23:35 +02:00
|
|
|
#include "dbreference.hpp"
|
2013-07-05 09:37:04 +02:00
|
|
|
|
|
|
|
using namespace icinga;
|
|
|
|
|
|
|
|
DbReference::DbReference(long id)
|
|
|
|
: m_Id(id)
|
|
|
|
{ }
|
|
|
|
|
2018-01-04 04:25:35 +01:00
|
|
|
bool DbReference::IsValid() const
|
2013-07-05 09:37:04 +02:00
|
|
|
{
|
|
|
|
return (m_Id != -1);
|
|
|
|
}
|
|
|
|
|
2018-01-04 04:25:35 +01:00
|
|
|
DbReference::operator long() const
|
2013-07-05 09:37:04 +02:00
|
|
|
{
|
|
|
|
return m_Id;
|
|
|
|
}
|