Multi-line svn commit, see body.
[shibboleth/cpp-xmltooling.git] / xmltooling / AbstractSimpleElement.cpp
diff --git a/xmltooling/AbstractSimpleElement.cpp b/xmltooling/AbstractSimpleElement.cpp
new file mode 100644 (file)
index 0000000..920aa3b
--- /dev/null
@@ -0,0 +1,36 @@
+/*\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
+ * AbstractSimpleElement.cpp\r
+ * \r
+ * Extension of AbstractXMLObject that implements simple elements \r
+ */\r
+\r
+#include "internal.h"\r
+#include "AbstractSimpleElement.h"\r
+\r
+using namespace xmltooling;\r
+using namespace std;\r
+\r
+// shared "empty" list of children for childless objects\r
+\r
+list<XMLObject*> AbstractSimpleElement::m_no_children;\r
+\r
+void AbstractSimpleElement::removeChild(XMLObject* child)\r
+{\r
+    throw XMLObjectException("Cannot remove child from a childless object.");\r
+}\r