gcc const fix, converted linefeeds
[shibboleth/cpp-xmltooling.git] / xmltooling / io / AbstractXMLObjectUnmarshaller.h
index 80d0909..a69ef1b 100644 (file)
@@ -1,96 +1,96 @@
-/*\r
-*  Copyright 2001-2006 Internet2\r
- * \r
-* Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *     http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-\r
-/**\r
- * @file AbstractXMLObjectUnmarshaller.h\r
- * \r
- * A thread-safe abstract unmarshaller.\r
- */\r
-\r
-#ifndef __xmltooling_xmlunmarshaller_h__\r
-#define __xmltooling_xmlunmarshaller_h__\r
-\r
-#include <xmltooling/AbstractDOMCachingXMLObject.h>\r
-\r
-#if defined (_MSC_VER)\r
-    #pragma warning( push )\r
-    #pragma warning( disable : 4250 4251 )\r
-#endif\r
-\r
-namespace xmltooling {\r
-\r
-    /**\r
-     * A thread-safe abstract unmarshaller.\r
-     */\r
-    class XMLTOOL_API AbstractXMLObjectUnmarshaller : public virtual AbstractXMLObject\r
-    {\r
-    public:\r
-        virtual ~AbstractXMLObjectUnmarshaller() {}\r
-\r
-        XMLObject* unmarshall(DOMElement* element, bool bindDocument=false);\r
-            \r
-    protected:\r
-        AbstractXMLObjectUnmarshaller() {}\r
-\r
-        /**\r
-         * Unmarshalls the attributes from the given DOM Element into the XMLObject. If the attribute\r
-         * is an XML namespace declaration the namespace is added via XMLObject::addNamespace().\r
-         * If it is a schema type (xsi:type) the schema type is added via XMLObject::setSchemaType().\r
-         * All other attributes are passed to the processAttribute hook.\r
-         * \r
-         * @param domElement the DOM Element whose attributes will be unmarshalled\r
-         * \r
-         * @throws UnmarshallingException thrown if there is a problem unmarshalling an attribute\r
-         */\r
-        virtual void unmarshallAttributes(const DOMElement* domElement);\r
-\r
-        /**\r
-         * Unmarshalls a given Element's child nodes. The resulting XMLObject children and content\r
-         * are passed to processChildElement() or processText() for further processing.\r
-         * \r
-         * @param domElement the DOM Element whose children will be unmarshalled\r
-         * \r
-         * @throws UnmarshallingException thrown if an error occurs unmarshalling the child elements\r
-         */\r
-        virtual void unmarshallContent(const DOMElement* domElement);\r
-\r
-        /**\r
-         * Called after a child element has been unmarshalled so that it can be added to the parent XMLObject.\r
-         * \r
-         * @param child     pointer to the child XMLObject\r
-         * @param childRoot root element of the child (must not be stored, just a hint)\r
-         * \r
-         * @throws UnmarshallingException thrown if there is a problem adding the child to the parent\r
-         */\r
-        virtual void processChildElement(XMLObject* child, const DOMElement* childRoot);\r
-    \r
-        /**\r
-         * Called after an attribute has been unmarshalled so that it can be added to the XMLObject.\r
-         * \r
-         * @param attribute the attribute being unmarshalled\r
-         * \r
-         * @throws UnmarshallingException thrown if there is a problem adding the attribute to the XMLObject\r
-         */\r
-        virtual void processAttribute(const DOMAttr* attribute);\r
-    };\r
-    \r
-};\r
-\r
-#if defined (_MSC_VER)\r
-    #pragma warning( pop )\r
-#endif\r
-\r
-#endif /* __xmltooling_xmlunmarshaller_h__ */\r
+/*
+*  Copyright 2001-2006 Internet2
+ * 
+* Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @file AbstractXMLObjectUnmarshaller.h
+ * 
+ * A thread-safe abstract unmarshaller.
+ */
+
+#ifndef __xmltooling_xmlunmarshaller_h__
+#define __xmltooling_xmlunmarshaller_h__
+
+#include <xmltooling/AbstractDOMCachingXMLObject.h>
+
+#if defined (_MSC_VER)
+    #pragma warning( push )
+    #pragma warning( disable : 4250 4251 )
+#endif
+
+namespace xmltooling {
+
+    /**
+     * A thread-safe abstract unmarshaller.
+     */
+    class XMLTOOL_API AbstractXMLObjectUnmarshaller : public virtual AbstractXMLObject
+    {
+    public:
+        virtual ~AbstractXMLObjectUnmarshaller() {}
+
+        XMLObject* unmarshall(DOMElement* element, bool bindDocument=false);
+            
+    protected:
+        AbstractXMLObjectUnmarshaller() {}
+
+        /**
+         * Unmarshalls the attributes from the given DOM Element into the XMLObject. If the attribute
+         * is an XML namespace declaration the namespace is added via XMLObject::addNamespace().
+         * If it is a schema type (xsi:type) the schema type is added via XMLObject::setSchemaType().
+         * All other attributes are passed to the processAttribute hook.
+         * 
+         * @param domElement the DOM Element whose attributes will be unmarshalled
+         * 
+         * @throws UnmarshallingException thrown if there is a problem unmarshalling an attribute
+         */
+        virtual void unmarshallAttributes(const DOMElement* domElement);
+
+        /**
+         * Unmarshalls a given Element's child nodes. The resulting XMLObject children and content
+         * are passed to processChildElement() or processText() for further processing.
+         * 
+         * @param domElement the DOM Element whose children will be unmarshalled
+         * 
+         * @throws UnmarshallingException thrown if an error occurs unmarshalling the child elements
+         */
+        virtual void unmarshallContent(const DOMElement* domElement);
+
+        /**
+         * Called after a child element has been unmarshalled so that it can be added to the parent XMLObject.
+         * 
+         * @param child     pointer to the child XMLObject
+         * @param childRoot root element of the child (must not be stored, just a hint)
+         * 
+         * @throws UnmarshallingException thrown if there is a problem adding the child to the parent
+         */
+        virtual void processChildElement(XMLObject* child, const DOMElement* childRoot);
+    
+        /**
+         * Called after an attribute has been unmarshalled so that it can be added to the XMLObject.
+         * 
+         * @param attribute the attribute being unmarshalled
+         * 
+         * @throws UnmarshallingException thrown if there is a problem adding the attribute to the XMLObject
+         */
+        virtual void processAttribute(const DOMAttr* attribute);
+    };
+    
+};
+
+#if defined (_MSC_VER)
+    #pragma warning( pop )
+#endif
+
+#endif /* __xmltooling_xmlunmarshaller_h__ */