icinga2/base/component.cpp

24 lines
416 B
C++
Raw Normal View History

#include "i2-base.h"
using namespace icinga;
2012-03-31 16:03:42 +02:00
void Component::SetApplication(const Application::WeakRefType& application)
{
m_Application = application;
}
Application::RefType Component::GetApplication(void)
{
return m_Application.lock();
}
2012-03-31 16:03:42 +02:00
void Component::SetConfig(ConfigObject::RefType componentConfig)
{
m_Config = componentConfig;
}
ConfigObject::RefType Component::GetConfig(void)
{
return m_Config;
}