20 #ifndef CONFIG_COMMON_H_
21 #define CONFIG_COMMON_H_
23 #include "Config_def.h"
30 typedef struct _xmlNode xmlNode;
31 typedef xmlNode *xmlNodePtr;
36 typedef struct _xmlDoc xmlDoc;
37 typedef xmlDoc *xmlDocPtr;
44 CONFIG_EXPORT
bool isElementNode(xmlNodePtr theNode);
54 CONFIG_EXPORT
bool isNode(xmlNodePtr theNode,
const char* theNodeName, ...);
64 CONFIG_EXPORT
bool isAttributeNode(xmlNodePtr theNode);
70 CONFIG_EXPORT
bool isWidgetNode(xmlNodePtr theNode);
72 CONFIG_EXPORT
bool isCaseNode(xmlNodePtr theNode);
81 CONFIG_EXPORT
bool hasChild(xmlNodePtr theNode);
87 CONFIG_EXPORT
bool hasParent(xmlNodePtr theNode);
92 CONFIG_EXPORT
bool hasParent(xmlNodePtr theNode,
const char* theNodeName, ...);
97 CONFIG_EXPORT xmlNodePtr hasParentRecursive(xmlNodePtr theNode,
const char* theNodeName, ...);
103 CONFIG_EXPORT
bool getParametersInfo(xmlNodePtr theNode, std::string& outPropertyId,
104 std::list<std::string>& outValidatorParameters);
117 CONFIG_EXPORT std::string library(
const std::string& theLibName);
122 CONFIG_EXPORT std::string getProperty(xmlNodePtr theNode,
const char* thePropName);
127 CONFIG_EXPORT std::string getContent(xmlNodePtr theNode);
132 std::string getNormalizedProperty(xmlNodePtr theNode,
const char* thePropName);
142 CONFIG_EXPORT
bool getBooleanAttribute(xmlNodePtr theNode,
143 const char* theAttributeName,
150 CONFIG_EXPORT std::string normalize(
const char* theString);
155 CONFIG_EXPORT std::string normalize(
const std::string& theString);