icinga2/base/component.cpp

24 lines
407 B
C++

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