blob: c91bb1234fd6dbdd7a826142a6497bfa5838d9aa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
// file : xsd/type-map/parser.hxx
// copyright : Copyright (c) 2007-2014 Code Synthesis Tools CC
// license : GNU GPL v2 + exceptions; see accompanying LICENSE file
#ifndef XSD_TYPE_MAP_PARSER_HXX
#define XSD_TYPE_MAP_PARSER_HXX
#include <types.hxx>
#include <type-map/type-map.hxx>
#include <type-map/lexer.hxx>
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
|