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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// Copyright (C) 2003 Davis E. King (davis@dlib.net)
// License: Boost Software License See LICENSE.txt for the full license.
#ifndef DLIB_XML_PARSEr_
#define DLIB_XML_PARSEr_
#include <string>
#include "xml_parser/xml_parser_kernel_interfaces.h"
#include "xml_parser/xml_parser_kernel_1.h"
#include "xml_parser/xml_parser_kernel_c.h"
#include "map.h"
#include "stack.h"
#include "sequence.h"
namespace dlib
{
class xml_parser
{
typedef map<std::string,std::string,memory_manager<char>::kernel_2a>::kernel_1b map1a;
typedef map<std::string,std::string,memory_manager<char>::kernel_2a>::kernel_1b_c map1a_c;
typedef stack<std::string,memory_manager<char>::kernel_2a>::kernel_1a stack1a;
typedef sequence<document_handler*>::kernel_2a seq_dh2a;
typedef sequence<error_handler*>::kernel_2a seq_eh2a;
// A version that uses the checked map. This way there is checking on the attribute
// list that gets passed back to the user.
typedef xml_parser_kernel_1<map1a_c,stack1a,seq_dh2a,seq_eh2a>
kernel_1a_c_impl;
xml_parser() {}
public:
//----------- kernels ---------------
// kernel_1a
typedef xml_parser_kernel_1<map1a,stack1a,seq_dh2a,seq_eh2a>
kernel_1a;
typedef xml_parser_kernel_c<kernel_1a_c_impl>
kernel_1a_c;
};
}
#endif // DLIB_XML_PARSEr_