ScummVM API documentation
documents_browser_xml_parser.h
1/* ScummVM - Graphic Adventure Engine
2 *
3 * ScummVM is the legal property of its developers, whose names
4 * are too numerous to list here. Please refer to the COPYRIGHT
5 * file distributed with this source distribution.
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 *
20 */
21
22#include "common/hashmap.h"
23#include "common/str.h"
24#include "common/formats/xmlparser.h"
25#include "tetraedge/game/documents_browser.h"
26
27#ifndef TETRAEDGE_GAME_DOCUMENTS_BROWSER_XML_PARSER_H
28#define TETRAEDGE_GAME_DOCUMENTS_BROWSER_XML_PARSER_H
29
30namespace Tetraedge {
31
33public:
34 // Parser
35 CUSTOM_XML_PARSER(DocumentsBrowserXmlParser) {
36 XML_KEY(document)
37 XML_KEY(Document)
38 XML_PROP(id, true)
39 XML_PROP(name, true)
40 XML_PROP(description, false)
41 KEY_END()
42 KEY_END()
43 } PARSER_END()
44
45 bool parserCallback_document(ParserNode *node) { return true; };
46 bool parserCallback_Document(ParserNode *node);
47
48public:
50
51};
52
53} // end namespace Tetraedge
54
55#endif // TETRAEDGE_GAME_DOCUMENTS_BROWSER_XML_PARSER_H
Definition: hashmap.h:85
Definition: xmlparser.h:98
Definition: document.h:34
Definition: documents_browser_xml_parser.h:32
Definition: xmlparser.h:145