From: Scott Cantor Date: Wed, 21 Dec 2011 21:03:00 +0000 (+0000) Subject: Add int/bool attribute clone macros X-Git-Tag: 1.5.0~46 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-xmltooling.git;a=commitdiff_plain;h=3a723fe08ce40ab3f476648f44e64d2143e418e1 Add int/bool attribute clone macros --- diff --git a/xmltooling/base.h b/xmltooling/base.h index 0f8bf1b..f70e0f6 100644 --- a/xmltooling/base.h +++ b/xmltooling/base.h @@ -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. *