4 * Created on: Mar 14, 2014
8 #ifndef CONFIG_XMLREADER_H_
9 #define CONFIG_XMLREADER_H_
12 #include "Config_Message.h"
16 //Forward declaration for xmlNodePtr.
17 typedef struct _xmlNode xmlNode;
18 typedef xmlNode *xmlNodePtr;
21 class CONFIG_EXPORT Config_XMLReader {
23 Config_XMLReader(const std::string& theXmlFile);
24 virtual ~Config_XMLReader();
29 virtual void processNode(xmlNodePtr aNode);
30 virtual bool processChildren(xmlNodePtr aNode);
32 xmlNodePtr findRoot();
33 void readRecursively(xmlNodePtr theParent);
35 xmlNodePtr node(void* theNode);
36 std::string getProperty(xmlNodePtr theNode, const char* property);
37 bool isNode(xmlNodePtr theNode, const char* name);
40 std::string m_DocumentPath;
43 #endif /* CONFIG_XMLREADER_H_ */