aboutsummaryrefslogtreecommitdiff
path: root/xsd-frontend/generators/dependencies.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-12-19 10:41:09 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-12-19 10:41:09 +0200
commit3c55d0d6934cb037a5fb2b5729b6603d8b7ca7e5 (patch)
tree51ffef8b67ef2bd276854b6ce128584198ba777a /xsd-frontend/generators/dependencies.hxx
parent0e7a03c98185396928dd36715567f7727a8f1c9b (diff)
Add generator that returns list of included/imported schemas
Diffstat (limited to 'xsd-frontend/generators/dependencies.hxx')
-rw-r--r--xsd-frontend/generators/dependencies.hxx33
1 files changed, 33 insertions, 0 deletions
diff --git a/xsd-frontend/generators/dependencies.hxx b/xsd-frontend/generators/dependencies.hxx
new file mode 100644
index 0000000..762ee42
--- /dev/null
+++ b/xsd-frontend/generators/dependencies.hxx
@@ -0,0 +1,33 @@
+// file : xsd-frontend/generators/dependencies.hxx
+// author : Boris Kolpackov <boris@codesynthesis.com>
+// copyright : Copyright (c) 2006-2011 Code Synthesis Tools CC
+// license : GNU GPL v2 + exceptions; see accompanying LICENSE file
+
+#ifndef XSD_FRONTEND_GENERATORS_DEPENDENCIES_HXX
+#define XSD_FRONTEND_GENERATORS_DEPENDENCIES_HXX
+
+#include <vector>
+
+#include <xsd-frontend/types.hxx>
+
+#include <xsd-frontend/semantic-graph/elements.hxx> // Path
+#include <xsd-frontend/semantic-graph/schema.hxx>
+
+namespace XSDFrontend
+{
+ namespace Generators
+ {
+ // Return the list of included/imported schema paths (transitively and
+ // including the main schema file) which can then be used to produce
+ // make dependencies, etc.
+ //
+ class Dependencies
+ {
+ public:
+ std::vector<SemanticGraph::Path>
+ generate (SemanticGraph::Schema&, SemanticGraph::Path const&);
+ };
+ }
+}
+
+#endif // XSD_FRONTEND_GENERATORS_DEPENDENCIES_HXX