From c04f7d6ed04d62efafa79a87bcde6c5f62e95327 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 20 Jun 2012 11:54:24 +0200 Subject: Completion of the CLI port --- xsd/cxx/tree/elements.hxx | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'xsd/cxx/tree/elements.hxx') diff --git a/xsd/cxx/tree/elements.hxx b/xsd/cxx/tree/elements.hxx index edcb0d2..da9a182 100644 --- a/xsd/cxx/tree/elements.hxx +++ b/xsd/cxx/tree/elements.hxx @@ -14,10 +14,11 @@ #include #include -#include +#include -#include +#include +#include namespace CXX { @@ -77,6 +78,8 @@ namespace CXX typedef cutl::re::regexsub Regex; typedef cutl::re::wregex WideRegexPat; + typedef Tree::options options_type; + struct DirectCustomTypeMapInfo { DirectCustomTypeMapInfo (String const& t = L"", @@ -115,7 +118,7 @@ namespace CXX Context (std::wostream& o, SemanticGraph::Schema& root, SemanticGraph::Path const& path, - CLI::Options const& ops, + options_type const& ops, Counts const& counts_, Boolean generate_xml_schema, StringLiteralMap const*, @@ -400,7 +403,7 @@ namespace CXX write_rogue_text (WideChar const* s, Size size, Boolean rogue); public: - CLI::Options const& options; + options_type const& options; Counts const& counts; String& any_type; String& any_simple_type; @@ -1847,7 +1850,7 @@ namespace CXX Includes (Context& c, Type type) : ctx_ (c), type_ (type), - forward_ (c.options.value ()), + forward_ (c.options.generate_forward ()), namespace_ (c), type_forward_ (c) { -- cgit v1.1