mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 12:31:51 +00:00
refactor & optimize xml parser
This commit is contained in:
parent
04b6b6b546
commit
84b3b82dba
6 changed files with 384 additions and 376 deletions
|
|
@ -11,7 +11,8 @@
|
|||
namespace gui {
|
||||
class UiXmlReader;
|
||||
|
||||
using uinode_reader = std::function<std::shared_ptr<UINode>(UiXmlReader&, xml::xmlelement)>;
|
||||
using uinode_reader = std::function<
|
||||
std::shared_ptr<UINode>(UiXmlReader&, const xml::xmlelement&)>;
|
||||
|
||||
class UiXmlReader {
|
||||
std::unordered_map<std::string, uinode_reader> readers;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue