aboutsummaryrefslogtreecommitdiff
path: root/xsd-frontend/parser.hxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-12-15 22:23:46 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2021-02-25 13:39:56 +0300
commit949a9f572341b6cd07690f0b78b1b1941d320055 (patch)
treea4b9a32fb5a4cd6a46a17718cc854697df49c920 /xsd-frontend/parser.hxx
parent061b59ec50c40e8757c5e9237f45a2c7ade36d62 (diff)
Switch to build2
Diffstat (limited to 'xsd-frontend/parser.hxx')
-rw-r--r--xsd-frontend/parser.hxx77
1 files changed, 0 insertions, 77 deletions
diff --git a/xsd-frontend/parser.hxx b/xsd-frontend/parser.hxx
deleted file mode 100644
index 35a7a53..0000000
--- a/xsd-frontend/parser.hxx
+++ /dev/null
@@ -1,77 +0,0 @@
-// file : xsd-frontend/parser.hxx
-// license : GNU GPL v2 + exceptions; see accompanying LICENSE file
-
-#ifndef XSD_FRONTEND_PARSER_HXX
-#define XSD_FRONTEND_PARSER_HXX
-
-#include <set>
-#include <memory> // std::auto_ptr
-
-#include <xsd-frontend/types.hxx>
-#include <xsd-frontend/semantic-graph/schema.hxx>
-
-namespace XSDFrontend
-{
- struct InvalidSchema {};
-
- class LocationTranslator
- {
- public:
- virtual
- ~LocationTranslator ();
-
- virtual NarrowString
- translate (NarrowString const& location) = 0;
- };
-
- // Set of disabled warning IDs. Special ID "all" disables all
- // warnings.
- //
- typedef std::set<NarrowString> WarningSet;
-
- class Parser
- {
- public:
- ~Parser ();
-
- Parser (bool proper_restriction,
- bool multiple_imports,
- bool full_schema_check);
-
- Parser (bool proper_restriction,
- bool multiple_imports,
- bool full_schema_check,
- LocationTranslator&,
- const WarningSet& disabled);
-
- private:
- Parser (Parser const&);
- Parser& operator= (Parser const&);
-
- public:
- // Parse a schema file. Throws InvalidSchema in case of a failure.
- //
- std::auto_ptr<SemanticGraph::Schema>
- parse (SemanticGraph::Path const&);
-
- // Parse a number of schema files all into one semantic graph.
- // Each schema file is imported from an unnamed root translation
- // unit. Throws InvalidSchema in case of a failure.
- //
- std::auto_ptr<SemanticGraph::Schema>
- parse (SemanticGraph::Paths const&);
-
- // Returns a schema graph that corresponds to the XML Schema
- // namespace with built-in type definitions. The path is fake
- // and is only used as a lable.
- //
- std::auto_ptr<SemanticGraph::Schema>
- xml_schema (SemanticGraph::Path const&);
-
- private:
- class Impl;
- std::auto_ptr<Impl> impl_;
- };
-}
-
-#endif // XSD_FRONTEND_PARSER_HXX