ScummVM API documentation
inventory_objects_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/inventory.h"
26 
27 #ifndef TETRAEDGE_GAME_INVENTORY_OBJECTS_XML_PARSER_H
28 #define TETRAEDGE_GAME_INVENTORY_OBJECTS_XML_PARSER_H
29 
30 namespace Tetraedge {
31 
33 public:
34  // Parser
35  CUSTOM_XML_PARSER(InventoryObjectsXmlParser) {
36  XML_KEY(document)
37  XML_KEY(Object)
38  XML_PROP(id, true)
39  XML_PROP(name, true)
40  XML_PROP(isDocument, false)
41  XML_PROP(description, false)
42  KEY_END()
43  KEY_END()
44  } PARSER_END()
45 
46  bool parserCallback_document(ParserNode *node) { return true; };
47  bool parserCallback_Object(ParserNode *node);
48  bool handleUnknownKey(ParserNode *node) override;
49 
50 public:
52 
53 };
54 
55 } // end namespace Tetraedge
56 
57 #endif // TETRAEDGE_GAME_INVENTORY_OBJECTS_XML_PARSER_H
Definition: detection.h:27
Definition: inventory_objects_xml_parser.h:32
bool handleUnknownKey(ParserNode *node) override
Definition: xmlparser.h:145
Definition: xmlparser.h:98
Definition: hashmap.h:85