mirror of
				https://github.com/Icinga/icinga2.git
				synced 2025-11-04 05:34:12 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			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 */
 |