Additional macros.
authorcantor <cantor@de75baf8-a10c-0410-a50a-987c0e22f00f>
Tue, 30 May 2006 01:27:57 +0000 (01:27 +0000)
committercantor <cantor@de75baf8-a10c-0410-a50a-987c0e22f00f>
Tue, 30 May 2006 01:27:57 +0000 (01:27 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-xmltooling/trunk@111 de75baf8-a10c-0410-a50a-987c0e22f00f

xmltooling/base.h

index c377e4d..3375844 100644 (file)
     }
 
 /**
+ * Implements unmarshalling process branch for a generic child singleton element
+ * 
+ * @param proper        the proper name of the child type
+ * @param namespaceURI  the XML namespace of the child element
+ */
+#define PROC_XMLOBJECT_CHILD(proper,namespaceURI) \
+    if (xmltooling::XMLHelper::isNodeNamed(root,namespaceURI,proper::LOCAL_NAME)) { \
+        set##proper(childXMLObject); \
+        return; \
+    }
+
+/**
  * Declares aliased get/set methods for named XML element content.
  * 
  * @param proper    the proper name to label the element's content