2
* cxxtools - general purpose C++-toolbox
3
* Copyright (C) 2007 Tommi Maekitalo
5
* This program is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU General Public License as
7
* published by the Free Software Foundation; either version 2 of the
8
* License, or (at your option) any later version.
10
* This program is distributed in the hope that it will be useful, but
11
* is provided AS IS, WITHOUT ANY WARRANTY; without even the implied
12
* warranty of MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, and
13
* NON-INFRINGEMENT. See the GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
27
* Parser for files in ini-format
35
// events return true, if parsing should be stopped
36
virtual bool onSection(const std::string& section);
37
virtual bool onKey(const std::string& key);
38
virtual bool onValue(const std::string& key);
39
virtual bool onComment(const std::string& comment);
40
virtual bool onError();
59
IniParser(Event& event_)
66
void parse(std::istream& in);