2012-03-31 15:18:09 +02:00
|
|
|
#include "i2-base.h"
|
|
|
|
|
|
|
|
using namespace icinga;
|
|
|
|
|
2012-03-31 16:03:42 +02:00
|
|
|
void Component::SetApplication(const Application::WeakRefType& application)
|
2012-03-31 15:18:09 +02:00
|
|
|
{
|
|
|
|
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;
|
|
|
|
}
|