Reducing header overuse, non-inlining selected methods (CPPOST-35).
[shibboleth/cpp-xmltooling.git] / xmltooling / impl / AnyElement.cpp
index 8fb4cfc..27c1702 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  Copyright 2001-2007 Internet2
+ *  Copyright 2001-2009 Internet2
  * 
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -32,6 +32,19 @@ using namespace xmltooling;
 using namespace xercesc;
 using namespace std;
 
+AnyElementImpl::AnyElementImpl()
+{
+}
+
+AnyElementImpl::AnyElementImpl(const XMLCh* nsURI, const XMLCh* localName, const XMLCh* prefix, const xmltooling::QName* schemaType)
+    : AbstractXMLObject(nsURI, localName, prefix, schemaType)
+{
+}
+
+AnyElementImpl::~AnyElementImpl()
+{
+}
+
 XMLObject* AnyElementImpl::clone() const {
     auto_ptr<XMLObject> domClone(AbstractDOMCachingXMLObject::clone());
     AnyElementImpl* ret=dynamic_cast<AnyElementImpl*>(domClone.get());
@@ -43,27 +56,34 @@ XMLObject* AnyElementImpl::clone() const {
     return new AnyElementImpl(*this);
 }
 
-AnyElementImpl::AnyElementImpl(const AnyElementImpl& src) : AbstractXMLObject(src), AbstractDOMCachingXMLObject(src),
-        AbstractComplexElement(src), AbstractAttributeExtensibleXMLObject(src) {
+AnyElementImpl::AnyElementImpl(const AnyElementImpl& src)
+        : AbstractXMLObject(src),
+          AbstractDOMCachingXMLObject(src),
+          AbstractComplexElement(src),
+          AbstractAttributeExtensibleXMLObject(src) {
     const vector<XMLObject*>& children = src.getUnknownXMLObjects();
     for (vector<XMLObject*>::const_iterator i=children.begin(); i!=children.end(); ++i)
         getUnknownXMLObjects().push_back((*i)->clone());
 }       
 
-void AnyElementImpl::marshallAttributes(DOMElement* domElement) const {
+void AnyElementImpl::marshallAttributes(DOMElement* domElement) const
+{
     marshallExtensionAttributes(domElement);
 }
 
-void AnyElementImpl::processChildElement(XMLObject* childXMLObject, const DOMElement* root) {
+void AnyElementImpl::processChildElement(XMLObject* childXMLObject, const DOMElement* root)
+{
     getUnknownXMLObjects().push_back(childXMLObject);
 }
 
-void AnyElementImpl::processAttribute(const DOMAttr* attribute) {
+void AnyElementImpl::processAttribute(const DOMAttr* attribute)
+{
     unmarshallExtensionAttribute(attribute);
 }
 
 XMLObject* AnyElementBuilder::buildObject(
     const XMLCh* nsURI, const XMLCh* localName, const XMLCh* prefix, const xmltooling::QName* schemaType
-    ) const {
+    ) const
+{
     return new AnyElementImpl(nsURI, localName, prefix, schemaType);
 }