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/tree-forward.cxx | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'xsd/cxx/tree/tree-forward.cxx') diff --git a/xsd/cxx/tree/tree-forward.cxx b/xsd/cxx/tree/tree-forward.cxx index 7ec6155..7f8f5ea 100644 --- a/xsd/cxx/tree/tree-forward.cxx +++ b/xsd/cxx/tree/tree-forward.cxx @@ -139,7 +139,7 @@ namespace CXX Void generate_forward (Context& ctx) { - NarrowString xml_schema (ctx.options.value ()); + NarrowString xml_schema (ctx.options.extern_xml_schema ()); // Inlcude or Emit fundamental types. // @@ -164,21 +164,21 @@ namespace CXX << "#include " << endl << endl; - if (!ctx.options.value () || - ctx.options.value ()) + if (!ctx.options.suppress_parsing () || + ctx.options.generate_serialization ()) { ctx.os << "#include " << endl << endl; } - if (!ctx.options.value () || - ctx.options.value ()) + if (!ctx.options.suppress_parsing () || + ctx.options.generate_serialization ()) { ctx.os << "#include " << endl << endl; } - Boolean element_map (ctx.options.value ()); + Boolean element_map (ctx.options.generate_element_map ()); if (element_map) ctx.os << "#include " << endl @@ -188,7 +188,7 @@ namespace CXX // later in the individual generators for each feature because // those headers provide implementation for the fundamental types. // - if (!ctx.options.value ()) + if (!ctx.options.suppress_parsing ()) { ctx.os << "#include " << endl; @@ -210,7 +210,7 @@ namespace CXX ctx.os << endl; } - if (ctx.options.value ()) + if (ctx.options.generate_serialization ()) { ctx.os << "#include " << endl << "#include " << endl; @@ -233,18 +233,17 @@ namespace CXX ctx.os << endl; } - if (ctx.options.value ()) + if (ctx.options.generate_ostream ()) { ctx.os << "#include " << endl << endl; } - typedef Containers::Vector Streams; - - Streams const& ist (ctx.options.value ()); + NarrowStrings const& ist (ctx.options.generate_insertion ()); if (!ist.empty ()) { - for (Streams::ConstIterator i (ist.begin ()); i != ist.end (); ++i) + for (NarrowStrings::const_iterator i (ist.begin ()); i != ist.end (); + ++i) { if (*i == "ACE_OutputCDR") ctx.os << "#include " @@ -258,10 +257,11 @@ namespace CXX << endl; } - Streams const& est (ctx.options.value ()); + NarrowStrings const& est (ctx.options.generate_extraction ()); if (!est.empty ()) { - for (Streams::ConstIterator i (est.begin ()); i != est.end (); ++i) + for (NarrowStrings::const_iterator i (est.begin ()); i != est.end (); + ++i) { if (*i == "ACE_InputCDR") ctx.os << "#include " @@ -288,7 +288,7 @@ namespace CXX // First emit header includes. // - if (ctx.options.value ()) + if (ctx.options.generate_forward ()) { Traversal::Schema schema; Includes includes (ctx, Includes::forward); -- cgit v1.1