#include "i2-dyn.h" using namespace icinga; ConfigContext::ConfigContext(istream *input) { m_Input = input; InitializeScanner(); } ConfigContext::~ConfigContext(void) { DestroyScanner(); } size_t ConfigContext::ReadInput(char *buffer, size_t max_size) { m_Input->read(buffer, max_size); return m_Input->gcount(); } void *ConfigContext::GetScanner(void) const { return m_Scanner; } void ConfigContext::SetResult(set result) { m_Result = result; } set ConfigContext::GetResult(void) const { return m_Result; }