From 4661c1a12a491132784ffe5e3d4702d9a9bf6072 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 9 May 2012 17:24:37 +0200 Subject: Update to match new libxsd-frontend interface --- xsd/xsd.cxx | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) (limited to 'xsd/xsd.cxx') diff --git a/xsd/xsd.cxx b/xsd/xsd.cxx index ef5c2f0..ea7b09d 100644 --- a/xsd/xsd.cxx +++ b/xsd/xsd.cxx @@ -3,6 +3,14 @@ // copyright : Copyright (c) 2005-2011 Code Synthesis Tools CC // license : GNU GPL v2 + exceptions; see accompanying LICENSE file +#include +#include // std::auto_ptr +#include + +#include + +#include + #include #include @@ -33,11 +41,6 @@ #include #include -#include -#include - -#include - #include #include @@ -50,9 +53,7 @@ typedef Cult::Containers::Vector NarrowStrings; namespace SemanticGraph = XSDFrontend::SemanticGraph; namespace Transformations = XSDFrontend::Transformations; -using std::wcerr; -using std::wcout; -using std::endl; +using namespace std; namespace CLI { @@ -667,7 +668,7 @@ main (Int argc, Char* argv[]) loc_translator, disabled_w); - Evptr schema; + auto_ptr schema; if (cmd == "cxx-tree" || cmd == "cxx-parser") { @@ -868,7 +869,7 @@ main (Int argc, Char* argv[]) loc_translator, disabled_w); - Evptr schema (parser.parse (paths)); + auto_ptr schema (parser.parse (paths)); // Morph anonymous types. // @@ -926,7 +927,7 @@ main (Int argc, Char* argv[]) // Rearrange the graph so that each type is in a seperate // schema file. // - typedef Cult::Containers::Vector Schemas; + typedef std::vector Schemas; SchemaPerTypeTranslator type_translator ( common_ops.value (), @@ -942,7 +943,7 @@ main (Int argc, Char* argv[]) // Generate code. // - for (Schemas::Iterator b (schemas.begin ()), i (b), e (schemas.end ()); + for (Schemas::iterator b (schemas.begin ()), i (b), e (schemas.end ()); i != e; ++i) { SemanticGraph::Schema& s (**i); -- cgit v1.1