diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-08-20 00:34:20 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-08-20 00:34:20 +0300 |
commit | 899d3b925ccb249de881bbc957f6e4ddc754cbbd (patch) | |
tree | 4c35a6f21d909f9bc07ed091f0c8e3cb5f700105 /src/utils/xml/pugixml.h | |
parent | 1049de4c76ac6fc85c9f7f2bd35fb62ca787aa4c (diff) | |
download | mv-899d3b925ccb249de881bbc957f6e4ddc754cbbd.tar.gz mv-899d3b925ccb249de881bbc957f6e4ddc754cbbd.tar.bz2 mv-899d3b925ccb249de881bbc957f6e4ddc754cbbd.tar.xz mv-899d3b925ccb249de881bbc957f6e4ddc754cbbd.zip |
Add function for read float and double number from xml.
Diffstat (limited to 'src/utils/xml/pugixml.h')
-rw-r--r-- | src/utils/xml/pugixml.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/utils/xml/pugixml.h b/src/utils/xml/pugixml.h index 14a3bdbdf..e4337140e 100644 --- a/src/utils/xml/pugixml.h +++ b/src/utils/xml/pugixml.h @@ -99,7 +99,14 @@ namespace XML /** * Gets an floating point property from an XmlNodePtr. */ - double getFloatProperty(XmlNodeConstPtr node, + float getFloatProperty(XmlNodeConstPtr node, + const char *const name, + float def) A_WARN_UNUSED; + + /** + * Gets an double point property from an XmlNodePtr. + */ + double getDoubleProperty(XmlNodeConstPtr node, const char *const name, double def) A_WARN_UNUSED; |