<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to ExamplesOutput1dot1AndBefore</title><link>https://sourceforge.net/p/xml-cpp-class-generator/wiki/ExamplesOutput1dot1AndBefore/</link><description>Recent changes to ExamplesOutput1dot1AndBefore</description><atom:link href="https://sourceforge.net/p/xml-cpp-class-generator/wiki/ExamplesOutput1dot1AndBefore/feed" rel="self"/><language>en</language><lastBuildDate>Fri, 22 Apr 2016 06:32:11 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/xml-cpp-class-generator/wiki/ExamplesOutput1dot1AndBefore/feed" rel="self" type="application/rss+xml"/><item><title>ExamplesOutput1dot1AndBefore modified by Johan Luisier</title><link>https://sourceforge.net/p/xml-cpp-class-generator/wiki/ExamplesOutput1dot1AndBefore/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -13,7 +13,7 @@

 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: 
 ```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;
@@ -163,5 +163,5 @@
 { } 

 #endif // DEMONSTRATIONSTRUCTURE_HPP 
-
+```
 [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>Fri, 22 Apr 2016 06:32:11 -0000</pubDate><guid>https://sourceforge.netdbbe6709a238c5075fe95ce4155aac48073a78be</guid></item><item><title>ExamplesOutput1dot1AndBefore modified by Johan Luisier</title><link>https://sourceforge.net/p/xml-cpp-class-generator/wiki/ExamplesOutput1dot1AndBefore/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -12,67 +12,155 @@
 # 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: 
-    
-    
-     
+```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; std::string &amp;lt;/inherits&amp;gt;
+       &amp;lt;headerInclude&amp;gt; string &amp;lt;/headerInclude&amp;gt;
+       &amp;lt;implementationInclude&amp;gt; iostream &amp;lt;/implementationInclude&amp;gt;
+       &amp;lt;implementationUsedNamespace&amp;gt; std &amp;lt;/implementationUsedNamespace&amp;gt;
+       &amp;lt;public&amp;gt;
+           &amp;lt;constructor&amp;gt;
+               &amp;lt;argument type="std::string" const="true" ref="true" default="&amp;amp;amp;quot;&amp;amp;amp;quot;"&amp;gt; str &amp;lt;/argument&amp;gt;
+           &amp;lt;/constructor&amp;gt;
+           &amp;lt;method&amp;gt;
+               &amp;lt;return type="bool"/&amp;gt;
+               &amp;lt;name&amp;gt; isPalindrome &amp;lt;/name&amp;gt;
+           &amp;lt;/method&amp;gt;
+           &amp;lt;method&amp;gt;
+               &amp;lt;template keyword="typename"&amp;gt; T &amp;lt;/template&amp;gt;
+               &amp;lt;return type="void"/&amp;gt;
+               &amp;lt;name&amp;gt; concatenate &amp;lt;/name&amp;gt;
+               &amp;lt;argument type="T" const="true" ref="true"&amp;gt; t &amp;lt;/argument&amp;gt;
+               &amp;lt;const&amp;gt; true &amp;lt;/const&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: 
+```cpp
+#ifndef DEMONSTRATIONCLASS_HPP
+#define DEMONSTRATIONCLASS_HPP

-&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;
+#include &amp;lt;string&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; std::string &amp;lt;/inherits&amp;gt; &amp;lt;headerInclude&amp;gt; string &amp;lt;/headerInclude&amp;gt; &amp;lt;implementationInclude&amp;gt; iostream &amp;lt;/implementationInclude&amp;gt; &amp;lt;implementationUsedNamespace&amp;gt; std &amp;lt;/implementationUsedNamespace&amp;gt; &amp;lt;public&amp;gt; &amp;lt;constructor&amp;gt; &amp;lt;argument type="std::string" const="true" ref="true" default="&amp;amp;quot;&amp;amp;quot;"&amp;gt; str &amp;lt;/argument&amp;gt; &amp;lt;/constructor&amp;gt; &amp;lt;method&amp;gt; &amp;lt;return type="bool"/&amp;gt; &amp;lt;name&amp;gt; isPalindrome &amp;lt;/name&amp;gt; &amp;lt;/method&amp;gt; &amp;lt;method&amp;gt; &amp;lt;template keyword="typename"&amp;gt; T &amp;lt;/template&amp;gt; &amp;lt;return type="void"/&amp;gt; &amp;lt;name&amp;gt; concatenate &amp;lt;/name&amp;gt; &amp;lt;argument type="T" const="true" ref="true"&amp;gt; t &amp;lt;/argument&amp;gt; &amp;lt;const&amp;gt; true &amp;lt;/const&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
-     
+/**
+ * @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 );
+}; 

-#include &amp;lt;string&amp;gt;
+template&amp;lt; typename T &amp;gt;
+void DemonstrationClass::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 ) { } 

 #endif // DEMONSTRATIONCLASS_HPP 
+```
+and the implementation file: 
+```cpp
+#include "DemonstrationClass.hpp"

-and the implementation file: 
-    
-     #include "DemonstrationClass.hpp"
-     
+#include &amp;lt;iostream&amp;gt;

-#include &amp;lt;iostream&amp;gt;
+using namespace std;

-using namespace std;d 
+DemonstrationClass::DemonstrationClass( const string str )
+    : string( ),
+{ }

-DemonstrationClass::DemonstrationClass( const string&amp;amp; str ) : string( ), { } 
+DemonstrationClass::~DemonstrationClass()
+{ }

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

 [Back on top](ExamplesOutput)

 # 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: 
-    
-    
-     
+```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 keyword="typename"&amp;gt; Key &amp;lt;/template&amp;gt;
+       &amp;lt;template keyword="typename"&amp;gt; Value &amp;lt;/template&amp;gt;
+       &amp;lt;inherits&amp;gt; std::unary_function&amp;lt; std::pair&amp;lt; Key, Value &amp;gt;, Value &amp;gt; &amp;lt;/inherits&amp;gt;
+       &amp;lt;headerInclude&amp;gt; functional &amp;lt;/headerInclude&amp;gt;
+       &amp;lt;public&amp;gt;
+           &amp;lt;method&amp;gt;
+               &amp;lt;return type="Value"/&amp;gt;
+               &amp;lt;name&amp;gt; operator() &amp;lt;/name&amp;gt;
+               &amp;lt;argument type="std::pair&amp;amp;lt; Key, Value &amp;amp;gt;" const="true" ref="true"&amp;gt; myPair &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: 
+```cpp
+#ifndef DEMONSTRATIONSTRUCTURE_HPP
+#define DEMONSTRATIONSTRUCTURE_HPP

-&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;
+#include &amp;lt;functional&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 keyword="typename"&amp;gt; Key &amp;lt;/template&amp;gt; &amp;lt;template keyword="typename"&amp;gt; Value &amp;lt;/template&amp;gt; &amp;lt;inherits&amp;gt; std::unary_function&amp;amp;lt; std::pair&amp;amp;lt; Key, Value &amp;amp;gt;, Value &amp;amp;gt; &amp;lt;/inherits&amp;gt; &amp;lt;headerInclude&amp;gt; functional &amp;lt;/headerInclude&amp;gt; &amp;lt;public&amp;gt; &amp;lt;method&amp;gt; &amp;lt;return type="Value"/&amp;gt; &amp;lt;name&amp;gt; operator() &amp;lt;/name&amp;gt; &amp;lt;argument type="std::pair&amp;amp;lt; Key, Value &amp;amp;gt;" const="true" ref="true"&amp;gt; myPair &amp;lt;/argument&amp;gt; &amp;lt;/method&amp;gt; &amp;lt;/public&amp;gt; &amp;lt;/struct&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 );
+}; 

-&amp;lt;/classes&amp;gt;
-
-Since the structure is a template, only the header file is produced: 
-    
-     #ifndef DEMONSTRATIONSTRUCTURE_HPP
-     #define DEMONSTRATIONSTRUCTURE_HPP
-     
-
-#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 ) { } 
+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 

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Johan Luisier</dc:creator><pubDate>Fri, 22 Apr 2016 06:31:43 -0000</pubDate><guid>https://sourceforge.netbf19a72fa2125aae2a93d22f4c143435cd8a8738</guid></item><item><title>ExamplesOutput1dot1AndBefore modified by Anonymous</title><link>https://sourceforge.net/p/generatecppfomxml/wiki/ExamplesOutput1dot1AndBefore/</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;This information concerns XmlCppClassGenerator versions &lt;strong&gt;1.1 and before&lt;/strong&gt;, please refer to &lt;a class="" href="/p/generatecppfomxml/wiki/ExamplesOutput"&gt;ExamplesOutput&lt;/a&gt; for documentation on the current version. &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; std::string &amp;lt;/inherits&amp;gt; &amp;lt;headerInclude&amp;gt; string &amp;lt;/headerInclude&amp;gt; &amp;lt;implementationInclude&amp;gt; iostream &amp;lt;/implementationInclude&amp;gt; &amp;lt;implementationUsedNamespace&amp;gt; std &amp;lt;/implementationUsedNamespace&amp;gt; &amp;lt;public&amp;gt; &amp;lt;constructor&amp;gt; &amp;lt;argument type="std::string" const="true" ref="true" default="&amp;amp;quot;&amp;amp;quot;"&amp;gt; str &amp;lt;/argument&amp;gt; &amp;lt;/constructor&amp;gt; &amp;lt;method&amp;gt; &amp;lt;return type="bool"/&amp;gt; &amp;lt;name&amp;gt; isPalindrome &amp;lt;/name&amp;gt; &amp;lt;/method&amp;gt; &amp;lt;method&amp;gt; &amp;lt;template keyword="typename"&amp;gt; T &amp;lt;/template&amp;gt; &amp;lt;return type="void"/&amp;gt; &amp;lt;name&amp;gt; concatenate &amp;lt;/name&amp;gt; &amp;lt;argument type="T" const="true" ref="true"&amp;gt; t &amp;lt;/argument&amp;gt; &amp;lt;const&amp;gt; true &amp;lt;/const&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;h1 id="include-wzxhzdk91stringwzxhzdk92"&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="c"&gt;#include "DemonstrationClass.hpp"&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;h1 id="include-wzxhzdk100iostreamwzxhzdk101"&gt;include &amp;lt;iostream&amp;gt;&lt;/h1&gt;
&lt;p&gt;using namespace std;d &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 keyword="typename"&amp;gt; Key &amp;lt;/template&amp;gt; &amp;lt;template keyword="typename"&amp;gt; Value &amp;lt;/template&amp;gt; &amp;lt;inherits&amp;gt; std::unary_function&amp;amp;lt; std::pair&amp;amp;lt; Key, Value &amp;amp;gt;, Value &amp;amp;gt; &amp;lt;/inherits&amp;gt; &amp;lt;headerInclude&amp;gt; functional &amp;lt;/headerInclude&amp;gt; &amp;lt;public&amp;gt; &amp;lt;method&amp;gt; &amp;lt;return type="Value"/&amp;gt; &amp;lt;name&amp;gt; operator() &amp;lt;/name&amp;gt; &amp;lt;argument type="std::pair&amp;amp;lt; Key, Value &amp;amp;gt;" const="true" ref="true"&amp;gt; myPair &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;h1 id="include-wzxhzdk167functionalwzxhzdk168"&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:22 -0000</pubDate><guid>https://sourceforge.net9efb2bdbe98f73d8e8147a472ea510f0beb7a12f</guid></item></channel></rss>