mirror of
				https://github.com/Icinga/icinga2.git
				synced 2025-10-31 03:03:52 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			266 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			266 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
 | |
| 
 | |
| #include "dbreference.hpp"
 | |
| 
 | |
| using namespace icinga;
 | |
| 
 | |
| DbReference::DbReference(long id)
 | |
| 	: m_Id(id)
 | |
| { }
 | |
| 
 | |
| bool DbReference::IsValid() const
 | |
| {
 | |
| 	return (m_Id != -1);
 | |
| }
 | |
| 
 | |
| DbReference::operator long() const
 | |
| {
 | |
| 	return m_Id;
 | |
| }
 |