diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-06-20 11:54:24 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-06-20 11:55:22 +0200 |
commit | c04f7d6ed04d62efafa79a87bcde6c5f62e95327 (patch) | |
tree | 500cc93aed55b0809fe04e5a0b7020d9045c65c5 /xsd/cxx/tree/tree-forward.cxx | |
parent | e14a3f91e6e51430bf9c6978f44c7f46114793fb (diff) |
Completion of the CLI port
Diffstat (limited to 'xsd/cxx/tree/tree-forward.cxx')
-rw-r--r-- | xsd/cxx/tree/tree-forward.cxx | 32 |
1 files changed, 16 insertions, 16 deletions
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<CLI::extern_xml_schema> ()); + NarrowString xml_schema (ctx.options.extern_xml_schema ()); // Inlcude or Emit fundamental types. // @@ -164,21 +164,21 @@ namespace CXX << "#include <xsd/cxx/tree/types.hxx>" << endl << endl; - if (!ctx.options.value<CLI::suppress_parsing> () || - ctx.options.value<CLI::generate_serialization> ()) + if (!ctx.options.suppress_parsing () || + ctx.options.generate_serialization ()) { ctx.os << "#include <xsd/cxx/xml/error-handler.hxx>" << endl << endl; } - if (!ctx.options.value<CLI::suppress_parsing> () || - ctx.options.value<CLI::generate_serialization> ()) + if (!ctx.options.suppress_parsing () || + ctx.options.generate_serialization ()) { ctx.os << "#include <xsd/cxx/xml/dom/auto-ptr.hxx>" << endl << endl; } - Boolean element_map (ctx.options.value<CLI::generate_element_map> ()); + Boolean element_map (ctx.options.generate_element_map ()); if (element_map) ctx.os << "#include <xsd/cxx/tree/element-map.hxx>" << 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<CLI::suppress_parsing> ()) + if (!ctx.options.suppress_parsing ()) { ctx.os << "#include <xsd/cxx/tree/parsing.hxx>" << endl; @@ -210,7 +210,7 @@ namespace CXX ctx.os << endl; } - if (ctx.options.value<CLI::generate_serialization> ()) + if (ctx.options.generate_serialization ()) { ctx.os << "#include <xsd/cxx/xml/dom/serialization-header.hxx>" << endl << "#include <xsd/cxx/tree/serialization.hxx>" << endl; @@ -233,18 +233,17 @@ namespace CXX ctx.os << endl; } - if (ctx.options.value<CLI::generate_ostream> ()) + if (ctx.options.generate_ostream ()) { ctx.os << "#include <xsd/cxx/tree/std-ostream-operators.hxx>" << endl << endl; } - typedef Containers::Vector<NarrowString> Streams; - - Streams const& ist (ctx.options.value<CLI::generate_insertion> ()); + 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 <xsd/cxx/tree/ace-cdr-stream-insertion.hxx>" @@ -258,10 +257,11 @@ namespace CXX << endl; } - Streams const& est (ctx.options.value<CLI::generate_extraction> ()); + 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 <xsd/cxx/tree/ace-cdr-stream-extraction.hxx>" @@ -288,7 +288,7 @@ namespace CXX // First emit header includes. // - if (ctx.options.value<CLI::generate_forward> ()) + if (ctx.options.generate_forward ()) { Traversal::Schema schema; Includes includes (ctx, Includes::forward); |