summaryrefslogtreecommitdiff
path: root/src/utils/xml/libxml.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-20 00:34:20 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-20 00:34:20 +0300
commit899d3b925ccb249de881bbc957f6e4ddc754cbbd (patch)
tree4c35a6f21d909f9bc07ed091f0c8e3cb5f700105 /src/utils/xml/libxml.h
parent1049de4c76ac6fc85c9f7f2bd35fb62ca787aa4c (diff)
downloadplus-899d3b925ccb249de881bbc957f6e4ddc754cbbd.tar.gz
plus-899d3b925ccb249de881bbc957f6e4ddc754cbbd.tar.bz2
plus-899d3b925ccb249de881bbc957f6e4ddc754cbbd.tar.xz
plus-899d3b925ccb249de881bbc957f6e4ddc754cbbd.zip
Add function for read float and double number from xml.
Diffstat (limited to 'src/utils/xml/libxml.h')
-rw-r--r--src/utils/xml/libxml.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/utils/xml/libxml.h b/src/utils/xml/libxml.h
index d9f707a5e..6ec0ce08d 100644
--- a/src/utils/xml/libxml.h
+++ b/src/utils/xml/libxml.h
@@ -98,7 +98,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;