diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-10-13 15:38:11 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-10-13 15:38:11 +0200 |
commit | 6f395f9f769866a04f6949cb7ed14f93d90cf728 (patch) | |
tree | d1f8343e7b41fc1895676ad4248a5e4942f9172b /tests/cxx/serializer | |
parent | c1f49aa87678c512ac37575365a6676727e5f20a (diff) |
Map anySimpleType to a string
Diffstat (limited to 'tests/cxx/serializer')
-rw-r--r-- | tests/cxx/serializer/built-in/driver.cxx | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/tests/cxx/serializer/built-in/driver.cxx b/tests/cxx/serializer/built-in/driver.cxx index f7ea95f..c2ddea0 100644 --- a/tests/cxx/serializer/built-in/driver.cxx +++ b/tests/cxx/serializer/built-in/driver.cxx @@ -33,7 +33,7 @@ struct any_type_simpl: xml_schema::any_type_simpl _end_element (); } }; - +/* struct any_simple_type_simpl: xml_schema::any_simple_type_simpl { virtual void @@ -42,6 +42,7 @@ struct any_simple_type_simpl: xml_schema::any_simple_type_simpl _characters ("hello"); } }; +*/ struct root_simpl: root_sskel { @@ -401,6 +402,12 @@ struct root_simpl: root_sskel #ifdef XSDE_STL + virtual std::string + any_simple_type () + { + return "hello"; + } + virtual bool string_next () { @@ -615,6 +622,12 @@ struct root_simpl: root_sskel #else + virtual const char* + any_simple_type () + { + return "hello"; + } + virtual bool string_next () { @@ -1242,7 +1255,7 @@ main (int argc, char* argv[]) } any_type_simpl any_type_s; - any_simple_type_simpl any_simple_type_s; + xml_schema::any_simple_type_simpl any_simple_type_s; xml_schema::boolean_simpl boolean_s; |