}
return -1;
}
+
+int ePythonConfigQuery::getConfigIntValue(const char *key, int defaultvalue)
+{
+ int result = defaultvalue;
+ std::string value;
+
+ if (!getConfigValue(key, value))
+ result = (value != "") ? atoi(value.c_str()) : result;
+
+ return result;
+}
+
+bool ePythonConfigQuery::getConfigBoolValue(const char *key, bool defaultvalue)
+{
+ bool result = defaultvalue;
+ std::string value;
+
+ if (!getConfigValue(key, value))
+ result = (value == "True" || value == "true");
+
+ return result;
+}