gcc const fix, converted linefeeds
[shibboleth/cpp-xmltooling.git] / xmltooling / AbstractElementProxy.h
index ed95e53..473a942 100644 (file)
@@ -1,67 +1,67 @@
-/*\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 xmltooling/AbstractElementProxy.h\r
- * \r
- * AbstractXMLObject mixin that implements an open content model \r
- */\r
-\r
-#ifndef __xmltooling_abseleproxy_h__\r
-#define __xmltooling_abseleproxy_h__\r
-\r
-#include <xmltooling/AbstractComplexElement.h>\r
-#include <xmltooling/ElementProxy.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
-     * AbstractXMLObject mixin that layers ElementProxy on top of a complex element.\r
-     * Inherit from this class to implement complex content\r
-     * and expose the underlying child collection in read/write mode.\r
-     */\r
-    class XMLTOOL_API AbstractElementProxy : public virtual ElementProxy, public AbstractComplexElement\r
-    {\r
-    public:\r
-        virtual ~AbstractElementProxy() {}\r
-        \r
-        virtual ListOf(XMLObject) getXMLObjects() {\r
-            return ListOf(XMLObject)(this,m_children,NULL,m_children.end());\r
-        }\r
-    \r
-        virtual const std::list<XMLObject*>& getXMLObjects() const {\r
-            return m_children;\r
-        }\r
-\r
-    protected:\r
-        AbstractElementProxy() {}\r
-        \r
-        /** Copy constructor. */\r
-        AbstractElementProxy(const AbstractElementProxy& src) : AbstractXMLObject(src), AbstractComplexElement(src) {}\r
-    };\r
-    \r
-};\r
-\r
-#if defined (_MSC_VER)\r
-    #pragma warning( pop )\r
-#endif\r
-\r
-#endif /* __xmltooling_abseleproxy_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 xmltooling/AbstractElementProxy.h
+ * 
+ * AbstractXMLObject mixin that implements an open content model 
+ */
+
+#ifndef __xmltooling_abseleproxy_h__
+#define __xmltooling_abseleproxy_h__
+
+#include <xmltooling/AbstractComplexElement.h>
+#include <xmltooling/ElementProxy.h>
+
+#if defined (_MSC_VER)
+    #pragma warning( push )
+    #pragma warning( disable : 4250 4251 )
+#endif
+
+namespace xmltooling {
+
+    /**
+     * AbstractXMLObject mixin that layers ElementProxy on top of a complex element.
+     * Inherit from this class to implement complex content
+     * and expose the underlying child collection in read/write mode.
+     */
+    class XMLTOOL_API AbstractElementProxy : public virtual ElementProxy, public AbstractComplexElement
+    {
+    public:
+        virtual ~AbstractElementProxy() {}
+        
+        virtual ListOf(XMLObject) getXMLObjects() {
+            return ListOf(XMLObject)(this,m_children,NULL,m_children.end());
+        }
+    
+        virtual const std::list<XMLObject*>& getXMLObjects() const {
+            return m_children;
+        }
+
+    protected:
+        AbstractElementProxy() {}
+        
+        /** Copy constructor. */
+        AbstractElementProxy(const AbstractElementProxy& src) : AbstractXMLObject(src), AbstractComplexElement(src) {}
+    };
+    
+};
+
+#if defined (_MSC_VER)
+    #pragma warning( pop )
+#endif
+
+#endif /* __xmltooling_abseleproxy_h__ */