aboutsummaryrefslogtreecommitdiff
path: root/documentation
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-10-13 15:38:11 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-10-13 15:38:11 +0200
commit6f395f9f769866a04f6949cb7ed14f93d90cf728 (patch)
treed1f8343e7b41fc1895676ad4248a5e4942f9172b /documentation
parentc1f49aa87678c512ac37575365a6676727e5f20a (diff)
Map anySimpleType to a string
Diffstat (limited to 'documentation')
-rw-r--r--documentation/cxx/parser/guide/index.xhtml7
-rw-r--r--documentation/cxx/serializer/guide/index.xhtml10
2 files changed, 14 insertions, 3 deletions
diff --git a/documentation/cxx/parser/guide/index.xhtml b/documentation/cxx/parser/guide/index.xhtml
index 90da54a..9dc9764 100644
--- a/documentation/cxx/parser/guide/index.xhtml
+++ b/documentation/cxx/parser/guide/index.xhtml
@@ -1712,6 +1712,8 @@ namespace http://www.w3.org/2001/XMLSchema
{
include &lt;string>;
+ anySimpleType std::string;
+
string std::string;
normalizedString std::string;
token std::string;
@@ -1732,6 +1734,8 @@ namespace http://www.w3.org/2001/XMLSchema
<pre class="type-map">
namespace http://www.w3.org/2001/XMLSchema
{
+ anySimpleType char*;
+
string char*;
normalizedString char*;
token char*;
@@ -3169,7 +3173,8 @@ main (int argc, char* argv[])
<tr>
<td><code>anySimpleType</code></td>
<td><code>any_simple_type_pimpl</code></td>
- <td><code>void</code></td>
+ <td><code>std::string</code> or <code>char*</code><br/>
+ <a href="#5.1">Section 5.1, "Standard Template Library"</a></td>
</tr>
<tr>
diff --git a/documentation/cxx/serializer/guide/index.xhtml b/documentation/cxx/serializer/guide/index.xhtml
index 5e1dca1..e04667f 100644
--- a/documentation/cxx/serializer/guide/index.xhtml
+++ b/documentation/cxx/serializer/guide/index.xhtml
@@ -1789,6 +1789,8 @@ namespace http://www.w3.org/2001/XMLSchema
{
include &lt;string>;
+ anySimpleType std::string;
+
string std::string;
normalizedString std::string;
token std::string;
@@ -1809,6 +1811,8 @@ namespace http://www.w3.org/2001/XMLSchema
<pre class="type-map">
namespace http://www.w3.org/2001/XMLSchema
{
+ anySimpleType "const char*";
+
string "const char*";
normalizedString "const char*";
token "const char*";
@@ -4057,7 +4061,8 @@ main ()
<tr>
<td><code>anySimpleType</code></td>
<td><code>any_simple_type_simpl</code></td>
- <td><code>void</code></td>
+ <td><code>const std::string&amp;</code> or<br/> <code>const char*</code><br/>
+ <a href="#7.2">Section 7.2, "String-Based Type Serializers"</a></td>
</tr>
<tr>
@@ -4428,7 +4433,8 @@ namespace xml_schema
<code>normalizedString</code>, <code>token</code>,
<code>Name</code>, <code>NMTOKEN</code>, <code>NCName</code>,
<code>ID</code>, <code>IDREF</code>, <code>language</code>,
- and <code>anyURI</code> built-in XML Schema types is
+ <code>anyURI</code>, and <code>anySimpleType</code> built-in XML Schema
+ types is
<code>const std::string&amp;</code>. When STL is disabled, the value
is passed as a constant C-string: <code>const char*</code>.
In this case, you can also instruct the serializer