| 20 | Parser::operator bool() const { return m_pScanner && !m_pScanner->empty(); } |
| 21 | |
| 22 | void Parser::Load(std::istream& in) { |
| 23 | m_pScanner.reset(new Scanner(in)); |
| 24 | m_pDirectives.reset(new Directives); |
| 25 | } |
| 26 | |
| 27 | bool Parser::HandleNextDocument(EventHandler& eventHandler) { |
| 28 | if (!m_pScanner) |