diff options
Diffstat (limited to 'src/utils/xml.h')
-rw-r--r-- | src/utils/xml.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/utils/xml.h b/src/utils/xml.h index 60355aa6..df8dd1bd 100644 --- a/src/utils/xml.h +++ b/src/utils/xml.h @@ -60,9 +60,9 @@ namespace XML }; /** - * Gets an floating point property from an xmlNodePtr. + * Returns whether a certain property is present. */ - double getFloatProperty(xmlNodePtr node, const char *name, double def); + bool hasProperty(xmlNodePtr node, const char *name); /** * Gets an integer property from an xmlNodePtr. @@ -70,6 +70,11 @@ namespace XML int getProperty(xmlNodePtr node, const char *name, int def); /** + * Gets an floating point property from an xmlNodePtr. + */ + double getFloatProperty(xmlNodePtr node, const char *name, double def); + + /** * Gets a string property from an xmlNodePtr. */ std::string getProperty(xmlNodePtr node, const char *name, |