icinga2/base/component.cpp

24 lines
416 B
C++

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