|
Kitlist
A list manager for maintaining kit lists
|
Loads a kitlist from the file system. More...
#include "kitparser.hpp"
Classes | |
| class | parse_exception |
| XML parsing error. More... | |
Public Member Functions | |
| KitParser (const std::string filename) | |
| Defautl constructor. | |
| std::unique_ptr< Model > | parse () |
| Parses the XML, building the data Model. | |
Private Member Functions | |
| void | parse_items (const pugi::xml_node &node) |
| Parses the items XML node. | |
| void | parse_categories (const pugi::xml_node &node) |
| Parses the categories XML node. | |
Private Attributes | |
| std::string | filename |
| The filename to be parsed. | |
| std::unique_ptr< Model > | model |
| The Model representing the parsed file. | |
Loads a kitlist from the file system.
The file is an XML structured file described by kitlist.dtd which is included in the source distribution tarball.
Definition at line 43 of file kitparser.hpp.
|
inline |
Defautl constructor.
Definition at line 68 of file kitparser.hpp.
| unique_ptr< Model > KitParser::parse | ( | ) |
Parses the XML, building the data Model.
| parse_exception. |
Definition at line 75 of file kitparser.cpp.
|
private |
Parses the categories XML node.
| node | the XML node containing a list of categories. |
Definition at line 46 of file kitparser.cpp.
|
private |
Parses the items XML node.
| node | the XML node containing a list of items. |
Definition at line 30 of file kitparser.cpp.
|
private |
The filename to be parsed.
Definition at line 46 of file kitparser.hpp.
|
private |
The Model representing the parsed file.
Definition at line 49 of file kitparser.hpp.