summaryrefslogtreecommitdiff
path: root/sax/src/processor.hh
blob: 4a2de2975ae9527bc24cc625d8ed987cbd0d1616 (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
#ifndef PROCESSOR_HH
#define PROCESSOR_HH

#include "macros.hh"

#include <memory>
#include <optional>
#include <string>

namespace modxml {
namespace sax {

class DecoderFactory;
class Delegate;
class Processor;

std::unique_ptr<Processor> HIDDEN create_processor(
    std::shared_ptr<Delegate> delegate,
    std::shared_ptr<DecoderFactory> decoder_factory,
    std::optional<std::string> force_encoding,
    std::optional<std::size_t> default_buffer_size,
    std::optional<std::size_t> max_buffer_size);

}  // namespace sax
}  // namespace modxml

#endif  // PROCESSOR_HH