diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2009-02-24 15:16:26 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2009-02-24 15:16:26 +0200 |
commit | 707cc94fe52463870a9c6c8e2e66eaaa389e601d (patch) | |
tree | 13e10ff28bf4455d915f9d59b401bdbb62a393cb /xsde/processing/inheritance/processor.hxx |
Start tracking XSD/e with git after version 3.0.03.0.0
Diffstat (limited to 'xsde/processing/inheritance/processor.hxx')
-rw-r--r-- | xsde/processing/inheritance/processor.hxx | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/xsde/processing/inheritance/processor.hxx b/xsde/processing/inheritance/processor.hxx new file mode 100644 index 0000000..602bd92 --- /dev/null +++ b/xsde/processing/inheritance/processor.hxx @@ -0,0 +1,38 @@ +// file : processing/inheritance/processor.hxx +// author : Boris Kolpackov <boris@codesynthesis.com> +// copyright : Copyright (c) 2006-2009 Code Synthesis Tools CC +// license : GNU GPL v2 + exceptions; see accompanying LICENSE file + +#ifndef PROCESSING_INHERITANCE_PROCESSOR_HXX +#define PROCESSING_INHERITANCE_PROCESSOR_HXX + +#include <cult/types.hxx> + +#include <xsd-frontend/semantic-graph/elements.hxx> // Path +#include <xsd-frontend/semantic-graph/schema.hxx> + +namespace Processing +{ + namespace Inheritance + { + using namespace Cult::Types; + + class Processor + { + public: + struct Failed {}; + + // If a type of an element or attribute has a context entry + // with the by_value_key key and it is true, then this type + // is rearranged to appear before the type containing this + // element/attribute. + // + Void + process (XSDFrontend::SemanticGraph::Schema&, + XSDFrontend::SemanticGraph::Path const& file, + Char const* by_value_key = 0); + }; + } +} + +#endif // PROCESSING_INHERITANCE_PROCESSOR_HXX |