[cpp-xmltooling COMMIT] /branches/REL_1/xmltooling/base.h

noreply at shibboleth.net noreply at shibboleth.net
Wed Dec 21 21:03:00 GMT 2011


Author: scantor
Date: Wed Dec 21 21:03:00 2011
New Revision: 945

URL: http://svn.shibboleth.net/view/cpp-xmltooling?rev=945&view=rev
Log:
Add int/bool attribute clone macros

Modified:
    branches/REL_1/xmltooling/base.h

Modified: branches/REL_1/xmltooling/base.h
URL: http://svn.shibboleth.net/view/cpp-xmltooling/branches/REL_1/xmltooling/base.h?rev=945&r1=944&r2=945&view=diff
==============================================================================
--- branches/REL_1/xmltooling/base.h (original)
+++ branches/REL_1/xmltooling/base.h Wed Dec 21 21:03:00 2011
@@ -1366,6 +1366,24 @@
     set##proper(src.get##proper())
 
 /**
+ * Implements cloning of an integer child attribute, for use in copy constructor or
+ * deferred clone methods.
+ *
+ * proper   the proper name of the attribute to clone
+ */
+#define IMPL_CLONE_INTEGER_ATTRIB(proper) \
+    set##proper(src.m_##proper)
+
+/**
+ * Implements cloning of a boolean child attribute, for use in copy constructor or
+ * deferred clone methods.
+ *
+ * proper   the proper name of the attribute to clone
+ */
+#define IMPL_CLONE_BOOLEAN_ATTRIB(proper) \
+    proper(src.m_##proper)
+
+/**
  * Implements cloning of a child object, for use in copy constructor or
  * deferred clone methods.
  *



More information about the commits mailing list