summaryrefslogtreecommitdiff
path: root/xsd-examples/cxx/parser/generated
diff options
context:
space:
mode:
Diffstat (limited to 'xsd-examples/cxx/parser/generated')
-rw-r--r--xsd-examples/cxx/parser/generated/README34
-rw-r--r--xsd-examples/cxx/parser/generated/buildfile4
2 files changed, 27 insertions, 11 deletions
diff --git a/xsd-examples/cxx/parser/generated/README b/xsd-examples/cxx/parser/generated/README
index ca56974..d772ab8 100644
--- a/xsd-examples/cxx/parser/generated/README
+++ b/xsd-examples/cxx/parser/generated/README
@@ -13,20 +13,38 @@ library.xml
library-pskel.hxx
library-pskel.cxx
- Parser skeletons generated by XSD from library.xsd.
+ Parser skeletons generated by the XSD compiler from library.xsd using
+ the following command line:
+
+ xsd cxx-parser --generate-print-impl --generate-test-driver library.xsd
+
+ Or if using Expat instead of Xerces-C++ as the underlying XML parser:
+
+ xsd cxx-parser --xml-parser=expat --generate-print-impl \
+ --generate-test-driver library.xsd
library-pimpl.hxx
library-pimpl.cxx
Sample parser implementations that print the XML data to STDOUT.
- These are generated by XSD from library.xsd with the
- --generate-print-impl option.
+ These are also generated by the above XSD command (requested with
+ the --generate-print-impl option).
library-driver.cxx
- Sample driver for the example. It is generated by XSD from
- library.xsd with the --generate-test-driver option.
+ Sample driver for the example. It is also generated by the above
+ XSD command (requested with the --generate-test-driver option).
+
+To compile and link the example manually from the command line we can use
+the following commands (replace 'c++' with your C++ compiler name):
+
+c++ -c library-pskel.cxx
+c++ -c library-pimpl.cxx
+c++ -c library-driver.cxx
+c++ -o driver library-driver.o library-pskel.o library-pimpl.o -lxerces-c
+
+Or if using Expat as the underlying XML parser:
+c++ -o driver library-driver.o library-pskel.o library-pimpl.o -lexpat
-To run the example on the sample XML instance document simply
-execute:
+To run the example on the sample XML instance document execute:
-$ ./library-driver library.xml
+./driver library.xml
diff --git a/xsd-examples/cxx/parser/generated/buildfile b/xsd-examples/cxx/parser/generated/buildfile
index 5e4adac..85aded9 100644
--- a/xsd-examples/cxx/parser/generated/buildfile
+++ b/xsd-examples/cxx/parser/generated/buildfile
@@ -17,9 +17,7 @@ exe{driver}: xml{library}: test.input = true
{hxx cxx}{library-pimpl} \
{ cxx}{library-driver}>: xsd{library} $xsd
{{
- diag xsd ($<[0]) # @@ TMP
-
- $xsd cxx-parser --std c++11 \
+ $xsd cxx-parser \
--generate-inline \
--skel-file-suffix -pskel \
--generate-print-impl \