mirror of https://github.com/Icinga/icinga2.git
31 lines
383 B
C++
31 lines
383 B
C++
/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
|
|
|
|
#ifndef DBREFERENCE_H
|
|
#define DBREFERENCE_H
|
|
|
|
#include "db_ido/i2-db_ido.hpp"
|
|
|
|
namespace icinga
|
|
{
|
|
|
|
/**
|
|
* A database reference.
|
|
*
|
|
* @ingroup ido
|
|
*/
|
|
struct DbReference
|
|
{
|
|
public:
|
|
DbReference() = default;
|
|
DbReference(long id);
|
|
|
|
bool IsValid() const;
|
|
operator long() const;
|
|
private:
|
|
long m_Id{-1};
|
|
};
|
|
|
|
}
|
|
|
|
#endif /* DBREFERENCE_H */
|