blob: 7ca32f772583ee019e88839fce2c9290ec3a65ad (
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
|
#ifndef MODXML_SAX_PROCESSOR_HH
#define MODXML_SAX_PROCESSOR_HH
#include <memory>
namespace modxml {
namespace sax {
class Delegate;
/**
* The XML processor, or parser if you like that term better.
* Feed it data and the processor will give the delegate calls with events or
* possibly errors.
*/
class Processor {
public:
virtual ~Processor() = default;
/**
* Construct a Processor. Same as creating a ProcessorBuilder
* and not changing any options and just calling build.
*/
static std::unique_ptr<Processor> create(std::shared_ptr<Delegate> delegate);
protected:
Processor() = default;
private:
Processor(Processor const&) = delete;
Processor& operator=(Processor const&) = delete;
};
} // namespace sax
} // namespace modxml
#endif // MODXML_SAX_PROCESSOR_HH
|