<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to ExamplesOutput</title><link>https://sourceforge.net/p/xml-cpp-class-generator/wiki/ExamplesOutput/</link><description>Recent changes to ExamplesOutput</description><atom:link href="https://sourceforge.net/p/xml-cpp-class-generator/wiki/ExamplesOutput/feed" rel="self"/><language>en</language><lastBuildDate>Wed, 20 Apr 2016 07:57:17 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/xml-cpp-class-generator/wiki/ExamplesOutput/feed" rel="self" type="application/rss+xml"/><item><title>ExamplesOutput modified by Johan Luisier</title><link>https://sourceforge.net/p/xml-cpp-class-generator/wiki/ExamplesOutput/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v5
+++ v6
@@ -139,30 +139,77 @@
 # Structure example

 The presented structure is a template which can be used to extract the list of values from a keyed container (i.e. a `std::map` for instance). It is designed to be used in `std::for_each` or `std::transform` loops. The XML file: 
-    
-    
-     
-
-&amp;lt;classes xmlns="http://www.w3schools.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.w3schools.com XmlCppClassGenerator.xsd"&amp;gt;
-
-&amp;lt;struct&amp;gt; &amp;lt;name&amp;gt; DemonstrationStructure &amp;lt;/name&amp;gt; &amp;lt;author&amp;gt; George C Clark &amp;lt;/author&amp;gt; &amp;lt;date&amp;gt; 21 February 2012 &amp;lt;/date&amp;gt; &amp;lt;comments&amp;gt; true &amp;lt;/comments&amp;gt; &amp;lt;template&amp;gt; &amp;lt;identifier&amp;gt; Key &amp;lt;/identifier&amp;gt; &amp;lt;keyword&amp;gt; typename &amp;lt;/keyword&amp;gt; &amp;lt;/template&amp;gt; &amp;lt;template&amp;gt; &amp;lt;keyword&amp;gt; typename &amp;lt;/keyword&amp;gt; &amp;lt;identifier&amp;gt; Value &amp;lt;/identifier&amp;gt; &amp;lt;/template&amp;gt; &amp;lt;inherits&amp;gt; &amp;lt;parent&amp;gt; std::unary_function&amp;amp;lt; std::pair&amp;amp;lt; Key, Value &amp;amp;gt;, Value &amp;amp;gt; &amp;lt;/parent&amp;gt; &amp;lt;/inherits&amp;gt; &amp;lt;include&amp;gt; &amp;lt;file&amp;gt; functional &amp;lt;/file&amp;gt; &amp;lt;header/&amp;gt; &amp;lt;local&amp;gt; false &amp;lt;/local&amp;gt; &amp;lt;/include&amp;gt; &amp;lt;public&amp;gt; &amp;lt;method&amp;gt; &amp;lt;return&amp;gt; &amp;lt;type&amp;gt; Value &amp;lt;/type&amp;gt; &amp;lt;/return&amp;gt; &amp;lt;name&amp;gt; operator() &amp;lt;/name&amp;gt; &amp;lt;argument&amp;gt; &amp;lt;type&amp;gt; std::pair&amp;amp;lt; Key, Value &amp;amp;gt; &amp;lt;/type&amp;gt; &amp;lt;const&amp;gt; true &amp;lt;/const&amp;gt; &amp;lt;ref/&amp;gt; &amp;lt;name&amp;gt; myPair &amp;lt;/name&amp;gt; &amp;lt;/argument&amp;gt; &amp;lt;/method&amp;gt; &amp;lt;/public&amp;gt; &amp;lt;/struct&amp;gt;
-
-&amp;lt;/classes&amp;gt;
+```xml
+
+&amp;lt;classes xmlns="http://www.w3schools.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.w3schools.com XmlCppClassGenerator.xsd"&amp;gt;
+&amp;lt;struct&amp;gt;
+  &amp;lt;name&amp;gt; DemonstrationStructure &amp;lt;/name&amp;gt;
+  &amp;lt;author&amp;gt; George C Clark &amp;lt;/author&amp;gt;
+  &amp;lt;date&amp;gt; 21 February 2012 &amp;lt;/date&amp;gt;
+  &amp;lt;comments&amp;gt; true &amp;lt;/comments&amp;gt;
+  &amp;lt;template&amp;gt;
+    &amp;lt;identifier&amp;gt; Key &amp;lt;/identifier&amp;gt;
+    &amp;lt;keyword&amp;gt; typename &amp;lt;/keyword&amp;gt;
+  &amp;lt;/template&amp;gt;
+  &amp;lt;template&amp;gt;
+    &amp;lt;keyword&amp;gt; typename &amp;lt;/keyword&amp;gt;
+    &amp;lt;identifier&amp;gt; Value &amp;lt;/identifier&amp;gt;
+  &amp;lt;/template&amp;gt;
+  &amp;lt;inherits&amp;gt;
+    &amp;lt;parent&amp;gt; std::unary_function&amp;amp;lt; std::pair&amp;amp;lt; Key, Value &amp;amp;gt;, Value &amp;amp;gt; &amp;lt;/parent&amp;gt;
+  &amp;lt;/inherits&amp;gt;
+  &amp;lt;include&amp;gt;
+    &amp;lt;file&amp;gt; functional &amp;lt;/file&amp;gt;
+    &lt;header&gt;
+    &amp;lt;local&amp;gt; false &amp;lt;/local&amp;gt;
+  &amp;lt;/include&amp;gt;
+  &amp;lt;public&amp;gt;
+    &amp;lt;method&amp;gt;
+      &amp;lt;return&amp;gt;
+   &amp;lt;type&amp;gt; Value &amp;lt;/type&amp;gt;
+      &amp;lt;/return&amp;gt;
+      &amp;lt;name&amp;gt; operator() &amp;lt;/name&amp;gt;
+      &amp;lt;argument&amp;gt;
+   &amp;lt;type&amp;gt; std::pair&amp;amp;lt; Key, Value &amp;amp;gt; &amp;lt;/type&amp;gt;
+   &amp;lt;const&amp;gt; true &amp;lt;/const&amp;gt;
+   &amp;lt;ref/&amp;gt;
+   &amp;lt;name&amp;gt; myPair &amp;lt;/name&amp;gt;
+      &amp;lt;/argument&amp;gt;
+    &amp;lt;/method&amp;gt;
+  &amp;lt;/public&amp;gt;
+&amp;lt;/struct&amp;gt;
+&amp;lt;/classes&amp;gt;
+```

 Since the structure is a template, only the header file is produced: 
-    
-    #ifndef DEMONSTRATIONSTRUCTURE_HPP
-     #define DEMONSTRATIONSTRUCTURE_HPP
-     
-
-// Created with XmlCppClassGenerator version 2.0 beta. 
-
-#include &amp;lt;functional&amp;gt;
-
-/** * @author George C Clark * @date 21 February 2012 */ template&amp;lt; typename Key, typename Value &amp;gt; struct DemonstrationStructure : public std::unary_function&amp;lt; std::pair&amp;lt; Key, Value &amp;gt;, Value &amp;gt; { public: /** * * * @param[in] myPair */ Value operator()( const std::pair&amp;lt; Key, Value &amp;gt;&amp;amp; myPair ); }; 
-
-template&amp;lt; typename Key, typename Value &amp;gt; Value DemonstrationStructure&amp;lt; Key, Value &amp;gt;::operator()( const std::pair&amp;lt; Key, Value &amp;gt;&amp;amp; myPair ) { } 
+```cpp
+#ifndef DEMONSTRATIONSTRUCTURE_HPP
+#define DEMONSTRATIONSTRUCTURE_HPP
+
+
+// Created with XmlCppClassGenerator version 2.0 beta.
+
+#include &amp;lt;functional&amp;gt;
+
+/**
+ * @author George C Clark
+ * @date 21 February 2012
+ */
+template&amp;lt; typename Key, typename Value &amp;gt;
+struct DemonstrationStructure : public std::unary_function&amp;lt; std::pair&amp;lt; Key, Value &amp;gt;, Value &amp;gt;
+{
+ public:
+  /**
+   *
+   *
+   * @param[in] myPair
+   */ Value operator()( const std::pair&amp;lt; Key, Value &amp;gt;&amp;amp; myPair );
+};
+
+template&amp;lt; typename Key, typename Value &amp;gt;
+Value DemonstrationStructure&amp;lt; Key, Value &amp;gt;::operator()( const std::pair&amp;lt; Key, Value &amp;gt;&amp;amp; myPair )
+{ }

 #endif // DEMONSTRATIONSTRUCTURE_HPP 
-
+```
 [Back on top](ExamplesOutput)
&lt;/header&gt;&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Johan Luisier</dc:creator><pubDate>Wed, 20 Apr 2016 07:57:17 -0000</pubDate><guid>https://sourceforge.net0862e60140da2cc699c3ba7c3a4abe3e3e3e55c3</guid></item><item><title>ExamplesOutput modified by Johan Luisier</title><link>https://sourceforge.net/p/xml-cpp-class-generator/wiki/ExamplesOutput/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v4
+++ v5
@@ -69,7 +69,7 @@
 &amp;lt;/classes&amp;gt;
 ```
      The produced header file: 
-```cpp    
+```cpp
  #ifndef DEMONSTRATIONCLASS_HPP
  #define DEMONSTRATIONCLASS_HPP

@@ -117,8 +117,8 @@
 ```

 and the implementation file: 
-    
-    // Created with XmlCppClassGenerator version 2.0 beta.
+```cpp
+// Created with XmlCppClassGenerator version 2.0 beta.

 #include "DemonstrationClass.hpp"
@@ -131,7 +131,8 @@

 DemonstrationClass::~DemonstrationClass() { } 

-bool DemonstrationClass::isPalindrome() const { } 
+bool DemonstrationClass::isPalindrome() const { }
+```

 [Back on top](ExamplesOutput)

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Johan Luisier</dc:creator><pubDate>Mon, 18 Apr 2016 19:57:40 -0000</pubDate><guid>https://sourceforge.net15d3710514198243349af5c789cac5bd5c222c68</guid></item><item><title>ExamplesOutput modified by Johan Luisier</title><link>https://sourceforge.net/p/xml-cpp-class-generator/wiki/ExamplesOutput/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v3
+++ v4
@@ -69,20 +69,52 @@
 &amp;lt;/classes&amp;gt;
 ```
      The produced header file: 
-    
-     #ifndef DEMONSTRATIONCLASS_HPP
-     #define DEMONSTRATIONCLASS_HPP
+```cpp    
+ #ifndef DEMONSTRATIONCLASS_HPP
+ #define DEMONSTRATIONCLASS_HPP

 // Created with XmlCppClassGenerator version 2.0 beta. 

-#include &amp;lt;string&amp;gt;
+#include &amp;lt;string&amp;gt;

-/** * @author George C Clark * @date 21 February 2012 */ class DemonstrationClass : public std::string { public: /** Constructor * * * @param[in] str */ DemonstrationClass( const std::string&amp;amp; str = "" ); /** Destructor * * */ virtual ~DemonstrationClass(); /** * * */ bool isPalindrome() const; /** * * * @param[in] t */ template&amp;lt; typename T &amp;gt; void concatenate( const T&amp;amp; t ); }; 
+/**
+  * @author George C Clark
+  * @date 21 February 2012
+  */
+class DemonstrationClass : public std::string
+{
+public:
+/** Constructor
+  *
+  * 
+  *  @param[in] str
+  */
+  DemonstrationClass( const std::string&amp;amp; str = "" );
+  /** Destructor
+    *
+    * 
+    */
+    virtual ~DemonstrationClass();
+    /**
+      *
+      */
+    bool isPalindrome() const;
+    /**
+      *
+      *
+      * @param[in] t
+      */
+     template&amp;lt;typename T=""&amp;gt;
+     void concatenate( const T&amp;amp; t );
+};

-template&amp;lt; typename T &amp;gt; void DemonstrationClass::concatenate( const T&amp;amp; t ) { } 
+template&amp;lt; typename T &amp;gt;
+void DemonstrationClass::concatenate( const T t )
+{ } 

-#endif // DEMONSTRATIONCLASS_HPP 
+#endif // DEMONSTRATIONCLASS_HPP
+```

 and the implementation file: 

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Johan Luisier</dc:creator><pubDate>Mon, 18 Apr 2016 18:09:38 -0000</pubDate><guid>https://sourceforge.net40e3208a07b7f145033492a1a375f44e038de62a</guid></item><item><title>ExamplesOutput modified by Johan Luisier</title><link>https://sourceforge.net/p/xml-cpp-class-generator/wiki/ExamplesOutput/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -10,13 +10,65 @@
 # Class example

 The showed class is an enhanced version of the `std::string` class, in the sense that is provides a method which checks if the string is a palindrome, and a template function allows to concatenate a substring of any type. First the input XML file: 
-    
-    
-     
-
-&amp;lt;classes xmlns="http://www.w3schools.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.w3schools.com XmlCppClassGenerator.xsd"&amp;gt;
-
-&amp;lt;class&amp;gt; &amp;lt;name&amp;gt; DemonstrationClass &amp;lt;/name&amp;gt; &amp;lt;author&amp;gt; George C Clark &amp;lt;/author&amp;gt; &amp;lt;date&amp;gt; 21 February 2012 &amp;lt;/date&amp;gt; &amp;lt;comments&amp;gt; true &amp;lt;/comments&amp;gt; &amp;lt;inherits&amp;gt; &amp;lt;parent&amp;gt; std::string &amp;lt;/parent&amp;gt; &amp;lt;/inherits&amp;gt; &amp;lt;include&amp;gt; &amp;lt;file&amp;gt; string &amp;lt;/file&amp;gt; &amp;lt;header/&amp;gt; &amp;lt;/include&amp;gt; &amp;lt;include&amp;gt; &amp;lt;file&amp;gt; iostream &amp;lt;/file&amp;gt; &amp;lt;/include&amp;gt; &amp;lt;usedNamespace&amp;gt; &amp;lt;namespace&amp;gt; std &amp;lt;/namespace&amp;gt; &amp;lt;/usedNamespace&amp;gt; &amp;lt;public&amp;gt; &amp;lt;constructor&amp;gt; &amp;lt;argument&amp;gt; &amp;lt;type&amp;gt; std::string &amp;lt;/type&amp;gt; &amp;lt;const/&amp;gt; &amp;lt;ref/&amp;gt; &amp;lt;default&amp;gt; &amp;amp;quot;&amp;amp;quot; &amp;lt;/default&amp;gt; &amp;lt;name&amp;gt; str &amp;lt;/name&amp;gt; &amp;lt;/argument&amp;gt; &amp;lt;/constructor&amp;gt; &amp;lt;method&amp;gt; &amp;lt;return&amp;gt; &amp;lt;type&amp;gt; bool &amp;lt;/type&amp;gt; &amp;lt;/return&amp;gt; &amp;lt;name&amp;gt; isPalindrome &amp;lt;/name&amp;gt; &amp;lt;const&amp;gt; true &amp;lt;/const&amp;gt; &amp;lt;/method&amp;gt; &amp;lt;method&amp;gt; &amp;lt;template&amp;gt; &amp;lt;keyword&amp;gt; typename &amp;lt;/keyword&amp;gt; &amp;lt;identifier&amp;gt; T &amp;lt;/identifier&amp;gt; &amp;lt;/template&amp;gt; &amp;lt;return&amp;gt; &amp;lt;type&amp;gt; void &amp;lt;/type&amp;gt; &amp;lt;/return&amp;gt; &amp;lt;name&amp;gt; concatenate &amp;lt;/name&amp;gt; &amp;lt;argument&amp;gt; &amp;lt;name&amp;gt; t &amp;lt;/name&amp;gt; &amp;lt;ref/&amp;gt; &amp;lt;const/&amp;gt; &amp;lt;type&amp;gt; T &amp;lt;/type&amp;gt; &amp;lt;/argument&amp;gt; &amp;lt;throw&amp;gt; std::exception &amp;lt;/throw&amp;gt; &amp;lt;/method&amp;gt; &amp;lt;/public&amp;gt; &amp;lt;/class&amp;gt; &amp;lt;/classes&amp;gt; The produced header file: 
+```xml  
+     
+&amp;lt;classes xmlns="http://www.w3schools.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.w3schools.com XmlCppClassGenerator.xsd"&amp;gt;
+  &amp;lt;class&amp;gt;
+    &amp;lt;name&amp;gt; DemonstrationClass &amp;lt;/name&amp;gt;
+    &amp;lt;author&amp;gt; George C Clark &amp;lt;/author&amp;gt;
+    &amp;lt;date&amp;gt; 21 February 2012 &amp;lt;/date&amp;gt;
+    &amp;lt;comments&amp;gt; true &amp;lt;/comments&amp;gt;
+    &amp;lt;inherits&amp;gt; &amp;lt;parent&amp;gt; std::string &amp;lt;/parent&amp;gt;
+    &amp;lt;/inherits&amp;gt;
+    &amp;lt;include&amp;gt;
+      &amp;lt;file&amp;gt; string &amp;lt;/file&amp;gt;
+      &lt;header&gt; 
+    &amp;lt;/include&amp;gt; 
+    &amp;lt;include&amp;gt; 
+      &amp;lt;file&amp;gt; iostream &amp;lt;/file&amp;gt;
+    &amp;lt;/include&amp;gt;
+    &amp;lt;usedNamespace&amp;gt;
+      &amp;lt;namespace&amp;gt; std &amp;lt;/namespace&amp;gt;
+    &amp;lt;/usedNamespace&amp;gt;
+    &amp;lt;public&amp;gt;
+      &amp;lt;constructor&amp;gt;
+   &amp;lt;argument&amp;gt;
+     &amp;lt;type&amp;gt; std::string &amp;lt;/type&amp;gt;
+     &amp;lt;const/&amp;gt;
+     &amp;lt;ref/&amp;gt;
+     &amp;lt;default&amp;gt; &amp;amp;quot;&amp;amp;quot; &amp;lt;/default&amp;gt;
+     &amp;lt;name&amp;gt; str &amp;lt;/name&amp;gt;
+   &amp;lt;/argument&amp;gt;
+      &amp;lt;/constructor&amp;gt;
+      &amp;lt;method&amp;gt;
+   &amp;lt;return&amp;gt; 
+     &amp;lt;type&amp;gt; bool &amp;lt;/type&amp;gt;
+   &amp;lt;/return&amp;gt;
+   &amp;lt;name&amp;gt; isPalindrome &amp;lt;/name&amp;gt;
+   &amp;lt;const&amp;gt; true &amp;lt;/const&amp;gt;
+      &amp;lt;/method&amp;gt;
+      &amp;lt;method&amp;gt;
+   &amp;lt;template&amp;gt; 
+     &amp;lt;keyword&amp;gt; typename &amp;lt;/keyword&amp;gt;
+     &amp;lt;identifier&amp;gt; T &amp;lt;/identifier&amp;gt;
+   &amp;lt;/template&amp;gt;
+   &amp;lt;return&amp;gt;
+     &amp;lt;type&amp;gt; void &amp;lt;/type&amp;gt;
+   &amp;lt;/return&amp;gt;
+   &amp;lt;name&amp;gt; concatenate &amp;lt;/name&amp;gt;
+   &amp;lt;argument&amp;gt;
+     &amp;lt;name&amp;gt; t &amp;lt;/name&amp;gt;
+     &amp;lt;ref/&amp;gt;
+     &amp;lt;const/&amp;gt;
+     &amp;lt;type&amp;gt; T &amp;lt;/type&amp;gt;
+   &amp;lt;/argument&amp;gt;
+   &amp;lt;throw&amp;gt; std::exception &amp;lt;/throw&amp;gt;
+      &amp;lt;/method&amp;gt;
+    &amp;lt;/public&amp;gt;
+  &amp;lt;/class&amp;gt;
+&amp;lt;/classes&amp;gt;
+```
+     The produced header file: 

      #ifndef DEMONSTRATIONCLASS_HPP
      #define DEMONSTRATIONCLASS_HPP
&lt;/header&gt;&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Johan Luisier</dc:creator><pubDate>Mon, 18 Apr 2016 18:06:09 -0000</pubDate><guid>https://sourceforge.net55acef4aabef26d39fca8d62797ed805a5677afa</guid></item><item><title>ExamplesOutput modified by Johan Luisier</title><link>https://sourceforge.net/p/xml-cpp-class-generator/wiki/ExamplesOutput/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Johan Luisier</dc:creator><pubDate>Mon, 18 Apr 2016 17:57:26 -0000</pubDate><guid>https://sourceforge.net9881858467174ea7cb2dbd400216d79fc212274f</guid></item><item><title>ExamplesOutput modified by Anonymous</title><link>https://sourceforge.net/p/generatecppfomxml/wiki/ExamplesOutput/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;a class="" href="/p/generatecppfomxml/wiki/WikiMap"&gt;Navigate through the wiki&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;On this page are shown examples of XML files and the resulting output. Similar examples are provided in the Examples directory when the code is checked out. &lt;/p&gt;
&lt;p&gt;NB: the header and implementation examples shown here are as close as possible to the produced files, some minor changes may be possible (eol and spaces are not always correctly rendered by the code environment). &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Class example&lt;/li&gt;
&lt;li&gt;Structure example&lt;/li&gt;
&lt;/ul&gt;
&lt;h1 id="class-example"&gt;Class example&lt;/h1&gt;
&lt;p&gt;The showed class is an enhanced version of the &lt;code&gt;std::string&lt;/code&gt; class, in the sense that is provides a method which checks if the string is a palindrome, and a template function allows to concatenate a substring of any type. First the input XML file: &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="o"&gt;&amp;lt;?&lt;/span&gt;&lt;span class="nt"&gt;xml&lt;/span&gt; &lt;span class="nt"&gt;version&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"1.0"&lt;/span&gt; &lt;span class="nt"&gt;encoding&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"UTF-8"&lt;/span&gt;&lt;span class="o"&gt;?&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;&amp;lt;classes xmlns="http://www.w3schools.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.w3schools.com XmlCppClassGenerator.xsd"&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;class&amp;gt; &amp;lt;name&amp;gt; DemonstrationClass &amp;lt;/name&amp;gt; &amp;lt;author&amp;gt; George C Clark &amp;lt;/author&amp;gt; &amp;lt;date&amp;gt; 21 February 2012 &amp;lt;/date&amp;gt; &amp;lt;comments&amp;gt; true &amp;lt;/comments&amp;gt; &amp;lt;inherits&amp;gt; &amp;lt;parent&amp;gt; std::string &amp;lt;/parent&amp;gt; &amp;lt;/inherits&amp;gt; &amp;lt;include&amp;gt; &amp;lt;file&amp;gt; string &amp;lt;/file&amp;gt; &amp;lt;header/&amp;gt; &amp;lt;/include&amp;gt; &amp;lt;include&amp;gt; &amp;lt;file&amp;gt; iostream &amp;lt;/file&amp;gt; &amp;lt;/include&amp;gt; &amp;lt;usedNamespace&amp;gt; &amp;lt;namespace&amp;gt; std &amp;lt;/namespace&amp;gt; &amp;lt;/usedNamespace&amp;gt; &amp;lt;public&amp;gt; &amp;lt;constructor&amp;gt; &amp;lt;argument&amp;gt; &amp;lt;type&amp;gt; std::string &amp;lt;/type&amp;gt; &amp;lt;const/&amp;gt; &amp;lt;ref/&amp;gt; &amp;lt;default&amp;gt; &amp;amp;quot;&amp;amp;quot; &amp;lt;/default&amp;gt; &amp;lt;name&amp;gt; str &amp;lt;/name&amp;gt; &amp;lt;/argument&amp;gt; &amp;lt;/constructor&amp;gt; &amp;lt;method&amp;gt; &amp;lt;return&amp;gt; &amp;lt;type&amp;gt; bool &amp;lt;/type&amp;gt; &amp;lt;/return&amp;gt; &amp;lt;name&amp;gt; isPalindrome &amp;lt;/name&amp;gt; &amp;lt;const&amp;gt; true &amp;lt;/const&amp;gt; &amp;lt;/method&amp;gt; &amp;lt;method&amp;gt; &amp;lt;template&amp;gt; &amp;lt;keyword&amp;gt; typename &amp;lt;/keyword&amp;gt; &amp;lt;identifier&amp;gt; T &amp;lt;/identifier&amp;gt; &amp;lt;/template&amp;gt; &amp;lt;return&amp;gt; &amp;lt;type&amp;gt; void &amp;lt;/type&amp;gt; &amp;lt;/return&amp;gt; &amp;lt;name&amp;gt; concatenate &amp;lt;/name&amp;gt; &amp;lt;argument&amp;gt; &amp;lt;name&amp;gt; t &amp;lt;/name&amp;gt; &amp;lt;ref/&amp;gt; &amp;lt;const/&amp;gt; &amp;lt;type&amp;gt; T &amp;lt;/type&amp;gt; &amp;lt;/argument&amp;gt; &amp;lt;throw&amp;gt; std::exception &amp;lt;/throw&amp;gt; &amp;lt;/method&amp;gt; &amp;lt;/public&amp;gt; &amp;lt;/class&amp;gt; &amp;lt;/classes&amp;gt; The produced header file: &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt; &lt;span class="c"&gt;#ifndef DEMONSTRATIONCLASS_HPP&lt;/span&gt;
 &lt;span class="c"&gt;#define DEMONSTRATIONCLASS_HPP&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;// Created with XmlCppClassGenerator version 2.0 beta. &lt;/p&gt;
&lt;h1 id="include-wzxhzdk161stringwzxhzdk162"&gt;include &amp;lt;string&amp;gt;&lt;/h1&gt;
&lt;p&gt;/&lt;strong&gt; * @author George C Clark * @date 21 February 2012 */ class DemonstrationClass : public std::string { public: /&lt;/strong&gt; Constructor * &lt;em&gt; * @param&lt;span&gt;&lt;span&gt;[in]&lt;/span&gt;&lt;/span&gt; str &lt;/em&gt;/ DemonstrationClass( const std::string&amp;amp; str = "" ); /&lt;strong&gt; Destructor * &lt;em&gt; &lt;/em&gt;/ virtual ~DemonstrationClass(); /&lt;/strong&gt; * &lt;em&gt; &lt;/em&gt;/ bool isPalindrome() const; /&lt;em&gt;&lt;/em&gt;&lt;em&gt; * &lt;/em&gt; * @param&lt;span&gt;&lt;span&gt;[in]&lt;/span&gt;&lt;/span&gt; t / template&amp;lt; typename T &amp;gt; void concatenate( const T&amp;amp; t ); }; &lt;/p&gt;
&lt;p&gt;template&amp;lt; typename T &amp;gt; void DemonstrationClass::concatenate( const T&amp;amp; t ) { } &lt;/p&gt;
&lt;h1 id="endif-demonstrationclass_hpp"&gt;endif // DEMONSTRATIONCLASS_HPP&lt;/h1&gt;
&lt;p&gt;and the implementation file: &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="c1"&gt;// Created with XmlCppClassGenerator version 2.0 beta.&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;h1 id="include-demonstrationclasshpp"&gt;include "DemonstrationClass.hpp"&lt;/h1&gt;
&lt;h1 id="include-wzxhzdk170iostreamwzxhzdk171"&gt;include &amp;lt;iostream&amp;gt;&lt;/h1&gt;
&lt;p&gt;using namespace std; &lt;/p&gt;
&lt;p&gt;DemonstrationClass::DemonstrationClass( const string&amp;amp; str ) : string( ), { } &lt;/p&gt;
&lt;p&gt;DemonstrationClass::~DemonstrationClass() { } &lt;/p&gt;
&lt;p&gt;bool DemonstrationClass::isPalindrome() const { } &lt;/p&gt;
&lt;p&gt;&lt;a class="" href="/p/generatecppfomxml/wiki/ExamplesOutput"&gt;Back on top&lt;/a&gt;&lt;/p&gt;
&lt;h1 id="structure-example"&gt;Structure example&lt;/h1&gt;
&lt;p&gt;The presented structure is a template which can be used to extract the list of values from a keyed container (i.e. a &lt;code&gt;std::map&lt;/code&gt; for instance). It is designed to be used in &lt;code&gt;std::for_each&lt;/code&gt; or &lt;code&gt;std::transform&lt;/code&gt; loops. The XML file: &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="o"&gt;&amp;lt;?&lt;/span&gt;&lt;span class="nt"&gt;xml&lt;/span&gt; &lt;span class="nt"&gt;version&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"1.0"&lt;/span&gt; &lt;span class="nt"&gt;encoding&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"UTF-8"&lt;/span&gt;&lt;span class="o"&gt;?&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;&amp;lt;classes xmlns="http://www.w3schools.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.w3schools.com XmlCppClassGenerator.xsd"&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;struct&amp;gt; &amp;lt;name&amp;gt; DemonstrationStructure &amp;lt;/name&amp;gt; &amp;lt;author&amp;gt; George C Clark &amp;lt;/author&amp;gt; &amp;lt;date&amp;gt; 21 February 2012 &amp;lt;/date&amp;gt; &amp;lt;comments&amp;gt; true &amp;lt;/comments&amp;gt; &amp;lt;template&amp;gt; &amp;lt;identifier&amp;gt; Key &amp;lt;/identifier&amp;gt; &amp;lt;keyword&amp;gt; typename &amp;lt;/keyword&amp;gt; &amp;lt;/template&amp;gt; &amp;lt;template&amp;gt; &amp;lt;keyword&amp;gt; typename &amp;lt;/keyword&amp;gt; &amp;lt;identifier&amp;gt; Value &amp;lt;/identifier&amp;gt; &amp;lt;/template&amp;gt; &amp;lt;inherits&amp;gt; &amp;lt;parent&amp;gt; std::unary_function&amp;amp;lt; std::pair&amp;amp;lt; Key, Value &amp;amp;gt;, Value &amp;amp;gt; &amp;lt;/parent&amp;gt; &amp;lt;/inherits&amp;gt; &amp;lt;include&amp;gt; &amp;lt;file&amp;gt; functional &amp;lt;/file&amp;gt; &amp;lt;header/&amp;gt; &amp;lt;local&amp;gt; false &amp;lt;/local&amp;gt; &amp;lt;/include&amp;gt; &amp;lt;public&amp;gt; &amp;lt;method&amp;gt; &amp;lt;return&amp;gt; &amp;lt;type&amp;gt; Value &amp;lt;/type&amp;gt; &amp;lt;/return&amp;gt; &amp;lt;name&amp;gt; operator() &amp;lt;/name&amp;gt; &amp;lt;argument&amp;gt; &amp;lt;type&amp;gt; std::pair&amp;amp;lt; Key, Value &amp;amp;gt; &amp;lt;/type&amp;gt; &amp;lt;const&amp;gt; true &amp;lt;/const&amp;gt; &amp;lt;ref/&amp;gt; &amp;lt;name&amp;gt; myPair &amp;lt;/name&amp;gt; &amp;lt;/argument&amp;gt; &amp;lt;/method&amp;gt; &amp;lt;/public&amp;gt; &amp;lt;/struct&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;/classes&amp;gt;&lt;/p&gt;
&lt;p&gt;Since the structure is a template, only the header file is produced: &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="c"&gt;#ifndef DEMONSTRATIONSTRUCTURE_HPP&lt;/span&gt;
 &lt;span class="c"&gt;#define DEMONSTRATIONSTRUCTURE_HPP&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;// Created with XmlCppClassGenerator version 2.0 beta. &lt;/p&gt;
&lt;h1 id="include-wzxhzdk287functionalwzxhzdk288"&gt;include &amp;lt;functional&amp;gt;&lt;/h1&gt;
&lt;p&gt;/&lt;strong&gt; * @author George C Clark * @date 21 February 2012 */ template&amp;lt; typename Key, typename Value &amp;gt; struct DemonstrationStructure : public std::unary_function&amp;lt; std::pair&amp;lt; Key, Value &amp;gt;, Value &amp;gt; { public: /&lt;/strong&gt; * &lt;em&gt; * @param&lt;span&gt;&lt;span&gt;[in]&lt;/span&gt;&lt;/span&gt; myPair &lt;/em&gt;/ Value operator()( const std::pair&amp;lt; Key, Value &amp;gt;&amp;amp; myPair ); }; &lt;/p&gt;
&lt;p&gt;template&amp;lt; typename Key, typename Value &amp;gt; Value DemonstrationStructure&amp;lt; Key, Value &amp;gt;::operator()( const std::pair&amp;lt; Key, Value &amp;gt;&amp;amp; myPair ) { } &lt;/p&gt;
&lt;h1 id="endif-demonstrationstructure_hpp"&gt;endif // DEMONSTRATIONSTRUCTURE_HPP&lt;/h1&gt;
&lt;p&gt;&lt;a class="" href="/p/generatecppfomxml/wiki/ExamplesOutput"&gt;Back on top&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Fri, 13 Mar 2015 07:17:21 -0000</pubDate><guid>https://sourceforge.netb8fde304c63333c77bf576ede34606d4c56219c5</guid></item></channel></rss>