From 28f737a15d9ce5d9e8b06ab768ef858c07ae510e Mon Sep 17 00:00:00 2001
From: Karen Arutyunov
-$ xsd cxx-tree --std c++11 hello.xsd +$ xsd cxx-tree hello.xsd
The XSD compiler produces two C++ files: hello.hxx
and
@@ -633,7 +633,7 @@ hello (std::istream&);
select C++98:
-$ xsd cxx-tree hello.xsd +$ xsd cxx-tree --std c++98 hello.xsd
Then the parsing function signatures will become:
@@ -726,7 +726,7 @@ Hello, world! it with the--generate-serialization
options:
-$ xsd cxx-tree --std c++11 --generate-serialization hello.xsd +$ xsd cxx-tree --generate-serialization hello.xsd
If we now examine the generated hello.hxx
file,
@@ -911,7 +911,7 @@ main (int argc, char* argv[])
change the type naming scheme:
-$ xsd cxx-tree --std c++11 --type-naming ucc hello.xsd +$ xsd cxx-tree --type-naming ucc hello.xsd
The ucc
argument to the --type-naming
@@ -978,8 +978,7 @@ hello (std::istream&);
--type-regex
option:
-$ xsd cxx-tree --std c++11 --type-naming ucc \ - --type-regex '/ (.+)_t/\u$1/' hello.xsd +$ xsd cxx-tree --type-naming ucc --type-regex '/ (.+)_t/\u$1/' hello.xsd
This results in the following changes to the generated code:
@@ -1114,8 +1113,7 @@ hello (std::istream&); our schema with the--generate-doxygen
option:
-$ xsd cxx-tree --std c++11 --generate-serialization --generate-doxygen \ - hello.xsd +$ xsd cxx-tree --generate-serialization --generate-doxygen hello.xsd
Now the generated hello.hxx
file contains comments
--
cgit v1.1