#ifndef CONFIG_XMLREADER_H_
#define CONFIG_XMLREADER_H_
-#include <Config.h>
+#include <Config_def.h>
#include <cstdarg>
#include <string>
*/
class Config_XMLReader
{
-public:
- CONFIG_EXPORT Config_XMLReader(const std::string& theXmlFile);
- CONFIG_EXPORT virtual ~Config_XMLReader();
+ public:
+ CONFIG_EXPORT Config_XMLReader(const std::string& theXmlFile);CONFIG_EXPORT virtual ~Config_XMLReader();
CONFIG_EXPORT void readAll();
-protected:
+ public:
+ CONFIG_EXPORT xmlNodePtr findRoot();
+
+ protected:
virtual void processNode(xmlNodePtr aNode);
virtual bool processChildren(xmlNodePtr aNode);
- xmlNodePtr findRoot();
void readRecursively(xmlNodePtr theParent);
xmlNodePtr node(void* theNode);
+ std::string getNodeName(xmlNodePtr theNode);
std::string getProperty(xmlNodePtr theNode, const char* property);
+ void processValidator(xmlNodePtr theNode);
+
+ protected:
+ std::string myCurrentFeature;
-protected:
+ protected:
std::string myDocumentPath;
- xmlDocPtr myXmlDoc;
+ xmlDocPtr myXmlDoc;
};
#endif /* CONFIG_XMLREADER_H_ */