Major revamp of credential and trust handling code, PKIX engine still needs work.
[shibboleth/cpp-xmltooling.git] / xmltooling / AbstractXMLObject.h
index 80f3871..576a7d0 100644 (file)
@@ -1,5 +1,5 @@
 /*
-*  Copyright 2001-2006 Internet2
+*  Copyright 2001-2007 Internet2
  * 
 * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * An abstract implementation of XMLObject.
  */
 
-#if !defined(__xmltooling_abstractxmlobj_h__)
+#ifndef __xmltooling_abstractxmlobj_h__
 #define __xmltooling_abstractxmlobj_h__
 
 #include <xmltooling/XMLObject.h>
 #include <xmltooling/util/DateTime.h>
 
+#include <log4cpp/Category.hh>
+
 #if defined (_MSC_VER)
     #pragma warning( push )
     #pragma warning( disable : 4250 4251 )
@@ -46,6 +48,7 @@ namespace xmltooling {
         virtual ~AbstractXMLObject() {
             delete m_typeQname;
             XMLString::release(&m_schemaLocation);
+            XMLString::release(&m_noNamespaceSchemaLocation);
         }
 
         void detach();
@@ -192,13 +195,18 @@ namespace xmltooling {
         /**
          * Logging object.
          */
-        void* m_log;
+        log4cpp::Category& m_log;
 
         /**
          * Stores off xsi:schemaLocation attribute.
          */
         XMLCh* m_schemaLocation;
 
+        /**
+         * Stores off xsi:noNamespaceSchemaLocation attribute.
+         */
+        XMLCh* m_noNamespaceSchemaLocation;
+
     private:
         XMLObject* m_parent;
         QName m_elementQname;