icinga2/base/component.cpp
2012-04-02 20:50:35 +02:00

23 lines
400 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(ConfigObject::Ptr componentConfig)
{
m_Config = componentConfig;
}
ConfigObject::Ptr Component::GetConfig(void)
{
return m_Config;
}