Default support for arbitrary DOM objects.
[shibboleth/xmltooling.git] / xmltooling / internal.h
index 383fbcf..199c644 100644 (file)
 \r
 #include "base.h"\r
 #include "XMLToolingConfig.h"\r
+#include "util/ParserPool.h"\r
 \r
 #include <vector>\r
 \r
 #define XMLTOOLING_LOGCAT "XMLTooling"\r
 \r
-namespace {\r
+namespace xmltooling {\r
     \r
     class XMLToolingInternalConfig : public xmltooling::XMLToolingConfig\r
     {\r
     public:\r
-        XMLToolingInternalConfig() : m_lock(NULL) {}\r
+        XMLToolingInternalConfig() : m_lock(NULL), m_parserPool(NULL) {}\r
+\r
+        static XMLToolingInternalConfig& getInternalConfig();\r
 \r
         // global per-process setup and shutdown of runtime\r
         bool init();\r
@@ -59,6 +62,9 @@ namespace {
         bool load_library(const char* path, void* context=NULL);\r
         bool log_config(const char* config=NULL);\r
 \r
+        // internal parser pool\r
+        xmltooling::ParserPool* m_parserPool;\r
+\r
     private:\r
         std::vector<void*> m_libhandles;\r
         void* m_lock;\r