From: <pat...@us...> - 2010-03-06 17:08:22
|
Revision: 648 http://xml-cppdom.svn.sourceforge.net/xml-cppdom/?rev=648&view=rev Author: patrickh Date: 2010-03-06 17:08:16 +0000 (Sat, 06 Mar 2010) Log Message: ----------- Merged r638 from the trunk: From the patch submission: cppdom::Attribute has (among others) the following c'tor: template <class T> Attribute(const T& val); and an output operator: std::ostream& operator<<(std::ostream& os, const Attribute& att); together these two constructs will grab any type that does not have a operator<< overload of its own and turn it into an infinite recursion at runtime (because the above c'tor uses setValue<T>(val) which uses a std::ostringstream to convert val into a string representation. Bumped the version to 1.0.1. Submited by: Carsten Neumann Modified Paths: -------------- branches/1.0/ChangeLog branches/1.0/cppdom/cppdom.h branches/1.0/cppdom/version.h Modified: branches/1.0/ChangeLog =================================================================== --- branches/1.0/ChangeLog 2010-03-06 17:02:22 UTC (rev 647) +++ branches/1.0/ChangeLog 2010-03-06 17:08:16 UTC (rev 648) @@ -1,5 +1,12 @@ DATE AUTHOR CHANGE ---------- ----------- ------------------------------------------------------- +[Version 1.0.1 released - 3.2.2009]============================================ + +2010-03-06 patrickh Fixed conflicts with the operator<< overload for + std::ostream and implicit constructio of + cppdom::Attribute objects. + Submitted by: Carsten Neumann + [Version 1.0.0 released - 3.2.2009]============================================ 2007-08-01 patrickh Updated for SConsAddons changes. On Windows, the Modified: branches/1.0/cppdom/cppdom.h =================================================================== --- branches/1.0/cppdom/cppdom.h 2010-03-06 17:02:22 UTC (rev 647) +++ branches/1.0/cppdom/cppdom.h 2010-03-06 17:08:16 UTC (rev 648) @@ -335,7 +335,7 @@ #ifndef CPPDOM_NO_MEMBER_TEMPLATES template<class T> - Attribute(const T& val) + explicit Attribute(const T& val) { setValue<T>(val); } @@ -548,6 +548,24 @@ */ void setAttribute(const std::string& attr, const Attribute& value); + /** + * Sets new attribute value. + * + * @post Element.attr is set to value. If it did not exist before, now + * it does. + * + * @param attr Attribute name to set. There must not be ANY spaces in + * this name. + * @param value Attribute value to set. + * + * @since 1.0.1 + */ + template<class T> + void setAttribute(const std::string& attr, const T& value) + { + setAttribute(attr, Attribute(value)); + } + /** Direct access to attribute map. */ Attributes& attrib(); Modified: branches/1.0/cppdom/version.h =================================================================== --- branches/1.0/cppdom/version.h 2010-03-06 17:02:22 UTC (rev 647) +++ branches/1.0/cppdom/version.h 2010-03-06 17:08:16 UTC (rev 648) @@ -55,7 +55,7 @@ // The major/minor/patch version (up to 3 digits each). #define CPPDOM_VERSION_MAJOR 1 #define CPPDOM_VERSION_MINOR 0 -#define CPPDOM_VERSION_PATCH 0 +#define CPPDOM_VERSION_PATCH 1 //-------------------------------------------------------------------------- //-------------------------------------------------------------------------- This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pat...@us...> - 2010-04-14 13:25:26
|
Revision: 654 http://xml-cppdom.svn.sourceforge.net/xml-cppdom/?rev=654&view=rev Author: patrickh Date: 2010-04-14 13:25:20 +0000 (Wed, 14 Apr 2010) Log Message: ----------- Roll the version to 1.0.2. Modified Paths: -------------- branches/1.0/ChangeLog branches/1.0/cppdom/version.h branches/1.0/cppdom.spec Modified: branches/1.0/ChangeLog =================================================================== --- branches/1.0/ChangeLog 2010-04-14 13:25:08 UTC (rev 653) +++ branches/1.0/ChangeLog 2010-04-14 13:25:20 UTC (rev 654) @@ -1,7 +1,12 @@ DATE AUTHOR CHANGE ---------- ----------- ------------------------------------------------------- -[Version 1.0.1 released - 3.2.2009]============================================ +[Version 1.0.2 released - 4.14.2010]=========================================== +2010-04-14 patrickh Preserve newlines in CDATA. + Submitted by: Carsten Neumann + +[Version 1.0.1 released - 3.2.2010]============================================ + 2010-03-06 patrickh Fixed conflicts with the operator<< overload for std::ostream and implicit constructio of cppdom::Attribute objects. Modified: branches/1.0/cppdom/version.h =================================================================== --- branches/1.0/cppdom/version.h 2010-04-14 13:25:08 UTC (rev 653) +++ branches/1.0/cppdom/version.h 2010-04-14 13:25:20 UTC (rev 654) @@ -55,7 +55,7 @@ // The major/minor/patch version (up to 3 digits each). #define CPPDOM_VERSION_MAJOR 1 #define CPPDOM_VERSION_MINOR 0 -#define CPPDOM_VERSION_PATCH 1 +#define CPPDOM_VERSION_PATCH 2 //-------------------------------------------------------------------------- //-------------------------------------------------------------------------- Modified: branches/1.0/cppdom.spec =================================================================== --- branches/1.0/cppdom.spec 2010-04-14 13:25:08 UTC (rev 653) +++ branches/1.0/cppdom.spec 2010-04-14 13:25:20 UTC (rev 654) @@ -1,6 +1,6 @@ # Spec file for cppdom. %define name cppdom -%define version 1.0.1 +%define version 1.0.2 %define release 1 Name: %{name} @@ -127,6 +127,9 @@ %doc %{_docdir}/cppdom-%{version}/html %changelog +* Wed Apr 14 2010 Patrick Hartling <pa...@pr...> 1.0.2-1 +- Updated to version 1.0.2. + * Sat Mar 06 2010 Patrick Hartling <pa...@pr...> 1.0.1-1 - Updated to version 1.0.1. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pat...@us...> - 2010-09-04 17:10:53
|
Revision: 666 http://xml-cppdom.svn.sourceforge.net/xml-cppdom/?rev=666&view=rev Author: patrickh Date: 2010-09-04 17:10:47 +0000 (Sat, 04 Sep 2010) Log Message: ----------- Update the version to 1.0.3. Modified Paths: -------------- branches/1.0/ChangeLog branches/1.0/cppdom/version.h Modified: branches/1.0/ChangeLog =================================================================== --- branches/1.0/ChangeLog 2010-09-04 17:07:17 UTC (rev 665) +++ branches/1.0/ChangeLog 2010-09-04 17:10:47 UTC (rev 666) @@ -1,5 +1,10 @@ DATE AUTHOR CHANGE ---------- ----------- ------------------------------------------------------- +[Version 1.0.3 released - 9.4.2010]============================================ + +2010-09-04 patrickh Use std::tr1::unordered_map<T,H> when GCC or Visual C++ + provides it. + [Version 1.0.2 released - 4.14.2010]=========================================== 2010-04-14 patrickh Preserve newlines in CDATA. Modified: branches/1.0/cppdom/version.h =================================================================== --- branches/1.0/cppdom/version.h 2010-09-04 17:07:17 UTC (rev 665) +++ branches/1.0/cppdom/version.h 2010-09-04 17:10:47 UTC (rev 666) @@ -55,7 +55,7 @@ // The major/minor/patch version (up to 3 digits each). #define CPPDOM_VERSION_MAJOR 1 #define CPPDOM_VERSION_MINOR 0 -#define CPPDOM_VERSION_PATCH 2 +#define CPPDOM_VERSION_PATCH 3 //-------------------------------------------------------------------------- //-------------------------------------------------------------------------- This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |