From aad5ad9bf0c02aa4e79bc6b7d6c934612fff4026 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Wed, 6 Mar 2024 10:24:08 +0100 Subject: New upstream version 4.2.0 --- xsd/type-map/parser.hxx | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 xsd/type-map/parser.hxx (limited to 'xsd/type-map/parser.hxx') diff --git a/xsd/type-map/parser.hxx b/xsd/type-map/parser.hxx new file mode 100644 index 0000000..ec9ea49 --- /dev/null +++ b/xsd/type-map/parser.hxx @@ -0,0 +1,41 @@ +// file : xsd/type-map/parser.hxx +// license : GNU GPL v2 + exceptions; see accompanying LICENSE file + +#ifndef XSD_TYPE_MAP_PARSER_HXX +#define XSD_TYPE_MAP_PARSER_HXX + +#include + +#include +#include + +namespace TypeMap +{ + class Parser + { + public: + Parser (Lexer&, String const& path); + + // Merge parsed namespaces. + // + bool + parse (Namespaces&); + + private: + bool + namespace_ (Namespaces&); + + bool + include (Namespace&); + + bool + type (Lexer::Token, Namespace&); + + private: + Lexer& lex_; + String path_; + std::wostream& e; + }; +} + +#endif // XSD_TYPE_MAP_PARSER_HXX -- cgit v1.2.3