blob: 171167cae6bbe8f17770ae84ed1320bb0ad237ab (
plain) (
blame)
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
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include "i_reprocessing_handler.h"
namespace proton {
/**
* Interface for an initializer of a reprocessing handler.
*/
struct IReprocessingInitializer
{
using UP = std::unique_ptr<IReprocessingInitializer>;
virtual ~IReprocessingInitializer() {}
/**
* Returns whether this initializer has any reprocessors to add to the handler.
*/
virtual bool hasReprocessors() const = 0;
/**
* Initialize the given handler by adding processing readers and/or rewriters.
*/
virtual void initialize(IReprocessingHandler &handler) = 0;
};
} // namespace proton
|