diff options
| author | Jörg Frings-Fürst <debian@jff.email> | 2024-03-06 10:24:11 +0100 | 
|---|---|---|
| committer | Jörg Frings-Fürst <debian@jff.email> | 2024-03-06 10:24:11 +0100 | 
| commit | 4538829ab86b5a1cd4e845e7eab165029c9d6d46 (patch) | |
| tree | bbadf39aed0610c8f8f7b41fefff47773b8ac205 /xsd/cxx/parser/options.cli | |
| parent | 23d41842168ac1a1580111b9c5c73500ceee3d57 (diff) | |
| parent | aad5ad9bf0c02aa4e79bc6b7d6c934612fff4026 (diff) | |
Update upstream source from tag 'upstream/4.2.0'
Update to upstream version '4.2.0'
with Debian dir 1b38df7bbcf313223de3c50107ac0255090fe647
Diffstat (limited to 'xsd/cxx/parser/options.cli')
| -rw-r--r-- | xsd/cxx/parser/options.cli | 147 | 
1 files changed, 147 insertions, 0 deletions
| diff --git a/xsd/cxx/parser/options.cli b/xsd/cxx/parser/options.cli new file mode 100644 index 0000000..e430333 --- /dev/null +++ b/xsd/cxx/parser/options.cli @@ -0,0 +1,147 @@ +// file      : xsd/cxx/parser/options.cli +// license   : GNU GPL v2 + exceptions; see accompanying LICENSE file + +include <cstddef>; // std::size_t + +include <xsd/types.hxx>; // NarrowString, NarrowStrings + +include <xsd/cxx/options.cli>; + +namespace CXX +{ +  namespace Parser +  { +    class options: CXX::options +    { +      NarrowStrings --type-map +      { +        "<mapfile>", +        "Read XML Schema to C++ type mapping information from <mapfile>. +         Repeat this option to specify several type maps. Type maps are +         considered in order of appearance and the first match is used. By +         default all user-defined types are mapped to \cb{void}. See the +         TYPE MAP section below for more information." +      }; + +      NarrowString --xml-parser = "xerces" +      { +        "<parser>", +        "Use <parser> as the underlying XML parser. Valid values are +         \cb{xerces} for Xerces-C++ (default) and \cb{expat} for Expat." +      }; + +      // Features. +      // +      bool --generate-validation +      { +        "Generate validation code. The validation code (\"perfect parser\") +         ensures that instance documents conform to the schema. Validation +         code is generated by default when the selected underlying XML parser +         is non-validating (\cb{expat})." +      }; + +      bool --suppress-validation +      { +        "Suppress the generation of validation code. Validation is suppressed +         by default when the selected underlying XML parser is validating +         (\cb{xerces})." +      }; + +      bool --generate-polymorphic +      { +        "Generate polymorphism-aware code. Specify this option if you use +         substitution groups or \cb{xsi:type}." +      }; + +      bool --generate-noop-impl +      { +        "Generate a sample parser implementation that does nothing (no +         operation). The sample implementation can then be filled with +         the application-specific code. For an input file in the form +         \cb{name.xsd} this option triggers the generation of two +         additional C++ files in the form: \cb{name-pimpl.hxx} (parser +         implementation header file) and \cb{name-pimpl.cxx} (parser +         implementation source file)." +      }; + +      bool --generate-print-impl +      { +        "Generate a sample parser implementation that prints the XML data +         to \c{STDOUT}. For an input file in the form \cb{name.xsd} this +         option triggers the generation of two additional C++ files in the +         form: \cb{name-pimpl.hxx} (parser implementation header file) and +         \cb{name-pimpl.cxx} (parser implementation source file)." +      }; + +      bool --generate-test-driver +      { +        "Generate a test driver for the sample parser implementation. For an +         input file in the form \cb{name.xsd} this option triggers the +         generation of an additional C++ file in the form +         \cb{name-driver.cxx}." +      }; + +      bool --force-overwrite +      { +        "Force overwriting of the existing implementation and test driver +         files. Use this option only if you do not mind loosing the changes +         you have made in the sample implementation or test driver files." +      }; + +      // Root element. +      // +      bool --root-element-first +      { +        "Indicate that the first global element is the document root. This +         information is used to generate the test driver for the sample +         implementation." +      }; + +      bool --root-element-last +      { +        "Indicate that the last global element is the document root. This +         information is used to generate the test driver for the sample +         implementation." +      }; + +      NarrowString --root-element +      { +        "<element>", +        "Indicate that <element> is the document root. This information is +         used to generate the test driver for the sample implementation." +      }; + +      // Suffixes. +      // +      NarrowString --skel-type-suffix = "_pskel" +      { +        "<suffix>", +        "Use the provided <suffix> instead of the default \cb{_pskel} to +         construct the names of the generated parser skeletons." +      }; + +      NarrowString --skel-file-suffix = "-pskel" +      { +        "<suffix>", +        "Use the provided <suffix> instead of the default \cb{-pskel} to +         construct the names of the generated parser skeleton files." +      }; + +      NarrowString --impl-type-suffix = "_pimpl" +      { +        "<suffix>", +        "Use the provided <suffix> instead of the default \cb{_pimpl} to +         construct the names of the parser implementations for the built-in +         XML Schema types as well as sample parser implementations." +      }; + +      NarrowString --impl-file-suffix = "-pimpl" +      { +        "<suffix>", +        "Use the provided <suffix> instead of the default \cb{-pimpl} to +         construct the names of the generated sample parser implementation +         files." +      }; +    }; +  } +} | 
