From 6f395f9f769866a04f6949cb7ed14f93d90cf728 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 13 Oct 2010 15:38:11 +0200 Subject: Map anySimpleType to a string --- xsde/cxx/serializer/generator.cxx | 4 ++++ xsde/cxx/serializer/serializer-header.cxx | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'xsde/cxx/serializer') diff --git a/xsde/cxx/serializer/generator.cxx b/xsde/cxx/serializer/generator.cxx index 5c94c98..36539f4 100644 --- a/xsde/cxx/serializer/generator.cxx +++ b/xsde/cxx/serializer/generator.cxx @@ -703,6 +703,8 @@ namespace CXX String qname (L"const " + xns + L"::qname*"); String string_seq (L"const " + xns + L"::string_sequence*"); + xsd_std.types_push_back ("anySimpleType", "const char*", "const char*"); + xsd_std.types_push_back ("string", "const char*", "const char*"); xsd_std.types_push_back ("normalizedString", "const char*", "const char*"); xsd_std.types_push_back ("token", "const char*", "const char*"); @@ -728,6 +730,8 @@ namespace CXX String qname (xns + L"::qname"); String string_seq (L"const " + xns + L"::string_sequence*"); + xsd_std.types_push_back ("anySimpleType", "::std::string"); + xsd_std.types_push_back ("string", "::std::string"); xsd_std.types_push_back ("normalizedString", "::std::string"); xsd_std.types_push_back ("token", "::std::string"); diff --git a/xsde/cxx/serializer/serializer-header.cxx b/xsde/cxx/serializer/serializer-header.cxx index 9f0c1f3..e8fd2f5 100644 --- a/xsde/cxx/serializer/serializer-header.cxx +++ b/xsde/cxx/serializer/serializer-header.cxx @@ -1384,7 +1384,7 @@ namespace CXX virtual Void traverse (SemanticGraph::AnySimpleType& t) { - gen_typedef (t, "void"); + gen_typedef (t, string_type_); } // Boolean. -- cgit v1.1